Gemma 4 31B
on M5 Max 48GB · llama.cpp
Summary
User reports Gemma 4 31B at 25.2 t/s generation and 626.5 t/s prompt processing on an M5 Max 48GB.
Setup is llama.cpp build 11146 with Q4_K_M weights and Metal, n_gpu_layers=99 and flash attention enabled.
The figures are separate llama-bench microtests, tg128 and pp512, not one 512-input/128-output request or server concurrency throughput.
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 M5 Max 48GB
- Gemma 3 12B4-bit64.2 t/s · 2 runs
- Gemma 3 4B4-bit163.4 t/s · 2 runs
- Qwen 2.5 Coder 14B4-bit58.4 t/s · 2 runs
- Qwen 2.5 Coder 32B4-bit27.4 t/s · 2 runs
- Qwen 2.5 Coder 7B4-bit113.9 t/s · 2 runs
- Qwen3 0.6B4-bit513.9 t/s · 2 runs
Bars are medians on one scale, 0 to 570.6 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 M5 Max 48GB →Every Gemma 4 report →Estimate Gemma 4 on this card →