Why Ollama Is Using the CPU Instead of Your GPU
When Ollama runs on the CPU, the cause is a driver, a container, a card Ollama does not support, or a model too big for the GPU. How to tell which, and fix it.
By Cogniq Labs ResearchEvidence policy

When Ollama runs on the CPU, generation gets many times slower, and nothing tells you why. The cause is one of four things: Ollama could not find the GPU, the container cannot see it, the card is not on Ollama's supported list, or the model did not fit and spilled onto the CPU. One command tells you which.
ollama ps
Look at the PROCESSOR column. Ollama's FAQ explains the three cases:
| PROCESSOR shows | What it means | Go to |
|---|---|---|
100% GPU |
Everything is on the GPU. If it is still slow, the cause is elsewhere | Not this problem |
100% CPU |
Ollama is not using a GPU at all | Sections 1 to 4 below |
48%/52% CPU/GPU (or similar) |
The model is split because it did not fit | Why Ollama runs out of memory |
The rest of this note is about the second row.
1. Check the driver first (NVIDIA)
Ollama's hardware page states the requirement: NVIDIA GPUs with compute capability 5.0 or higher and driver version 550 or newer, with cards in the 5.0 to 6.2 range needing driver 570 or newer. Older drivers are the most common reason a working card is ignored.
nvidia-smi
The top of the output shows the driver version and the CUDA version. If nvidia-smi itself fails, the driver is not working at all, and Ollama has nothing to find. Fix that first, then reinstall or restart Ollama, so it discovers the GPU at startup.
Your card also needs to be on the supported list. The hardware page groups cards by compute capability, from the RTX 50 series down to old GeForce GTX 750 cards. If you are unsure of your card's capability, NVIDIA publishes a table, and Ollama links to it.
2. After sleep or resume (Linux)
If Ollama worked yesterday and is on the CPU today, and you suspended the machine in between, this is the likely cause. The hardware page describes it directly: after a suspend and resume cycle, Ollama sometimes fails to discover the NVIDIA GPU and falls back to the CPU. It calls this a driver bug and gives the workaround:
sudo rmmod nvidia_uvm && sudo modprobe nvidia_uvm
Then restart Ollama. A reboot also clears it.
3. Running in Docker
A container only sees the GPU if you give it access. The Docker page lists the steps for NVIDIA:
- Install the NVIDIA Container Toolkit on the host.
- Configure Docker to use it:
sudo nvidia-ctk runtime configure --runtime=docker
sudo systemctl restart docker
- Start the container with GPU access:
docker run -d --gpus=all -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
Missing any of those leaves the container with no GPU, and Ollama quietly uses the CPU. A container that works on one machine and not another usually differs in step 1 or 2.
For AMD GPUs in containers, the hardware page adds a different issue: on some Linux distributions, SELinux can prevent containers from accessing the AMD GPU devices. It gives a command for the host, sudo setsebool container_use_devices=1. It also says that on some distributions you may need to add the ollama user to the render group.
4. AMD cards
AMD support is narrower and more version-sensitive. Ollama's page says it uses the ROCm library, requires the AMD ROCm v7 driver on Linux, and lists the supported Radeon, Radeon Pro, Ryzen AI and Instinct cards separately for Linux and Windows. The Windows list is shorter.
Two things to know if your card is not listed:
- An override can sometimes work. The page explains that ROCm does not support every AMD GPU, and that in some cases you can make the system use a similar target that is close, with the
HSA_OVERRIDE_GFX_VERSIONenvironment variable. Its example sets it to10.3.0for a card whose own target is not supported but whose nearest supported one is. It describes this as an experiment, so treat it as one, and expect it not to work for every card. - Vulkan is a second route. The page says additional GPU support on Windows and Linux comes through Vulkan, enabled by default when the backend is installed. On Windows most vendor drivers bundle Vulkan support. On Linux you may need to install extra components.
If ollama ps says 100% CPU and your AMD card is not on either list, that is the explanation, and no setting will change it.
Intel and other GPUs: Vulkan
Not every GPU goes through CUDA or ROCm. Ollama's hardware page says additional GPU support on Windows and Linux comes through Vulkan, and that it is enabled by default when the backend is installed. On Windows, most vendors' drivers already bundle Vulkan support and need no extra steps. On Linux, most distributions need additional components installed, and you may have a choice between Mesa and vendor-specific packages. The page links to Intel and AMD instructions for this.
It also notes that Ollama's scheduler relies on the free-memory figures the GPU libraries report. If a Vulkan driver reports memory wrongly, Ollama can decide a model does not fit and place it on the CPU, so a card that is detected but never used is worth a look in the log, not only a driver reinstall.
5. Read the server log
If none of the above fits, the log says what Ollama found at startup. Ollama's troubleshooting page says it inventories GPUs when it starts, and that this discovery can fail. It lists where to find the log:
| System | Where |
|---|---|
| macOS | ~/.ollama/logs/server.log |
| Linux with systemd | journalctl -u ollama |
| Windows | server.log in %LOCALAPPDATA%\Ollama |
| Docker | docker logs <container-name> |
Search the log for the words "GPU", "CUDA" and "discovery". The same page mentions CUDA error codes, such as 3 (not initialised), 46 (device unavailable), 100 (no device) and 999 (unknown), and suggests setting CUDA_ERROR_LEVEL=50 for more detail. For AMD systems with an out-of-date driver, it says discovery can time out and Ollama falls back to the CPU, and the fix is to upgrade to the ROCm v7 driver and reboot. OLLAMA_DEBUG=1 turns on extra logging.
6. Check you did not hide the GPU yourself
Two settings can hide a working GPU from Ollama:
CUDA_VISIBLE_DEVICESlimits which NVIDIA GPUs Ollama uses. The hardware page says that to ignore the GPUs and force CPU use, you can give it an invalid ID such as-1. If an old shell profile or service file sets it, Ollama will quietly obey. Runecho $CUDA_VISIBLE_DEVICESand check the service environment.- A multi-GPU machine where the ordering changed. The page says numeric IDs may vary in order and UUIDs are more reliable, which you can list with
nvidia-smi -L.
7. Apple Silicon
On a Mac with Apple Silicon, there is no separate GPU driver to install. The hardware page says Ollama supports GPU acceleration on Apple devices through the Metal API. If a Mac is slow, the model size is the first thing to check, so read the PROCESSOR column and see the memory guide linked above.
Confirm that the fix worked
Do not rely on a feeling that it is faster. After a change, unload the old model, load it again and check two things:
ollama stop llama3.2
ollama run llama3.2 --verbose
The --verbose flag prints timing statistics after each reply, including how many tokens per second it generated. Note the figure before and after your change. Then, in another terminal, run ollama ps while the model is loaded and confirm that PROCESSOR says 100% GPU. A GPU run is usually many times faster than a CPU run on the same model, so the difference should be obvious. If PROCESSOR still shows the CPU, restart the Ollama service, because discovery happens at startup and an environment change will not apply to a server that is already running.
A short diagnostic order
ollama ps. Is it100% CPU, or a split?- If a split, it is a memory problem, so lower the context length or use a smaller model.
- If
100% CPU, runnvidia-smi(NVIDIA) and confirm the driver is working and at least version 550. - In Docker, confirm the toolkit, the runtime and
--gpus=all. - On Linux after sleep, reload
nvidia_uvm. - On AMD, check the supported list and the ROCm v7 driver.
- Check
CUDA_VISIBLE_DEVICES. - Read the server log for discovery errors.
If the model is on the GPU and still slow, see why Ollama is slow on the GPU. After each fix, restart Ollama and run ollama ps again with a model loaded. A model that was loaded before the fix stays where it was, so unload it first with ollama stop.
What we do not know
We have not tested these fixes on hardware. Ollama's requirements, supported cards and defaults change with every release, and its documentation sometimes lags behind, so the hardware page and your own server log are better guides than any article, including this one. Some GPU problems come from the operating system or the vendor driver, and no setting inside Ollama can change them.
Sources
- Hardware support — Ollama
- Docker — Ollama
- Troubleshooting — Ollama
- Ollama FAQ — Ollama
Frequently asked questions
Why is Ollama using the CPU instead of the GPU?
Either Ollama did not find your GPU, or the model did not fit in it. Run ollama ps: 100% CPU means the GPU was not used at all, and a split such as 48%/52% CPU/GPU means the model was too big and spilled over. The first points to drivers, containers or an unsupported card, the second to memory.
How do I check whether Ollama is using my GPU?
Run ollama ps while a model is loaded and read the PROCESSOR column. 100% GPU means the whole model is on the GPU. You can also watch nvidia-smi on an NVIDIA card and see whether the ollama process is using memory.
What NVIDIA driver does Ollama need?
Ollama's documentation says it supports NVIDIA GPUs with compute capability 5.0 or higher and driver version 550 or newer, and that cards with compute capability 5.0 through 6.2 need driver 570 or newer. Check the current hardware page for your card, since these requirements change.
Why does Ollama use the CPU in Docker?
Usually because the container was started without GPU access. For NVIDIA you install the NVIDIA Container Toolkit, configure Docker to use it, and start the container with the --gpus=all flag. Without all three, the container sees no GPU and falls back to the CPU.
Why does Ollama stop using my GPU after sleep?
On Linux, after a suspend and resume cycle, Ollama can fail to find the NVIDIA GPU and fall back to the CPU. Ollama's documentation describes it as a driver bug and gives a workaround: reload the NVIDIA UVM driver with sudo rmmod nvidia_uvm followed by sudo modprobe nvidia_uvm.
Related reading
Ollama 'Model Requires More System Memory': The Fix
What Ollama's two memory numbers actually measure, why Docker and WSL report less than you have, which versions show this error, and how to fix it.
llama.cpp 'Failed to Fit Params': What It Means
The failed to fit params line in llama.cpp is a warning, not the crash. What the fit step adjusts, what each reason means, and which flags to change.
Why Ollama Is Slow Even When It Runs on the GPU
Slow Ollama replies on a GPU come from loading, reading the prompt or writing the answer. How to measure each with Ollama's own timings, and what to change.