Can I run it?

Can I run gemma 4 31B it on Apple M5 Pro?

Tight fit

Tight fit fully in unified memory on your Apple M5 Pro at IQ4_XS, 4K context, about 8.3–11 tok/s. Weights 15.2 GB plus 1.41 GB of KV cache — 17.1 GB of 18.0 GB usable.

Best quantIQ4_XS
Working context4K
Max that fits4K
Speed8.3–11 tok/sEstimate from memory bandwidth, not a benchmark. Method.
Weights15.2 GB
KV cache1.41 GB
Total17.1 GB
Usable18.0 GB

gemma 4 31B it details · Apple M5 Pro page · How this estimate is made

Run commands

llama.cpp
llama-server -hf unsloth/gemma-4-31B-it-GGUF:IQ4_XS -c 4096 -ngl 60
Ollama
ollama run gemma
LM Studio
lms get unsloth/gemma-4-31B-it-GGUF
# Then load quant IQ4_XS

Assumptions

Larger models that also fit

Updated 2026-10-24. Profile on this page is the device default.