Ollama Not Using GPU? How to Fix CPU Fallback (Windows, Linux, Docker)

Updated: November 26, 2026 • Hardware-First Local AI Guide

Quick Diagnosis: Run ollama ps during generation. If the processor column shows 100% CPU even though your laptop has a dedicated GPU, Ollama failed to initialize CUDA or ROCm and silently fell back to CPU inference.

Seeing Ollama not using GPU (or watching nvidia-smi sit at 0% utilization while responses trickle out slowly) is one of the most common headaches on dual-GPU Windows laptops, Ubuntu driver updates, and Docker setups.

Diagnostic flowchart for resolving Ollama out-of-memory errors and GPU CPU-fallback issues
How to verify GPU detection and fix CPU fallback across Windows, Linux, and Docker.

Step 1: Verify Your Operating System Detects the GPU

Before changing Ollama settings, confirm that the underlying OS driver actually sees your graphics card. On NVIDIA systems (Windows or Linux), run:

nvidia-smi

If nvidia-smi returns “command not found” or fails to communicate with the driver (common right after a Linux kernel upgrade), reinstall the current NVIDIA driver, reboot your machine, and re-test. On Linux AMD GPUs, check rocm-smi or confirm your user belongs to the render and video groups.

Step 2: Fix Windows Hybrid Laptop Routing (Intel/AMD + NVIDIA)

Most student laptops ship with integrated CPU graphics for battery life plus a discrete NVIDIA GPU for heavy workloads. Windows frequently forces background binaries onto the integrated chip:

  1. Open Windows Settings → System → Display → Graphics.
  2. Click Browse and select ollama.exe (commonly found at %LOCALAPPDATA%ProgramsOllamaollama.exe).
  3. Click Options and switch the preference from “Let Windows decide” to High Performance (your discrete GPU).
  4. Quit Ollama completely from the system tray icon and relaunch it from the Start menu.

Step 3: Fix Linux & Docker GPU Passthrough

If you run Ollama inside a Docker container, standard containers are isolated from host GPUs unless the NVIDIA Container Toolkit is installed on the host and passed via --gpus=all:

docker run -d --gpus=all -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama

You can test whether Docker passes GPU access cleanly with a quick diagnostic run:

docker run --rm --gpus all nvidia/cuda:12.2.0-base-ubuntu22.04 nvidia-smi

Step 4: Read Ollama Server Logs for Loader Errors

If GPU usage still stays at zero, inspect the exact daemon logs for CUDA/ROCm library warnings:

  • Linux (systemd): journalctl -u ollama -n 50 --no-pager
  • Windows PowerShell: Get-Content "$env:LOCALAPPDATAOllamaserver.log" -Tail 50

Look for lines mentioning no compatible GPUs found, libnvidia-ml.so, or insufficient VRAM. Remember that if your GPU only has 4 GB VRAM and you load a 5 GB model, Ollama may intentionally split or spill layers to CPU—learn how to size models properly in our LLM RAM & VRAM guide or fix memory spills via our Ollama OOM guide.

Frequently Asked Questions

Why does ollama ps show 50% CPU / 50% GPU?

That means Ollama loaded part of the model into GPU VRAM and spilled the remaining layers into system RAM. Pick a smaller model or lower num_ctx so 100% fits in VRAM for maximum speed.

Can Ollama use Intel integrated graphics or older GTX cards?

Ollama prioritizes CUDA (NVIDIA), ROCm (supported AMD GPUs), and Apple Metal. Older unsupported GPUs or basic integrated graphics automatically fall back to CPU inference cleanly.

Does restarting Ollama after an NVIDIA driver update help?

Yes. If the Ollama background daemon booted before CUDA drivers initialized or resumed from sleep, restarting the Ollama service restores GPU detection.