Ollama not using GPU: CPU fallback or partial offload?
Use ollama ps, serving-process logs, driver checks, and a controlled context comparison to distinguish CPU fallback from partial GPU offload.
Sources are linked in the guide. Read our editorial policy.
On this page 5 sections
If Ollama is not using your GPU, inspect the loaded model with ollama ps before changing anything. 100% CPU means CPU placement, a CPU/GPU split means partial offload, and 100% GPU means GPU placement—not 100% GPU utilization. None of these alone identifies the underlying cause.
This guide separates placement, device access, and memory pressure, then checks whether configuration actually reached the server. Start from the local-AI hub if you are still choosing a runtime.
First identify the server and loaded model
The following are documentation-backed examples, not executed Ollama commands. They require an installed Ollama CLI and a running server. Use the same OLLAMA_HOST and model as your application; a remote server’s GPU will not appear in your laptop’s monitoring tools.
ollama --version
ollama list
ollama ps
ollama list shows downloaded models, not necessarily loaded ones. If ollama ps is empty, submit a short request through your application, then inspect it again before the model unloads. Select a known local model, not a cloud-hosted model.
| Observation | What it establishes | Next diagnostic |
|---|---|---|
No model in ollama ps |
Nothing is currently resident on that server | Check host, request, and unload timing |
100% CPU |
Model is in system memory | Check discovery, compatibility, overrides, and available memory |
| CPU/GPU percentage split | Model is partially GPU-offloaded | Compare context and memory; inspect intentional placement settings |
100% GPU, low utilization |
GPU placement succeeded | Check workload, idle intervals, concurrency, and client timing |
| Host GPU visible, container GPU absent | Host visibility does not reach the serving environment | Fix container GPU access |
The Ollama FAQ defines these placement labels. A CPU-only result does not prove the GPU is unsupported: memory pressure or an explicit CPU override can also matter.
Check compatibility where inference actually runs
For NVIDIA, run these read-only commands on the serving host. They require NVIDIA’s driver utilities, not a separately installed CUDA toolkit:
nvidia-smi
nvidia-smi --query-gpu=name,driver_version,memory.total,memory.used,memory.free --format=csv
Expect a recognized device, a driver version, and memory figures. The CUDA Version shown by nvidia-smi describes driver capability; it is not proof of a working Ollama backend or installed CUDA toolkit.
The current hardware documentation lists NVIDIA compute capability 5.0+ and driver 550+, with driver 570+ for compute capabilities 5.0–6.2. The Windows page separately specifies NVIDIA driver 551.61+. Apply the requirements for your card, OS, and installed Ollama release together; “550+” is not a universal Windows prescription.
AMD support differs between Windows and Linux, ROCm/HIP and Vulkan, and exact GPU models. Apple GPU acceleration uses Metal. Read the matching platform table rather than installing CUDA on a non-NVIDIA machine.
For Docker, host success is insufficient. Check the serving container’s device access and the official Docker configuration. NVIDIA containers require the appropriate container runtime integration. Docker Desktop on macOS does not provide Ollama GPU passthrough, according to the FAQ; native Metal execution is a different deployment.
Separate weights from context memory
A model download fitting on disk says nothing about fitting in free GPU memory. Weights, KV cache, runtime buffers, other applications, and parallel requests share the budget. A larger context or more simultaneous requests can change placement.
Use the VRAM calculator for a transparent estimate, then compare it with measured free memory. Its estimate is not a scheduler guarantee. The context and quantization guide explains the terms.
For a controlled comparison, use an already downloaded llama3.2:3b, or replace the model value with an exact local name. This unexecuted example requires PowerShell and the Ollama native API:
$body = @{
model = 'llama3.2:3b'
prompt = 'Reply with one short greeting.'
stream = $false
keep_alive = '5m'
options = @{ num_ctx = 2048; num_predict = 32 }
} | ConvertTo-Json -Depth 4
Invoke-RestMethod -Method Post -Uri 'http://127.0.0.1:11434/api/generate' `
-ContentType 'application/json' -Body $body
ollama ps
Compare with your original context using the same model and no competing requests. Inspect placement and logs after each request. If the smaller context improves GPU placement, that supports a memory-budget explanation. It does not prove all larger requests will fail. Do not force an arbitrary layer count or unload other users’ models without coordination.
Read server logs, not just the CLI terminal
Read-only, platform-specific examples:
# Windows native application; PowerShell
Get-Content "$env:LOCALAPPDATA\Ollama\server.log" -Tail 100
# Linux systemd installation; journal access may require permission
journalctl -u ollama --no-pager -n 100
# macOS native application
cat ~/.ollama/logs/server.log
The troubleshooting documentation also describes container and foreground-server logging. Look for discovered devices, selected backend, allocation failures, and offload decisions around the specific request. Log wording varies by release; no sample log here is presented as observed output.
Environment variables belong to the serving process. Exporting CUDA_VISIBLE_DEVICES or OLLAMA_CONTEXT_LENGTH in a CLI client’s terminal does not reconfigure an already running service. Inspect accidental CPU/device overrides in the service configuration. For systemd, use the documented service override and controlled restart; for the Windows tray application, quit and relaunch after changing its inherited environment. Restarts interrupt active work. Do not start a competing ollama serve on the occupied port.
Verify the fix and preserve evidence
Repeat the original request, inspect ollama ps, and correlate its timestamp with server logs and GPU monitoring. Record model tag, runtime version, driver, context, concurrency, and before/after placement. A rising utilization graph alone is not proof: another application may own that work. Avoid blind reinstalls, broad device permissions, or disabling security controls.
Evidence boundary: checked on 2026-11-07 UTC using live, unversioned Ollama documentation. On the Windows authoring host, nvidia-smi actually reported a GeForce GTX 1650, 4096 MiB, and driver 552.12. Get-Command ollama found no CLI; curl.exe --silent --show-error --max-time 3 http://127.0.0.1:11434/api/version failed to connect. No model, offload change, or inference performance was tested. The remaining commands are instructional examples, not hardware reproduction.
For deployment tradeoffs, continue to Ollama versus vLLM. If your vLLM server runs but rejects chat requests, use the chat-template diagnostic.