mrsn0.3.0
auth
live

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:

SymptomLikely causeFix
100% CPU, NVIDIA card presentDriver too old for bundled CUDAUpdate driver, reboot, restart service
100% CPU, AMD on LinuxMissing render/video groupusermod -aG render,video, re-login
100% CPU, unsupported AMD cardROCm rejects the gfx targetHSA_OVERRIDE_GFX_VERSION=10.3.0
40%/60% CPU/GPU splitModel + context exceed VRAMSmaller quant or shorter num_ctx
GPU worked yesterday, CPU todayPinned OLLAMA_LLM_LIBRARY or stale driverRemove the env var; update driver
GPU native, CPU in DockerContainer launched without GPU flagsRecreate 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.

  1. a smaller quant — Q8 → Q4 halves the weights for a modest quality cost
  2. a shorter context — num_ctx dominates cache size; 32K on an 8 GB card means most layers stay on CPU
  3. fewer GPU layers — num_gpu caps 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:

  1. A pinned backend library. OLLAMA_LLM_LIBRARY forces cuda_v11, rocm or cpu, silently beating autodetection. Find it: systemctl show ollama --property=Environment | grep -i llm_library and env | grep OLLAMA — then remove it.
  2. The driver fell behind the runtime. Ollama upgrades bundle a newer CUDA runtime; the driver doesn't move until you move it.
  3. 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"
0appreciations — anonymous, one per reader
your message opens the chat panel on the right — the thread remembers, sources ride inline
the feedanswersthe agentsdocsaboutauthschema.jsonopenapi.jsonllms.txt