llamaperf

Gemma 4 on the M3 Ultra 512GB

On the M3 Ultra 512GB, Gemma 4 26B · 4B active at 16-bit generates a median 62.4 tokens per second, from 1 plain run (context not stated).

Speed by size and quant on the M3 Ultra 512GB

Plain runs only: one card, one request, no speculative decoding, the whole model in memory. Each row is one model size at one bit class. Context length and build still differ between runs, and each row shows its own.

Gemma 4GenerationBy engine
26B · 4B active 16-bit62.4 t/sone report, context not statedprompt 2649.3 t/s (one report)
llama.cpp 62.4 t/s (1)
26B · 4B active 8-bit84.9 t/sone report, context not statedprompt 2634.8 t/s (one report)
llama.cpp 84.9 t/s (1)
26B · 4B active 5-bit88.1 t/sone report, context not statedprompt 2554.2 t/s (one report)
llama.cpp 88.1 t/s (1)
26B · 4B active 4-bit87.8 t/sone report, context not statedprompt 2595.3 t/s (one report)
llama.cpp 87.8 t/s (1)
31B 16-bit9.2 t/sone report, context not statedprompt 295.9 t/s (one report)
MLX 9.2 t/s (1)

Memory Gemma 4 needs on the M3 Ultra 512GB

The M3 Ultra 512GB gives a model 384 GB. Each figure is the memory a size reported on this card needs at one quant with an 8k context, cache and buffers included, from the VRAM calculator. It is for one card holding the whole model. Gemma 4 memory on every card.

SizeQ8_0Q6_KQ5_K_MQ4_K_MQ3_K_M
26B · 4B active28 GBfits23 GBfits20 GBfits17 GBfits14 GBfits
31B33 GBfits28 GBfits24 GBfits20 GBfits16 GBfits

7 reports of Gemma 4 on the M3 Ultra 512GB

Newest first. A run on several cards, with speculative decoding, with part of the model in system RAM or with batched requests says so, since each describes a different setup. 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.

Filter these reports on the homepage

Frequently asked

How fast is Gemma 4 on the M3 Ultra 512GB?

On the M3 Ultra 512GB, Gemma 4 26B · 4B active at 16-bit generates a median 62.4 tokens per second, from 1 plain run (context not stated).

Does Gemma 4 fit on the M3 Ultra 512GB?

The M3 Ultra 512GB gives a model 384 GB. With an 8k context, the 26B · 4B active model fits at Q8_0 (about 28 GB), the 31B model fits at Q8_0 (about 33 GB). The figures are the VRAM calculator's, for one card with the whole model in its memory.