llamaperf

Gemma 4 31B

on M3 Ultra 512GB · MLX

Apple hardware
Oct 13, 2026
Throughput
9.2 t/s gen · 295.9 tokens/s prompt processing (prefill)Prompt processing is how fast the input is read, not how long you wait for the first word. How to measure time to first token.
Quant
BF16 (MLX)
System RAM
512 GB

Summary

User reports Gemma 4 31B at 9.2 t/s generation and 295.9 t/s prompt processing on an M3 Ultra 512GB. Setup is MLX with BF16 weights at 32768 input tokens and 128 output tokens, batch 1 on one device, with a fresh KV cache per call and no draft or KV-quant flags. The 32768-token row is a five-trial median, not pooled across lengths, with a peak allocator high-water of 71.714GB; a stuck indexer consumed one CPU core during the tests and its effect was not measured.

Download this model

This report's quant, BF16, 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

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

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 →