Fix 1: Check Metal GPU Is Active
The single biggest speed difference comes from whether your Mac is using its GPU (via Metal) or running on CPU only. Metal-accelerated inference is 3-5x faster than CPU-only mode.
How to check:
- Open Activity Monitor (search in Spotlight)
- Click the GPU tab (or Window → GPU History)
- Run a model and check if your inference engine shows GPU usage
- In Ollama, run
ollama ps— look for GPU percentage in the output
If GPU usage is zero, see our dedicated GPU not used guide for the full fix.
Quick check: Run ollama ps while a model is loaded. The output shows how many layers are on GPU vs CPU. If GPU% is 0, Metal is not active.
Fix 2: Close Memory-Hungry Apps
Apple Silicon Macs use unified memory — your GPU and CPU share the same RAM pool. Every gigabyte used by another app is a gigabyte unavailable for your model. On a memory-constrained Mac, closing background apps can be the difference between a model that fits and one that swaps to disk, which is many times slower.
Worst offenders:
- Safari with many tabs — each tab can use 100-500 MB
- Docker Desktop — reserves 2-4 GB by default
- Xcode — indexing can consume 2+ GB
- Chrome — notorious for memory usage, 50-300 MB per tab
- Slack / Teams / Discord — Electron apps using 500 MB+ each
# Check what's using your RAM
# Open Activity Monitor → Memory tab → Sort by Memory column
Fix 3: Use Smaller Quantization
Quantization reduces model precision to shrink file size and memory usage. Q4_K_M is the usual sweet spot: decode on a Mac is memory-bandwidth-bound, so a file about half the size of Q8_0 decodes nearly twice as fast, at a small quality cost.
| Quantization | Size (7B model) | Relative decode speed (estimated) | Quality loss |
|---|---|---|---|
| F16 | 14 GB | 1× (baseline) | None (baseline) |
| Q8_0 | 7.4 GB | ~1.9× | Negligible |
| Q4_K_M | 4.0 GB | ~3.5× | Small |
| Q3_K_M | 3.4 GB | ~4× | Noticeable |
| Q2_K | 2.4 GB | ~6× | Large |
Sizes and relative speeds from the LLMCheck index’s bandwidth model (how estimates work), not measurements; real files and runtimes vary.
In Ollama, most models default to Q4_K_M. To explicitly choose a quantization:
# Pull specific quantization
ollama pull qwen3.5:9b-q4_K_M
ollama pull qwen3.5:9b-q8_0
Fix 4: Try MLX
MLX is Apple's native machine learning framework, built specifically for Apple Silicon. It uses unified memory more efficiently than llama.cpp and has deeper Metal integration. It often decodes faster than llama.cpp on the same model and bit-width, though the gap varies by model and runtime version. Since v0.40.0 Ollama itself runs supported models on MLX by default on Apple Silicon; ollama ps shows which runner a model uses.
# Install MLX
pip install mlx-lm
# Run a model
mlx_lm.generate --model mlx-community/Qwen2.5-7B-Instruct-4bit \
--prompt "Explain quantum computing simply"
The tradeoff: MLX requires more technical setup than Ollama, and the model ecosystem is smaller. But if speed is your priority, it is worth the effort.
Fix 5: Reduce Context Length
Context length determines how much text the model can process at once. Larger context uses more memory and slows inference. Most casual use cases work fine with 4096 tokens.
# Set context length for Ollama
export OLLAMA_NUM_CTX=4096
ollama serve
# Or per-model in a Modelfile
FROM qwen3.5:9b
PARAMETER num_ctx 4096
Reducing context from 8192 to 4096 frees approximately 500 MB-1 GB of RAM depending on the model, which translates directly to faster inference.
Fix 6: Use MoE Models
Mixture of Experts (MoE) models are a game-changer for speed. They have many parameters but only activate a fraction per token. Gemma 4 26B-A4B has 26B total parameters but activates only 4B per token — meaning it runs at the speed of a 4B model while delivering quality closer to a 26B model.
| Model | Active Params | Decode speed, M3 Pro (LLMCheck index) |
|---|---|---|
| Qwen 3.5 27B (dense) | 27B | estimated~8 tok/s |
| Gemma 4 26B-A4B (MoE) | 4B active | estimated~48 tok/s |
| Qwen 3.5 9B (dense) | 9B | estimated~22 tok/s |
At Q4_K_M on a 36 GB M3 Pro (150 GB/s); each figure is marked measured or estimated.
# Pull a MoE model in Ollama
ollama pull gemma4:26b-a4b
Fix 7: Upgrade Your Inference Engine
Each new release of Ollama, LM Studio, and llama.cpp includes Metal optimizations that improve speed. Since v0.40.0 Ollama runs supported models on MLX by default on Apple Silicon, so an old install can be leaving speed on the table.
# Check your Ollama version
ollama --version
# Update Ollama (re-download from ollama.com or use brew)
brew upgrade ollama
Impact Comparison: All 7 Fixes
| Fix | Speed Improvement | Effort | Time to Apply |
|---|---|---|---|
| Check Metal GPU | 3-5x if GPU was off | Low | 2 min |
| Close apps | Large if the model was swapping | Low | 1 min |
| Smaller quantization | 2x (Q8 to Q4_K_M) | Low | 5 min |
| Try MLX | Varies by model | Medium | 15 min |
| Reduce context | 10-25% | Low | 2 min |
| Use MoE model | 2-3x vs equivalent dense | Low | 5 min |
| Upgrade engine | Varies by release | Low | 5 min |
Sources
- Ollama GitHub repository — Release notes and performance benchmarks
- MLX GitHub repository — Apple's ML framework documentation
- Apple Metal documentation — GPU acceleration details
- LLMCheck Leaderboard — Benchmark data for 116 models on Apple Silicon
- LLMCheck Troubleshooting Hub — More troubleshooting guides