Columns / Troubleshooting
Checklist when local AI runs slowly
or output stops
How to diagnose and fix common local AI issues on a Mac: slow generation from memory swap, truncated outputs, thinking-token budget exhaustion and broken JSON.
Causes and fixes by symptom
| Number | Meaning |
|---|---|
| 1. Replies are extremely slow or the Mac freezes | The model and context exceed available unified memory, causing SSD swap. Check Memory Pressure in Activity Monitor, close unused apps or browser tabs, or step down to a smaller model (for example 30B → 9B). |
| 2. Answers or JSON outputs cut off mid-sentence | The output token limit (num_predict in Ollama) was reached. Reasoning models spend 500–1,000+ tokens thinking before writing the final answer; raise num_predict to 1024–4096 or disable thinking output for structured classification. |
| 3. The model forgets instructions on long documents | The prompt exceeded the active context window (num_ctx, often 2048–4096 by default). Increase num_ctx to 8192–32768 when passing full documents, or split long texts into smaller sections to save memory. |
| 4. Japanese text inside generated images is garbled | Most local image models are trained primarily on English prompts and struggle with Japanese glyphs inside images. Write image prompts in English and add Japanese captions or speech-bubble text afterward. |
| 5. Outputs change on every run for the same prompt | Sampling temperature is set above zero. For classification, data extraction or repeatable tests, set temperature: 0 and a fixed seed. |
Three Ollama commands to check first
When performance drops, check which models are currently loaded in memory and unload any you are not using.
- Check currently loaded models:
ollama ps(shows memory size and GPU/CPU split) - Unload a model from memory:
ollama stop <model-name> - List downloaded models and disk size:
ollama list
Task recommendations and capabilities · Measurements by model