Ollama not using GPU: the five causes, named in the log
ollama ps tells the truth: 100% GPU means stop reading, 40%/60% is VRAM math, 100% CPU is a driver, a group, a pinned library, or a container without GPU flags.
2026-11-232 min read
Ollama not using GPU is a reading problem: ollama ps names where the model runs; the startup log names the hardware Ollama found.
PROCESSOR · all GPU
100%
GPU fine — stop reading
PROCESSOR · split
40/60
CPU/GPU — didn't fit in VRAM
PROCESSOR · all CPU
100%
no usable GPU found
Detection happens once at startup. Restart after every fix before re-checking.
Why is Ollama not using GPU? Read the two commands
ollama run llama3.2 "hello"ollama psNAME ID SIZE PROCESSOR UNTILllama3.2:latest a80c4de17cd9 3.3 GB 100% GPU 4 minutes from nowjournalctl -u ollama --no-pager | grep -i "inference compute"inference compute id=GPU-xxxx library=CUDA compute=8.9 driver=12.4 name=NVIDIA GeForce RTX 4070
No inference compute line means CPU-only. Restart after each fix.
What does each PROCESSOR state mean?
Nine times out of ten the log named the row:
| Symptom | Likely cause | Fix |
|---|---|---|
100% CPU, NVIDIA card present | Driver too old for bundled CUDA | Update driver, reboot, restart service |
100% CPU, AMD on Linux | Missing render/video group | usermod -aG render,video, re-login |
100% CPU, unsupported AMD card | ROCm rejects the gfx target | HSA_OVERRIDE_GFX_VERSION=10.3.0 |
40%/60% CPU/GPU split | Model + context exceed VRAM | Smaller quant or shorter num_ctx |
| GPU worked yesterday, CPU today | Pinned OLLAMA_LLM_LIBRARY or stale driver | Remove the env var; update driver |
| GPU native, CPU in Docker | Container launched without GPU flags | Recreate with --gpus=all |
The split is VRAM math, not a bug
Weights plus the KV cache must fit. On an 8 GB card a Q4 7B at 8K is 4.5 GB of weights + 2.5 GB of cache. At 32K the cache spills to CPU.
- a smaller quant — Q8 → Q4 halves the weights for a modest quality cost
- a shorter context —
num_ctxdominates cache size; 32K on an 8 GB card means most layers stay on CPU - fewer GPU layers —
num_gpucaps offloads; below the layer count it guarantees a split
A 100% GPU model that's still slow may be swapping over system RAM. Check ollama ps SIZE against your actual VRAM.
GPU worked yesterday, CPU today
Updates change one of three things:
- A pinned backend library.
OLLAMA_LLM_LIBRARYforcescuda_v11,rocmorcpu, silently beating autodetection. Find it:systemctl show ollama --property=Environment | grep -i llm_libraryandenv | grep OLLAMA— then remove it. - The driver fell behind the runtime. Ollama upgrades bundle a newer CUDA runtime; the driver doesn't move until you move it.
- The container lost its flags. A recreated Docker container without GPU flags is CPU-only — recreate with
--gpus=all.
The law: the log names the hardware before the fix does. Match the PROCESSOR state, apply its row, then restart so detection runs again.
- tested on ollama · RTX 3060 / 4070 · driver 535 → 570 · Ubuntu · WSL2 · Docker
- first published 2026-09-16; the three PROCESSOR states, startup detection line and every fix are ollama's documented behaviour
- probe: journalctl -u ollama --no-pager | grep -i "inference compute"