Ollama Not Using GPU Fix: 100% CPU, Docker & iGPU Guide
When Ollama drops to 100% CPU or splits layers across RAM, it either failed to see your GPU at daemon startup or overflowed VRAM with KV cache. Diagnose it in 60 seconds with nvidia-smi and ollama ps, then fix Docker --gpus all and Windows iGPU hijacks.

THE STORY IN THREE POINTS
- First 60-second diagnosis: run nvidia-smi on the host to verify driver visibility, send one prompt, and inspect the PROCESSOR column in ollama ps (100% GPU vs. partial CPU/GPU offload vs. 100% CPU), then restart the Ollama service after any change because GPU discovery only runs at startup.
- Fix silent partial CPU offload: a 14GB quantized model on a 16GB card still spills to system RAM once desktop compositors reserve 1–2 GB and manual 16K–32K context settings allocate KV cache; drop to Q4_K_M, tighten context length, or unload with ollama stop <model>.
- Fix 100% CPU fallbacks: inside Docker, configure NVIDIA Container Toolkit (nvidia-ctk) and pass --gpus all; on Windows laptops, bind Ollama to the discrete GPU in Windows Graphics Settings and NVIDIA Control Panel and quit the tray process completely before relaunching.
Step 1: Verify host drivers and decode ollama ps
Unlike strict inference servers that crash immediately when VRAM runs out, Ollama silently falls back to system RAM and CPU execution so chat requests stay alive. That graceful degradation hides why a 24GB workstation suddenly crawls at two tokens per second. As outlined in NetRay’s GPU troubleshooting guide and BetterClaw’s error decoder, start by verifying driver visibility on the host with nvidia-smi, sending a short prompt so weights load into memory, and running ollama ps.
Read the PROCESSOR column in ollama ps to split hardware detection bugs from memory overflow. Seeing 100% GPU confirms CUDA detection succeeded (so slow responses stem from thermal throttling or long prompt prefill rather than missing GPU acceleration). Seeing a split such as 60% GPU / 40% CPU means Ollama found your card but weights plus KV cache exceeded free VRAM. Seeing 100% CPU indicates Ollama cannot access the GPU backend at all—usually due to container isolation, Windows hybrid graphics routing, or a daemon booted before driver initialization.
Step 2: Fix silent partial CPU offload from VRAM and KV cache overflow
A frequent surprise happens when a checkpoint’s disk footprint looks safely smaller than total VRAM—for instance, loading a 14GB weight file on a 16GB GPU—yet ollama ps still reports a 30% to 50% CPU split. Once Windows or Linux display compositors reserve 1 to 2 GB and you expand context above the sub-24 GiB 4K default toward 16K or 32K tokens (examined in our Ollama context length guide), the allocated KV cache pushes trailing transformer layers over PCIe into system memory.
Restore 100% GPU execution by switching from Q8_0 to a compact Q4_K_M tag sized inside our VRAM-tiered Ollama model guide, closing GPU-accelerated browser tabs or editors, or trimming OLLAMA_CONTEXT_LENGTH slightly. Whenever you change context flags or free desktop VRAM, run ollama stop <model> so Ollama recalculates layer placement cleanly on the next load.
Step 3: Fix Docker containers missing NVIDIA Container Toolkit and --gpus all
Docker containers isolate guest processes from host GPU devices by default. Even when nvidia-smi works normally in your host Linux shell, an unconfigured Ollama container silently falls back to 100% CPU inside the container boundary (NetRay).
On Ubuntu and Debian hosts, install the NVIDIA Container Toolkit, wire the Docker runtime with sudo nvidia-ctk runtime configure --runtime=docker, restart Docker via sudo systemctl restart docker, and launch the container with explicit passthrough: docker run -d --gpus all -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama. In Docker Compose stacks, declare driver: nvidia and capabilities: [gpu] under deploy.resources.reservations.devices, then recreate the container so device bindings take effect.
Step 4: Override Windows hybrid laptop iGPU routing
On Windows notebooks carrying both integrated Intel or AMD graphics and a discrete NVIDIA GPU, Windows power-saving policies routinely launch the Ollama tray daemon on the low-power iGPU—leaving the discrete card idle at 0% utilization while inference grinds on CPU. Aulafy and ByteVerse’s November 2026 Windows guide outline a reliable four-step override.
First, plug in AC power and switch Windows Power Mode to Best performance. Second, open Windows Settings → System → Display → Graphics, register the Ollama executable if absent, and pin its GPU preference to High performance (selecting your discrete NVIDIA GPU). Third, in the NVIDIA Control Panel, set the preferred graphics processor for Ollama to High-performance NVIDIA processor. Fourth—and most frequently skipped—right-click the system tray icon to quit Ollama completely and relaunch it, because Ollama only enumerates GPUs during daemon startup.
Step 5: Linux library symlinks, AMD ROCm fallbacks, and Apple Silicon
On bare-metal Ubuntu or Linux installs, kernel or CUDA toolkit upgrades occasionally disconnect Ollama’s shared runner libraries. When host nvidia-smi succeeds yet ollama ps stays stuck on 100% CPU, inspect journalctl -u ollama -n 50 for missing libcuda or runner discovery errors. Community troubleshooting in Ollama Issue #9842 documents that restoring broken runner library paths under /usr/lib/ollama followed by sudo systemctl restart ollama resolves stalled detection after driver updates.
Hardware platform differences matter outside NVIDIA CUDA stacks. For AMD Radeon GPUs on Windows or unsupported iGPUs where ROCm discovery fails, Aulafy suggests testing LM Studio’s Vulkan backend as a quick cross-vendor fallback. On Apple Silicon Macs, Metal unified memory acceleration engages automatically without driver setup; sudden slowdowns indicate unified RAM pressure or macOS swap thrashing in Activity Monitor rather than a GPU detection failure.
Preventing sudden CPU reversions after restarts and updates
Developers often report that ollama ps displayed 100% GPU yesterday yet dropped back to 100% CPU after a reboot or background OS patch. Three triggers explain nearly every regression: another desktop app, game, or browser instance claimed 2–3 GB of VRAM before Ollama loaded the model; an automated GPU driver update rotated kernel modules while the background Ollama daemon stayed alive; or a client updated num_ctx upward past free memory.
To keep execution pinned to VRAM permanently without silent fallback surprises, configure explicit num_gpu layer settings when testing tight checkpoints, keep total quantized weights plus KV cache at least 1.5 GB below dedicated GPU memory, and verify 100% GPU in ollama ps after every driver upgrade or container redeploy.
Sources: Ollama Not Using GPU Troubleshooting Guide|NetRay ↗ Agent Error Decoder: Ollama Not Using GPU|BetterClaw ↗ Configure Ollama GPU Detection on Windows|Aulafy ↗ Ollama Not Using GPU on Windows Fix (2026)|ByteVerse ↗ Ollama Issue #9842: GPU Detection and Library Paths|GitHub ↗
THE BROADER CONTEXT · FRONTIER LABS DOSSIER
Explore full product specifications, pricing analysis, and continuous coverage in the Frontier Labs Desk Hub and Others Dossier. Independent benchmarks available on the AI Intelligence Index and Coding Agents Leaderboard.


