Why is my GPU not being used?

4 min readMarkdown

If the GPU sits idle while the model writes, the runtimeRuntimeThe software that loads a model file and runs it.Read more fell back to the CPU. There are three usual causes: the driver is missing or old, the runtime was built without support for your GPU, or the model is too big for VRAMVRAMMemory on a graphics card. On a PC with a GPU, it is your model budget.Read more and most of it landed in system memory.

Check first, on any platform

Load a model, ask it something long, and run this while it answers.

shell
ollama ps

The PROCESSOR column says 100% GPU when the whole model is on the GPU. A split such as 48%/52% CPU/GPU means part of it spilled to system memory, and 100% CPU means the GPU is not used at all. LM Studio shows the same thing as the GPU OffloadOffloadRunning part of a model on the CPU because it does not fit in VRAM.Read more setting when you load a model.

Rule of thumb

A split is a memory problem, not a driver problem. Fix it with a smaller quantizationQuantizationStoring each weight with fewer bits so the model takes less memory.Read more or context, see Why won't it load?. Only 100% CPU points to the driver or the build.

macOS

On a Mac with Apple silicon, Ollama, LM Studio, llama.cpp and MLXMLXApple's machine learning framework for Apple silicon.Read more all use the GPU through Metal with no setup. If it is not used, the cause is almost always one of two things.

To check, open Activity Monitor, then choose Window, then GPU History. The graph should jump while the model writes. For a number, run this in Terminal:

shell
sudo powermetrics --samplers gpu_power -i 1000

It prints GPU power and active residency every second. Press Control-C to stop.

The usual causes:

  • The app is an Intel build running under Rosetta. In Activity Monitor, add the Kind column. It should say Apple, not Intel. Reinstall the Apple silicon download.
  • The Python you used for MLX is an Intel build. Run python3 -c "import platform; print(platform.machine())". It should print arm64.
  • The Mac has an Intel chip. Local runtimes have little or no GPU support on Intel Macs, so they use the CPU. Is a Mac good for local AI? explains what changed.

Windows

With an NVIDIA card, run this in PowerShell while the model is answering:

PowerShell
nvidia-smi

Look at Memory-Usage and GPU-Util. The model's process should appear in the list at the bottom, and memory use should be close to the model's size. If the command is not found, the NVIDIA driver is not installed.

In Task Manager, the Performance tab shows each GPU with Dedicated GPU memory. The default graphs show 3D work, so click a graph's label and switch it to Cuda or Compute to see AI load.

The usual causes:

  • The driver is old. Install the current one from NVIDIA. Runtimes built for newer CUDA versions need a recent driver.
  • A laptop is using its integrated GPU. Go to Settings, System, Display, Graphics, pick the app, and set it to high performance.
  • LM Studio is using a CPU or Vulkan engine. Pick the CUDA build of its llama.cpp engine in its runtime settings, and raise GPU Offload to the maximum when you load the model.
  • An AMD or Intel card is not supported by the runtime's default build. LM Studio's Vulkan engine is the easiest route on Windows. Do AMD and Intel work for local AI? covers the options.

Linux

With NVIDIA, the check is the same command:

shell
watch -n 1 nvidia-smi

This refreshes every second. With AMD, use ROCm's tool instead:

shell
watch -n 1 rocm-smi

Look for memory use near the model's size and GPU use above zero while it writes. If the command is missing, the driver or ROCm is not installed.

The usual causes:

  • No driver. Install the NVIDIA driver from your distribution, then reboot. On AMD, install ROCm for your card.
  • Your user cannot reach an AMD GPU. Add yourself to the right groups and log out and back in.
  • The card is not on ROCm's supported list. Some consumer Radeon cards work with an override, and Ollama documents the HSA_OVERRIDE_GFX_VERSION variable for this. Vulkan builds of llama.cpp are the other route.
  • It runs in Docker without GPU access. Install the NVIDIA Container Toolkit and pass --gpus all to docker run.
  • Ollama was installed before the driver. Its installer checks for a GPU, so install the driver first, then reinstall Ollama.
shell
sudo usermod -aG render,video $USER

This adds your user to the render and video groups that ROCm needs.

To see what Ollama found at start-up, read its log with journalctl -u ollama. Lines near the start name the GPU it detected, or say it is using the CPU.

The catch

A GPU in use is not the same as a GPU doing all the work. A model that is 90% on the GPU can still run at less than half speed, because the last 10% in system memory sets the pace. Why is it slow? explains why.

Try it
shell
ollama run qwen3:8b --verbose "Write a 200-word story about a workbench."

Watch your GPU tool while this runs. The eval rate at the end tells you how fast it went. Compare it with How fast is fast?.

Go deeperThat's enough

Backends and builds

A runtime talks to the GPU through a backendBackendThe hardware path an engine uses: Metal, CUDA, Vulkan, ROCm or CPU.Read more: CUDA for NVIDIA, ROCm or Vulkan for AMD, Metal for Apple and SYCL or Vulkan for Intel. A build only contains the backends it was compiled with. If you compile llama.cpp yourself, you choose them at build time, and a plain build is CPU-only. What is llama.cpp? shows the build options.

Integrated GPUs and NPUs

Many laptops have an integrated GPU or an NPU as well as the CPU. Most runtimes ignore the NPU, and the integrated GPU is often no faster than the CPU for this work because both share the same slow memory. Can I run models without a GPU? covers when they help.

Two GPUs, one idle

With two NVIDIA cards, a runtime may only use the first. Check nvidia-smi for both. Set CUDA_VISIBLE_DEVICES to choose cards, and see How do several GPUs in one box work together? for splitting one model across them.