Why Ollama Silently Drops to CPU Speed (and How to Spot It in 10 Seconds)
Nothing kills local AI enthusiasm faster than expecting crisp GPU replies and watching words crawl out at one word per second. Rather than crashing immediately when a driver mismatch or tight VRAM limit occurs, Ollama quietly offloads layers onto system CPU RAM.
Run ollama ps while a prompt is active: if the PROCESSOR column reports 100% CPU or splits heavy layers onto CPU, check your GPU driver logs immediately instead of blaming the model itself.
Closing browser tabs, Electron apps, and secondary GPU workloads before loading an 8B–14B checkpoint on an 8GB GPU often lifts ollama ps back to 100% GPU instantly.
Exact Terminal Commands for Proxy Hangs, Logs & Custom Context Size
Check your live runtime logs cleanly, clear lingering proxy flags if model pulls stall at 0%, and reduce oversized default context lengths (num_ctx) whenever long coding chats trigger Out-Of-Memory (OOM) errors.
# 1. Check live GPU vs CPU layer split right now
ollama ps
# 2. Read live Ollama engine logs (Linux vs macOS)
journalctl -u ollama --follow
# macOS: cat ~/.ollama/logs/server.log
# 3. Fix hung model pulls caused by stale proxy variables
unset http_proxy https_proxy HTTP_PROXY HTTPS_PROXY
# 4. Pull GGUF weights directly from Hugging Face cleanly
ollama run hf.co/bartowski/Qwen2.5-Coder-14B-Instruct-GGUF:Q4_K_M
# 5. Trim context length inside interactive chat to cure OOM
/set parameter num_ctx 8192
Troubleshooting Cheat Sheet for Common Ollama Errors
Use this clean table to diagnose every frequent Ollama startup, download, and memory error quickly.
- Verify CUDA libraries on Linux: Ensure
nvidia-smisucceeds inside the same shell/systemd unit hosting Ollama. - Check disk space too: Model blobs under
/usr/share/ollama/.ollama/modelsor~/.ollama/modelsfail silently if root partitions hit 100%. - Pair clean quantizations: Stick to
Q4_K_MorQ5_K_MGGUFs for balanced speed and coding accuracy on consumer hardware.
| Error / Symptom | Typical Trigger | Clean Resolution |
|---|---|---|
| Speed drops 30× (CPU load high) | Outdated NVIDIA/ROCm driver or GPU VRAM full | Run ollama ps, update GPU driver, pick smaller Q4_K_M quant |
something went wrong / endless pull | Stray http_proxy / DNS IPv6 timeout | Unset proxy env vars or restart daemon cleanly |
pull model manifest: file does not exist | Missing :tag or raw HF URL pasted without prefix | Check ollama.com/library tag or add hf.co/ prefix |
| Process killed mid-answer (OOM) | Default 32k context KV cache exceeds 8GB VRAM | Lower num_ctx to 4096 or 8192 cleanly |
Choosing Safe Model Sizes & Quantizations for Everyday Machines
Oversizing a local checkpoint is the quietest cause of CPU spillover. On an 8GB VRAM GPU or a 16GB unified laptop, leaving 2GB of breathing room for the operating system, desktop apps, and the active KV context buffer makes inference feel effortless rather than sluggish.
If a 14B model barely squeezes onto your card at 2 tokens/sec, dropping cleanly to an 8B Q4_K_M model or lowering num_ctx to 8192 routinely restores smooth 40–70 tokens/sec responses with far better overall productivity.