Gemma 4 31B
on M4 Max 64GB · llama.cpp
Summary
User reports Gemma 4 31B at 22.4 t/s generation and 62.7 t/s prompt processing on an M4 Max 64GB.
Setup is llama.cpp with Q4_K_M, 4096 context, flash attention on, and one Mac Studio with a 40-core GPU.
The headline Quick Chat run used 52 prompt tokens and 96 output tokens, with three measured samples per scenario; these are short inputs, not long-context benchmarks.
Download this model
Gemma 4 31B on Hugging Face in the quant this report ran, Q4_K_M. The report doesn't say whose upload it used, so these are the most downloaded ones.
Compare this run
Medians of plain runs: one device, one request, no speculative decoding, the whole model in the device's memory. The report above is one setup, so read it beside them and not as one of them.
Gemma 4 31B at 4-bit by hardware
- NVIDIA RTX 509032 GB64.0 t/s · one run
- 51.0 t/s · one run
- NVIDIA RTX 309024 GB36.5 t/s · one run
- AMD RX 7900 XTX24 GB30.1 t/s · one run
- 25.2 t/s · one run
- 22.4 t/s · one run
Bars are medians on one scale, 0 to 64.0 tokens/s. Press ▶ to watch text arrive at a row's speed.
Models most run on the M4 Max 64GB
- Qwen3.8 27B4-bit22.6 t/s · 2 runs
- 81.7 t/s · one run
- Gemma 4 31B4-bit22.4 t/s · one run
- Qwen3.5 9B4-bit65.5 t/s · one run
- 76.4 t/s · one run
- 52.6 t/s · one run
Bars are medians on one scale, 0 to 81.7 tokens/s. Each dot is one run and opens its report. Press ▶ to watch text arrive at a row's speed.
Everything reported on the M4 Max 64GB →Every Gemma 4 report →Estimate Gemma 4 on this card →