Ollama Using CPU Instead of GPU? ollama ps Shows 100% CPU
ollama ps showing 100% CPU means Ollama found no GPU at startup. Use the inference compute log line and OLLAMA_DEBUG=1 to find the missing piece.
NAME ID SIZE PROCESSOR CONTEXT RUNNER UNTIL Qwen2.5:0.5b a8b0c5157701 486 MB 100% CPU 4096 llamacpp 4 minutes from now 100% CPU under PROCESSOR means the whole model is in system memory and running on the CPU (official FAQ). Ollama looks for GPUs once, when the server starts; if it finds none, every model after that runs on the CPU. If the inference compute line in the startup log says library=cpu, no GPU was found — usually because the driver is missing or the GPU wasn't passed into Docker. The output here comes from the official image on a machine with no GPU, so it shows what "no GPU found" looks like.
[1] Use the PROCESSOR value from ollama ps to pick the branch.
| Value | Meaning | Where to look |
|---|---|---|
100% GPU | Fully in GPU memory | Working as intended |
48%/52% CPU/GPU and similar | GPU found, but the model doesn't fit in VRAM and is split | Smaller quantization or shorter num_ctx, see model requires more system memory |
100% CPU | No GPU found, or GPUs disabled by configuration | Start at [2] |
A split is a size problem, not a GPU problem. Shrink the model and it becomes 100% GPU.
[2] Read which devices Ollama found in the startup log. For the Linux install it's journalctl -u ollama --no-pager; for Docker, docker logs <container name>.
time=2026-10-27T08:34:16.218Z level=INFO source=runner.go:60 msg="discovering available GPUs..."time=2026-10-27T08:34:16.497Z level=INFO source=types.go:50 msg="inference compute" id=cpu library=cpu compute="" name=cpu description=cpu libdirs=ollama driver="" pci_id="" type="" total="2.0 GiB" available="2.0 GiB"When the only inference compute line is id=cpu library=cpu and total is system (here, container) memory, no GPU was found. The debug log also had total_vram="0 B" at the same point. Search the log for discovering available GPUs; the discovery result follows right after it.
[3] To see why, restart the server with OLLAMA_DEBUG=1 (official troubleshooting docs). With debug on, the same image's CUDA probe failed like this:
time=2026-10-27T08:36:01.045Z level=DEBUG source=native_probe.go:259 msg="native GPU discovery failed" error="exit status 1" stderr="load_backend: failed to load /usr/lib/ollama/cuda_v12/libggml-cuda.so: libcuda.so.1: cannot open shared object file: No such file or directory…time=2026-10-27T08:36:01.269Z level=DEBUG source=runner.go:131 msg="evaluating which, if any, devices to filter out" initial_count=0libcuda.so.1 comes from the NVIDIA driver. On a host, the driver is missing or broken; in a container, the driver wasn't passed in. initial_count=0 is the number of devices found.
[4] In Docker, check that the GPU is passed through. The official Docker instructions for NVIDIA are: install the NVIDIA Container Toolkit, configure the Docker runtime, then run with --gpus=all.
$ sudo apt-get install -y nvidia-container-toolkit$ sudo nvidia-ctk runtime configure --runtime=docker$ sudo systemctl restart docker$ docker run -d --gpus=all -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollamaA container started without --gpus=all doesn't see the GPU even on a machine that has one. First check whether containers can see the GPU at all, independent of Ollama (the method from the official troubleshooting docs):
$ docker run --rm --gpus=all ubuntu:24.04 nvidia-smidocker: Error response from daemon: failed to discover GPU vendor from CDI: no known GPU vendor foundOn a machine with no GPU (or where Docker doesn't know about one), the container isn't even created. With the toolkit set up correctly you should get the nvidia-smi table, and only then will the Ollama container see the GPU. For AMD, use the ollama/ollama:rocm image with --device /dev/kfd --device /dev/dri, and pass the render and video group IDs with --group-add as the docs describe.
[5] For a host install, check the driver and the supported range.
- NVIDIA:
nvidia-smimust list the GPU. Per the official docs, Ollama supports compute capability 5.0+ with driver 550 or newer (570 or newer for 5.0 through 6.2). The troubleshooting docs suggestsudo nvidia-modprobe -u(or reloading thenvidia_uvmmodule) and a reboot. - AMD: access to
/dev/kfdtypically needs the user running Ollama in thevideoand/orrendergroups. For cards not on the list, see theHSA_OVERRIDE_GFX_VERSIONexample in the docs. - Apple: Apple devices use the GPU through Metal (docs).
After fixing the driver, restart the Ollama server so it searches again (sudo systemctl restart ollama).
[6] Check for settings that turn GPUs off on purpose. Per the docs, an invalid GPU ID such as CUDA_VISIBLE_DEVICES=-1 forces CPU, and OLLAMA_VULKAN=0 or GGML_VK_VISIBLE_DEVICES=-1 disables Vulkan GPUs. Every value the server read is printed in the server config line of the startup log. Here the startup log of the official image with no settings was saved as ollama.log and three values pulled out (in Docker you can pipe docker logs <name> 2>&1 | straight in):
$ grep -o 'CUDA_VISIBLE_DEVICES:[^ ]*\|OLLAMA_VULKAN:[^ ]*\|OLLAMA_LLM_LIBRARY:[^ ]*' ollama.logCUDA_VISIBLE_DEVICES:OLLAMA_LLM_LIBRARY:OLLAMA_VULKAN:trueThose are the defaults. If you see something like CUDA_VISIBLE_DEVICES:-1 or OLLAMA_VULKAN:false, or OLLAMA_LLM_LIBRARY set to a value starting with cpu (the docs' example for forcing CPU), restart the server without that setting and check ollama ps again.