How to Diagnose and Fix Ollama Ignoring Your GPU on Linux and Windows
Ollama, a local AI model runner, may default to CPU inference even when a GPU is available, significantly slowing performance. Running 'ollama ps' while a model is loaded reveals the PROCESSOR column, which shows whether inference is running on the GPU, CPU, or split between both. The most common causes of GPU detection failure include outdated drivers, missing user group memberships on AMD Linux setups, a pinned OLLAMA_LLM_LIBRARY environment variable, or containers launched without GPU access flags. Partial GPU offloading typically occurs when model weights and context cache exceed available VRAM, and can be addressed by using smaller quantizations or reducing context window size. Checking the Ollama server log for the 'inference compute' line helps pinpoint exactly which hardware was detected at startup.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in