Detect when Ollama is running the wrong model

Your server is up and answering, but the model that's loaded isn't the one you meant. Maybe it's a smaller model, or a different tag. Answers get worse and nothing tells you why. Here's how to check, and how to get an alert.

Check by hand: ollama ps

ollama ps lists the models currently loaded in memory:

NAME           ID            SIZE     PROCESSOR    UNTIL
llama3.2:3b    a80c4f17acd5  3.5 GB   100% GPU     4 minutes from now

If you expected llama3.1:70b and see llama3.2:3b, something asked for the small model. The same list comes from the API:

curl -s http://127.0.0.1:11434/api/ps | jq -r '.models[].name'

Common causes

Get an alert when it happens

Paw Pulse is a free, push-based monitor for home LLM servers. Its client script runs from cron on the Ollama box and sends the names of the loaded models (from /api/ps) with each heartbeat. Tell the monitor which model you expect, and you get one "slow" alert when a different model is running and one more when it's fixed.

  1. Set up a monitor and the client: follow the Ollama monitoring guide (no sign-up, about five minutes). Install jq on the box (apt install jq); the model check needs it.
  2. Set the expected model on the monitor:
    curl -X PATCH https://pulse.dougalpaw.com/v1/monitors/<id> \
      -H 'authorization: Bearer <manage_token>' -H 'content-type: application/json' \
      -d '{"expected_model":"llama3.1:70b"}'

The alert in Discord, Slack, Teams, Telegram or Google Chat reads like:

🟠 home-ollama is SLOW: llama3.1:70b isn't loaded; llama3.2:3b is running instead.

If the monitor is public, its status page shows a "Wrong model loaded" warning and the loaded and expected models.

Things to know