TechBuzzPro

How to Tell If Ollama Is Using Your GPU

· 6 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You can tell whether Ollama is using your GPU by running a model and watching the load: if the GPU is doing the work, a tool like nvidia-smi (NVIDIA), rocm-smi (AMD on Linux) or Activity Monitor / Task Manager will show GPU memory allocated and utilisation rising, while the CPU stays comparatively idle. Ollama also prints a line such as library=cuda or library=metal in its server log when it loads a model onto the GPU, and ollama ps reports whether the loaded model is on GPU or CPU. If none of those show GPU activity, Ollama is running on the CPU. The steps below walk through each check in order, from quickest to most definitive.

What You'll Need

  • Ollama installed and working (the ollama command responds in a terminal).
  • A terminal or command prompt: Terminal on macOS/Linux, PowerShell or Command Prompt on Windows.
  • At least one model pulled, for example with ollama pull llama3.2.
  • For NVIDIA cards: the proprietary NVIDIA driver installed, which provides nvidia-smi.
  • For AMD cards on Linux: the ROCm stack, which provides rocm-smi.
  • For Apple Silicon Macs: nothing extra, GPU use is handled by Metal automatically.

Step-by-Step

  1. Check what Ollama reports for the loaded model. Open a terminal and run ollama ps. If a model is loaded, the output includes a PROCESSOR column. A value containing GPU means the model is on the GPU; 100% CPU means it is not. If nothing is listed, run a model first (next step) and check again while it is loaded.
  2. Start a model and keep it loaded. In one terminal window, run ollama run llama3.2 and leave it sitting at the prompt. In a second window, run ollama ps again. Models unload after a period of inactivity, so the check is only meaningful while a model is resident.
  3. Watch GPU memory during a request. With the model loaded, send a prompt in the first window (something that generates a decent amount of text, like "write a long paragraph about the ocean"). In the second window, run nvidia-smi on NVIDIA systems, or rocm-smi on AMD Linux systems. You want to see the Ollama process holding several gigabytes of GPU memory and GPU utilisation climbing while tokens are generated. On Windows you can also open Task Manager, go to the Performance tab, select your GPU, and watch the dedicated GPU memory and 3D/compute graphs.
  4. Read the server log for the library line. Ollama logs which backend it loaded when it starts a model. On macOS and Linux, look at the service log (on Linux with systemd: journalctl -u ollama; on macOS, the log output of the Ollama app or the terminal where you launched ollama serve). On Windows, the Ollama app writes logs under your user profile in the .ollama folder, and running ollama serve in a terminal prints them directly. Look for a line mentioning library=cuda, library=rocm, library=metal or library=cpu. The first three mean GPU; cpu means no GPU offload.
  5. Compare speed as a sanity check. A model that fits fully on a GPU generates tokens noticeably faster than the same model on CPU. If a small model feels slow and the machine's fans stay quiet, that is a hint the GPU is not being used, though speed alone is not proof.
  6. Confirm your GPU is actually visible to Ollama. If every check points to CPU, verify the driver sees the card: nvidia-smi should list the GPU and driver version without errors. On Apple Silicon, GPU use is automatic and does not need configuration. On Linux with AMD, confirm ROCm recognises the card before expecting Ollama to use it.

Menu labels, log formats and command output can differ slightly between Ollama versions, operating systems and driver releases, so treat exact wording as a guide rather than a guarantee.

Common Mistakes

  • Checking before a model is loaded. ollama ps shows nothing until a model is running, which people misread as "no GPU". Start a model first.
  • Assuming a large model fits. If the model is bigger than available GPU memory, Ollama may offload only part of it or fall back to CPU. A model that is partly on the GPU still shows GPU memory in use, but performance will be mixed.
  • Looking at the wrong GPU metric. Integrated graphics share system memory, so "dedicated GPU memory" stays near zero even when the iGPU is working. Watch overall GPU utilisation instead.
  • Expecting GPU use on unsupported hardware. Ollama's GPU acceleration depends on supported NVIDIA, AMD (ROCm on Linux) or Apple Silicon hardware. Older or unsupported cards run on CPU, and no setting changes that.
  • Confusing the Ollama app with the CLI. If the desktop app is running the background service, commands in a separate terminal still talk to the same service, but logs may be in the app's log file rather than your terminal.

Tips

  • Keep a second terminal window open with nvidia-smi -l 1 (refresh every second) while you chat with a model, so you can watch memory and utilisation change in real time.
  • Prefer smaller quantised models when GPU memory is tight; a model that fits entirely on the GPU is far faster than one split between GPU and CPU.
  • Close other GPU-heavy apps (games, video editors, browsers with hardware acceleration) before benchmarking, so the numbers are not muddied.
  • On laptops with hybrid graphics, make sure the discrete GPU is the one being used; some systems park it until a demanding app asks for it.
  • Use ollama ps as your routine check rather than digging through logs every time; it is the quickest reliable signal.

Troubleshooting

If ollama ps shows 100% CPU and the log says library=cpu, work through these in order:

  1. Restart the Ollama service or app, then load the model again. A stale service started before a driver update can miss the GPU.
  2. Update your GPU driver from the vendor's official site, then restart the machine.
  3. Confirm the GPU is visible: nvidia-smi should run cleanly. If it errors, fix the driver before touching Ollama.
  4. Check GPU memory headroom. If the model needs more memory than the card has free, Ollama will not fit it on the GPU. Try a smaller model or a more quantised variant.
  5. Reinstall Ollama from the official download if the GPU is visible but Ollama still reports CPU. This replaces the binaries; your downloaded models are kept in the default models directory.

If the GPU shows activity but generation is still slow, the model is likely only partly offloaded. Reducing model size is the reliable fix.

Frequently Asked Questions

Does Ollama use the GPU automatically?

Yes, on supported hardware. When a compatible GPU and driver are present, Ollama loads the model onto the GPU without extra configuration. If the hardware is unsupported or the model does not fit, it falls back to CPU.

What does the PROCESSOR column in ollama ps mean?

It shows where the loaded model is running. A GPU entry means GPU offload is active; 100% CPU means it is running entirely on the processor.

Can I force Ollama to use the GPU?

There is no general switch that makes an unsupported GPU work. What you can do is make the model fit: use a smaller or more quantised model so it fits in GPU memory, and ensure the correct driver is installed.

Why does nvidia-smi show no Ollama process?

Most often no model is loaded at that moment, or the model is running on CPU. Load a model, send a prompt, and check again while it is generating.

Does Ollama use the GPU on Apple Silicon Macs?

Yes. On Apple Silicon, Ollama uses the integrated GPU through Metal automatically, so you will see GPU activity in Activity Monitor rather than a separate card.

Is partial GPU offload a problem?

It works, but it is slower than full offload because part of the model runs on the CPU. If speed matters, choose a model that fits entirely in GPU memory.