Gemma 4 31B
on M3 Ultra 512GB · mlx-vlm
Use cases
long-context
Summary
User reports Gemma 4 31B at 21.4 t/s generation and 235.1 t/s prompt processing on a single Mac Studio with an M3 Ultra and 512 GB unified memory.
Setup is mlx-vlm with 4bit MLX, 36,777 actual input tokens and 128 generated tokens per run, three runs, peak memory 29.7 GB.
The figures are medians; prompt processing p10/p90 are 234.8 and 236.1 t/s, and KV quantization, flash attention and speculative decoding are not exposed.
Download this model
This report's quant, 4bit MLX, doesn't name one file of Gemma 4 31B.
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 M3 Ultra 512GB
- 28.0 t/s · 2 runs
- Qwen3.8 27B4-bit31.8 t/s · one run
- 29.9 t/s · one run
- 20.0 t/s · one run
- 16.0 t/s · one run
- Gemma 4 26B · 4B active16-bit62.4 t/s · one run
Bars are medians on one scale, 0 to 62.4 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 M3 Ultra 512GB →Every Gemma 4 report →Estimate Gemma 4 on this card →