Check what Ollama is using
Ollama supports GPU acceleration on Apple devices through Metal (GPU docs). With a model loaded, run:
ollama psThe PROCESSOR column shows 100% GPU, 100% CPU, or a split such as 48%/52% CPU/GPU, and the CONTEXT column shows the context length in use (FAQ, context docs).
Causes and fixes
| Symptom | Likely cause | Fix |
|---|---|---|
| CPU/GPU split | Model + context bigger than the memory the GPU can use | Smaller model or quantization, or a shorter context |
| Split after raising context | The KV cache grew with the context | Lower the context, or set OLLAMA_KV_CACHE_TYPE=q8_0 (about half the cache memory) |
| 100% CPU in Docker | Docker Desktop on macOS has no GPU passthrough | Run the Ollama app natively |
| 100% CPU on an Intel Mac | Ollama supports Intel Macs on the CPU only | Apple silicon is needed for GPU acceleration |
Settings that affect GPU memory
- Context length: set in the app's settings, with
/set parameter num_ctx, orOLLAMA_CONTEXT_LENGTH. Longer contexts need more memory. - KV cache type:
OLLAMA_KV_CACHE_TYPEdefaults to f16; q8_0 uses about half the memory. It needs Flash Attention, which Ollama turns on automatically where supported. - Setting variables for the Mac app: use
launchctl setenv, then restart Ollama (FAQ).
When the real fix is more memory
If the model you need only runs split across CPU and GPU, it will be much slower than on a Mac where it fits. See is 32 GB enough? and test your own prompts on a bigger Mac with LaneBench before you buy. For mlx-lm, its README describes raising the GPU wired memory limit with sudo sysctl iogpu.wired_limit_mb on macOS 15+ (mlx-lm).
FAQ
Why is Ollama not using my Mac's GPU?
How do I know if Ollama is using the GPU?
Can Ollama use the GPU in Docker on a Mac?
See any model on the exact Mac you're considering.
- Ollama docs: GPU
- Ollama docs: FAQ
- Ollama docs: macOS
- Ollama docs: troubleshooting
- Ollama docs: context length
- mlx-lm README
Speeds come from published measurements (with source links) or labeled estimates. How we measure