Ollama not using your GPU? Read ollama ps first: a CPU/GPU split means the model doesn't fit, 100% CPU means discovery failed. Fixes for NVIDIA, AMD and Docker.
When Ollama is not using your GPU, run ollama ps while the model is loaded. A split such as 48%/52% CPU/GPU means Ollama found the GPU but the model plus its context doesn't fit in VRAM. 100% CPU means GPU discovery failed, and the server log names the reason: a driver or kernel module problem, a container without GPU access, an unsupported AMD target, or the wrong GPU selected.
- ollama ps (PROCESSOR column)
- Compute 5.0+, driver 550+ (Linux docs), 551.61+ (Windows)
- ROCm v7, or Vulkan
- 4k under 24 GiB VRAM, 32k at 24 to 48 GiB
Key takeaways
- Start with ollama ps. The PROCESSOR column separates the two real problems: 'too big for VRAM' and 'no GPU found'.
- A CPU/GPU split is usually context, not weights. Ollama's default context grows to 32k on 24 to 48 GiB cards, and the KV cache grows with it.
- 100% CPU means read the server log. Ollama's docs list NVIDIA discovery error codes 3, 46, 100 and 999 and a fixed set of remedies.
- In Docker, Ollama can only use what the container sees. If docker run --gpus all ubuntu nvidia-smi fails, Ollama fails too.
- Several GitHub reports trace 'stopped using the GPU after an update' to the install environment, not the GPU: a new driver that didn't load nvidia_uvm, or leftover NVIDIA tools making the installer skip the ROCm bundle.
Ollama not using the GPU is two different problems that look the same from the outside: slow tokens and a busy CPU. One is “Ollama found the GPU, but the model doesn’t fit.” The other is “Ollama never found the GPU.” The fixes don’t overlap, so the first job is telling them apart, which takes one command.
This page is a diagnostic flow, not a list of things to try at random. Every fix below comes from Ollama’s documentation or a GitHub issue where the cause was confirmed.
How do you check whether Ollama is using the GPU?
Run ollama ps while a model is loaded and read the PROCESSOR column. Ollama’s FAQ defines the three states:
ollama ps PROCESSOR | What it means | Where to go |
|---|---|---|
100% GPU | The whole model is in GPU memory | Placement is fine; see the last section of this page |
48%/52% CPU/GPU (any split) | GPU found, but part of the model sits in system RAM | Why does it use only part of the GPU? |
100% CPU | Model loaded entirely in system memory | Read the server log, then branch by cause |
ollama ps only shows loaded models, and models unload after five minutes by default, so send a prompt first. The same output has a CONTEXT column, which matters for the split case (context length docs).
If you see 100% CPU, the server log says why. Ollama’s troubleshooting page lists where it lives:
- Linux (systemd):
journalctl -u ollama --no-pager --follow --pager-end - macOS:
~/.ollama/logs/server.log - Windows:
%LOCALAPPDATA%\Ollama\server.log - Docker:
docker logs <container-name>
Set OLLAMA_DEBUG=1 on the server for more detail during GPU discovery. The line to look for is the one reporting the inference compute library: a GPU library (CUDA, ROCm, Vulkan) or library=cpu.
What causes Ollama to fall back to the CPU?
Ollama falls back to the CPU either because the model and its context don’t fit in VRAM (a split) or because GPU discovery failed (100% CPU). The second case has five common causes, and each one leaves a different trace in the log.
- Driver or kernel module. The NVIDIA driver is too old, didn’t finish loading, or
nvidia_uvmis missing. - Container without GPU access. Docker started without
--gpus=all, or the NVIDIA Container Toolkit isn’t registered. - AMD card outside ROCm’s list. The card’s LLVM target isn’t one Ollama’s ROCm build supports.
- Wrong GPU selected. An unstable iGPU is picked over the discrete card, or a
*_VISIBLE_DEVICESvariable hides the card. - Regression after an update. A new driver or a new Ollama install changed the environment.
How do you fix it on NVIDIA (Windows, Linux, Docker)?
On NVIDIA, check that the driver meets Ollama’s minimum, that nvidia-smi works, and, on Linux, that the nvidia_uvm module is loaded. Ollama’s GPU docs require compute capability 5.0 or higher and driver 550 or newer (570 or newer for compute 5.0 to 6.2). The Windows docs state driver 551.61 or newer.
Linux. The troubleshooting page lists four NVIDIA discovery error codes that can appear in the log: 3 (not initialized), 46 (device unavailable), 100 (no device) and 999 (unknown). Its remedies, in order:
sudo nvidia-modprobe -u
sudo rmmod nvidia_uvm && sudo modprobe nvidia_uvmThen reboot and confirm the driver is current. The same nvidia_uvm reload is the documented fix when Ollama drops to CPU after suspend and resume. For a bug report, check sudo dmesg | grep -i nvrm.
Windows. Update the driver first, since discovery problems “are often fixed by running the latest driver”. Then quit Ollama from the tray, set OLLAMA_DEBUG=1, relaunch and read server.log. If a CUDA_VISIBLE_DEVICES variable is set anywhere in your environment, check it: Ollama’s docs note that an invalid ID such as -1 forces CPU, which is useful on purpose and confusing by accident.
Docker. Ollama inside a container sees only the GPUs the container sees. The Docker docs require the NVIDIA Container Toolkit, then:
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/ollamaThe troubleshooting page gives the decisive test: if docker run --gpus all ubuntu nvidia-smi fails, Ollama can’t see the GPU either, and the problem is the host setup, not Ollama. If the GPU works for a while and then the container drops to CPU, the docs suggest adding "exec-opts": ["native.cgroupdriver=cgroupfs"] to /etc/docker/daemon.json.
We build CandorNo GPU? Use a hosted model
Uncensored AI, right in your browser.
Candor runs open models with refusals removed, so it answers the questions other assistants deflect. New accounts get free credits, no card needed.
Try Candor freeHow do you fix it on AMD?
On AMD, Ollama needs either a ROCm v7 driver stack and a supported card, or the Vulkan backend. Ollama’s GPU page lists supported cards per OS. On Linux it covers RX 9000, RX 7000 and RX 6800 and up, plus several Radeon PRO, AI PRO, Ryzen AI and Instinct parts. On Windows the ROCm list is shorter: RX 7600 through 7900 XTX and Radeon PRO W7000.
What the log tells you, per the troubleshooting page:
failure during GPU discoveryorfailed to finish discovery before timeout: the driver is older than ROCm 7, which the bundled libraries need. Upgrade withamdgpu-install, reboot, restart Ollama.- Permission errors on
/dev/kfd: add theollamauser to thevideoand/orrendergroups. In containers, pass the group IDs with--group-addand use theollama/ollama:rocmimage with--device /dev/kfd --device /dev/dri. - Card not on the list (Linux only):
HSA_OVERRIDE_GFX_VERSIONmakes ROCm treat the card as a close supported target. The docs’ example runs an RX 5400 (gfx1034) withHSA_OVERRIDE_GFX_VERSION="10.3.0".
Vulkan is the other route. It ships in the default ollama/ollama image and is on by default when its backend is installed; Phoronix dated Vulkan support to Ollama 0.12.11 (November 2025), when it still needed OLLAMA_VULKAN=1. On Windows, the docs call Vulkan “the recommended fallback” for RX 6000-class cards that don’t expose ROCm v7 on current drivers. Which AMD card to buy, and how ROCm and Vulkan compare on speed, is covered in running a local LLM on an AMD GPU.
Wrong GPU on mixed systems. The same 0.12.11 release started preferring discrete GPUs over integrated ones when scheduling. If Vulkan still picks an unstable iGPU, the docs say to point GGML_VK_VISIBLE_DEVICES at the discrete card’s index (for example 1 if Vulkan1 is the discrete GPU). For ROCm, ROCR_VISIBLE_DEVICES does the same job; list devices with rocminfo.
Why does Ollama use only part of the GPU?
A CPU/GPU split means Ollama found the GPU and loaded as much as fits; the rest of the model sits in system RAM, and generation speed drops toward CPU speed. The usual culprit is the KV cache, not the weights.
Ollama’s context length docs set the default by VRAM: 4k tokens under 24 GiB, 32k from 24 to 48 GiB, and 256k at 48 GiB or more. A model whose weights fit easily can still spill once a 32k cache is added on top. The FAQ also says memory scales with OLLAMA_NUM_PARALLEL times the context length, so raising parallelism has the same effect.
Fixes, cheapest first:
- Lower the context. Set
OLLAMA_CONTEXT_LENGTHon the server,/set parameter num_ctxinollama run, ornum_ctxin the API options. Check the result in the CONTEXT column ofollama ps. More in Ollama context length. - Quantize the KV cache.
OLLAMA_KV_CACHE_TYPE=q8_0uses about half the memory of the defaultf16, with very little quality loss according to the FAQ. It only applies when Flash Attention is enabled. - Use a smaller quant or model. The arithmetic for weights plus cache is in local LLM hardware requirements.
- Free VRAM. The desktop, a browser and other GPU apps all hold memory before Ollama loads anything.
With two cards, Ollama can spread a model across both; that setup has its own page on multi-GPU local LLMs.
What do developers report in practice?
The pattern across community threads is that the cause is rarely the GPU itself. It’s the memory budget, or the environment around Ollama. All rows below are community reports, linked, not our tests.
| Reported symptom | Setup reported | Cause found | Fix that worked |
|---|---|---|---|
ollama ps 100% CPU, library=cpu in log | RTX 4070 Ti, Docker; later RTX 4090 on WSL2 | NVIDIA 555 driver packages didn’t load nvidia_uvm | modprobe nvidia_uvm on Linux; Docker Desktop 4.31 on WSL2; some rolled back to 552.x (#4563) |
| GPU idle after updating Ollama, CPU at 100% | RX 7600, Ubuntu 24.04, Ollama 0.7.1 | Leftover NVIDIA tools made the installer skip the ROCm bundle | Purge NVIDIA packages, rerun installer (#10883) |
| 76%/24% CPU/GPU split on a small model | RX 6500 XT 4 GB, Vulkan, phi4-mini Q4_K_M | Context and desktop VRAM on top of the weights | Smaller context and model; updating Ollama fixed low GPU use (Level1Techs) |
| 10%/90% and 39%/61% CPU/GPU splits | RTX 5080, 64 GB RAM, gemma4:26b and a 35B MoE | Model larger than VRAM, monitor on the same card | Poster considered moving the display to the iGPU to free VRAM (HN) |
Two details from these threads are worth acting on. In #4563, the maintainers’ first request was ollama ps output and the docker run --gpus all ubuntu nvidia-smi test, which is the same order this page uses. In #10883, rocminfo and rocm-smi both saw the card, yet the log said “No GPU backend found”. A working driver doesn’t prove the Ollama install has the matching GPU library, so after a driver change, reinstall Ollama.
Ollama shows 100% GPU but is still slow. Why?
If ollama ps shows 100% GPU, placement is correct and the bottleneck is elsewhere. The Level1Techs poster above saw a model fully in VRAM with GPU utilization stuck at 0 to 5%, and updating Ollama fixed it. Check the Ollama version first, then whether another process is using the same GPU.
FAQ
How do I force Ollama to use the GPU?
There is no “force GPU” switch; Ollama uses the GPU when discovery succeeds and the model fits. Fix the cause the log names, then lower the context if ollama ps still shows a split. The documented switches work the other way: an invalid ID like -1 in CUDA_VISIBLE_DEVICES or ROCR_VISIBLE_DEVICES forces CPU.
Why is Ollama using the CPU instead of the GPU after an update?
In the GitHub reports above, it was the environment: a new NVIDIA driver that didn’t load nvidia_uvm, or an installer that picked the wrong GPU bundle. Reboot, reload nvidia_uvm, then reinstall Ollama so it picks up the right GPU library. Ollama’s troubleshooting page shows how to install a specific older version if a release regressed.
Does Ollama in Docker use the GPU?
Only if the container has GPU access. NVIDIA needs the Container Toolkit plus --gpus=all; AMD needs the rocm image with /dev/kfd and /dev/dri passed through.
What does “ollama ps 100% CPU” mean?
The model is loaded entirely in system memory, so Ollama didn’t use any GPU for it. Read the server log for the discovery error before changing anything else.
Can Ollama use an AMD GPU that isn’t on the supported list?
On Linux, often yes, with HSA_OVERRIDE_GFX_VERSION set to a close supported target, or by using the Vulkan backend. On Windows the override isn’t available, and Vulkan is the documented fallback.
We build CandorSkip the setup
Want an uncensored model without hosting one?
Candor (candorai.dev) is an uncensored AI chat app that runs in your browser: it answers the questions mainstream assistants dodge, on health, money, law and work, without the lecture. New accounts get free credits, no card needed.
Facts from candorai.dev, checked Nov 10, 2026. Candor never changes how we rank or review models. Disclosure.
Sources (10)
- Hardware support (GPU), Ollama documentation
- Troubleshooting, Ollama documentation
- FAQ: how to tell if a model is loaded on the GPU, Ollama documentation
- Context length, Ollama documentation
- Docker, Ollama documentation
- Windows, Ollama documentation
- Nvidia 555 driver does not work with Ollama, ollama/ollama issue #4563
- Updated Ollama, now it won't use my GPU, ollama/ollama issue #10883
- Ollama 0.12.11 brings Vulkan acceleration, Phoronix
- Ollama: confusion about model size, Level1Techs forum
Written by Refusal Rate editors from papers, model cards, official docs and pricing pages. Anything we ran ourselves is labeled as our own test, with the hardware and settings. Our method.