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:

  1. Open Activity Monitor (search in Spotlight)
  2. Click the GPU tab (or Window → GPU History)
  3. Run a model and check if your inference engine shows GPU usage
  4. 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:

# 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.

QuantizationSize (7B model)Relative decode speed (estimated)Quality loss
F1614 GB1× (baseline)None (baseline)
Q8_07.4 GB~1.9×Negligible
Q4_K_M4.0 GB~3.5×Small
Q3_K_M3.4 GB~4×Noticeable
Q2_K2.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.

ModelActive ParamsDecode speed, M3 Pro (LLMCheck index)
Qwen 3.5 27B (dense)27Bestimated~8 tok/s
Gemma 4 26B-A4B (MoE)4B activeestimated~48 tok/s
Qwen 3.5 9B (dense)9Bestimated~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

FixSpeed ImprovementEffortTime to Apply
Check Metal GPU3-5x if GPU was offLow2 min
Close appsLarge if the model was swappingLow1 min
Smaller quantization2x (Q8 to Q4_K_M)Low5 min
Try MLXVaries by modelMedium15 min
Reduce context10-25%Low2 min
Use MoE model2-3x vs equivalent denseLow5 min
Upgrade engineVaries by releaseLow5 min

Sources