How fast will Gemma 4 31B feel on the MacBook Pro M5 Max 128GB?

Gemma 4 31B on the MacBook Pro M5 Max 128GB

Gemma 4 31B is a 31.27B-parameter model. At Q4_K_M it needs about 19.1 GB of memory. The MacBook Pro M5 Max 128GB has 96 GB usable, so it fits entirely in memory. Expect about 17 tokens/sec (10–25), with the first token after 0.4 s for a short prompt. This estimate is interpolated from benchmarks of similar setups.

Speed by quantization

QuantizationFile sizeMemoryGenerationFirst tokenSource
Q4_K_M18.3 GBFits17 tok/s0.4 sDerived
Q8_032.6 GBFits9.8 tok/s0.4 sDerived
FP1661.4 GBFits5.2 tok/s0.4 sDerived

Gemma 4 31B on other hardware

Other models on the MacBook Pro M5 Max 128GB

All models on the MacBook Pro M5 Max 128GB · Gemma 4 31B on all hardware

Estimates for a short prompt on a single device. Measured numbers come from community benchmarks (r/LocalLLaMA, localscore.ai and more); others are derived from similar setups or projected from specs. Open source on GitHub.