Azure-Samples / aks-store-demo

Sample microservices app for AKS demos, tutorials, and experiments
MIT License
129 stars 201 forks source link

Mistral 7b instruct not working in pet store for local LLM #143

Open lukemurraynz opened 2 months ago

lukemurraynz commented 2 months ago

Describe the bug

Hi, all. Working on a blog article, following a mix of local documentation + Intelligent app workshop, but instead of going Falcon, I've gone with the Mistral 7b model. and at the end - the switch of the pet store app to use it.

I can prompt the model locally from the cluster using:

kubectl run -it --rm --restart=Never curl --image=curlimages/curl -- curl -X POST "http://workspace-mistral-7b-instruct/generate" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"prompt\":\"What is your fav orite ice cream flavor?\"}"

However, using a pet store is not working, and it responds with 'Production Description' text instead.

Screenshots

Mistral_NoResponse

image

This is my config map:

kubectl apply -n pets -f - <<EOF apiVersion: v1 kind: ConfigMap metadata: name: ai-service-configmap data: USE_LOCAL_LLM: "True" AI_ENDPOINT: "http://workspace-mistral-7b-instruct/chat"

apiVersion: apps/v1 kind: Deployment metadata: name: ai-service spec: replicas: 1 selector: matchLabels: app: ai-service template: metadata: labels: app: ai-service spec: nodeSelector: "kubernetes.io/os": linux containers:

Hoping someone can point me in the direction on whats happening here, whether its a bug, or what needs changing.

pauldotyu commented 2 months ago

Thanks for raising this issue @lukemurraynz! Will take a closer look and let you know.