refusal rate
Subscribe

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.

[ fig. 01 — troubleshooting ]48×5
[ fig. 01 — troubleshooting ]16×5

Short answer

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.

First check
ollama ps (PROCESSOR column)
NVIDIA minimum (docs)
Compute 5.0+, driver 550+ (Linux docs), 551.61+ (Windows)
AMD on Linux
ROCm v7, or Vulkan
Default context
4k under 24 GiB VRAM, 32k at 24 to 48 GiB

Key takeaways

  1. Start with ollama ps. The PROCESSOR column separates the two real problems: 'too big for VRAM' and 'no GPU found'.
  2. 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.
  3. 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.
  4. In Docker, Ollama can only use what the container sees. If docker run --gpus all ubuntu nvidia-smi fails, Ollama fails too.
  5. 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 PROCESSORWhat it meansWhere to go
100% GPUThe whole model is in GPU memoryPlacement 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 RAMWhy does it use only part of the GPU?
100% CPUModel loaded entirely in system memoryRead 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.

[ fig. 01 — Diagnostic flow built from the Ollama GPU, FAQ and troubleshooting docs ]
Diagnostic flow: run ollama ps. A CPU/GPU split means the model plus context doesn't fit in VRAM, so lower context, quantize the KV cache or use a smaller model. 100% CPU means discovery failed, so read the server log and branch to driver, Docker, AMD target, GPU selection or update regression.
  1. Driver or kernel module. The NVIDIA driver is too old, didn’t finish loading, or nvidia_uvm is missing.
  2. Container without GPU access. Docker started without --gpus=all, or the NVIDIA Container Toolkit isn’t registered.
  3. AMD card outside ROCm’s list. The card’s LLVM target isn’t one Ollama’s ROCm build supports.
  4. Wrong GPU selected. An unstable iGPU is picked over the discrete card, or a *_VISIBLE_DEVICES variable hides the card.
  5. 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:

bash
sudo nvidia-modprobe -u
sudo rmmod nvidia_uvm && sudo modprobe nvidia_uvm

Then 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:

bash
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/ollama

The 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.

How 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 discovery or failed to finish discovery before timeout: the driver is older than ROCm 7, which the bundled libraries need. Upgrade with amdgpu-install, reboot, restart Ollama.
  • Permission errors on /dev/kfd: add the ollama user to the video and/or render groups. In containers, pass the group IDs with --group-add and use the ollama/ollama:rocm image with --device /dev/kfd --device /dev/dri.
  • Card not on the list (Linux only): HSA_OVERRIDE_GFX_VERSION makes ROCm treat the card as a close supported target. The docs’ example runs an RX 5400 (gfx1034) with HSA_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:

  1. Lower the context. Set OLLAMA_CONTEXT_LENGTH on the server, /set parameter num_ctx in ollama run, or num_ctx in the API options. Check the result in the CONTEXT column of ollama ps. More in Ollama context length.
  2. Quantize the KV cache. OLLAMA_KV_CACHE_TYPE=q8_0 uses about half the memory of the default f16, with very little quality loss according to the FAQ. It only applies when Flash Attention is enabled.
  3. Use a smaller quant or model. The arithmetic for weights plus cache is in local LLM hardware requirements.
  4. 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 symptomSetup reportedCause foundFix that worked
ollama ps 100% CPU, library=cpu in logRTX 4070 Ti, Docker; later RTX 4090 on WSL2NVIDIA 555 driver packages didn’t load nvidia_uvmmodprobe 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.1Leftover NVIDIA tools made the installer skip the ROCm bundlePurge NVIDIA packages, rerun installer (#10883)
76%/24% CPU/GPU split on a small modelRX 6500 XT 4 GB, Vulkan, phi4-mini Q4_K_MContext and desktop VRAM on top of the weightsSmaller context and model; updating Ollama fixed low GPU use (Level1Techs)
10%/90% and 39%/61% CPU/GPU splitsRTX 5080, 64 GB RAM, gemma4:26b and a 35B MoEModel larger than VRAM, monitor on the same cardPoster 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.

Sources (10)
  1. Hardware support (GPU), Ollama documentation
  2. Troubleshooting, Ollama documentation
  3. FAQ: how to tell if a model is loaded on the GPU, Ollama documentation
  4. Context length, Ollama documentation
  5. Docker, Ollama documentation
  6. Windows, Ollama documentation
  7. Nvidia 555 driver does not work with Ollama, ollama/ollama issue #4563
  8. Updated Ollama, now it won't use my GPU, ollama/ollama issue #10883
  9. Ollama 0.12.11 brings Vulkan acceleration, Phoronix
  10. Ollama: confusion about model size, Level1Techs forum

Keep reading