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 4 | Generation | By engine |
|---|---|---|
| 26B · 4B active 16-bit | 62.4 t/sone report, context not statedprompt 2649.3 t/s (one report) | llama.cpp 62.4 t/s (1) |
| 26B · 4B active 8-bit | 84.9 t/sone report, context not statedprompt 2634.8 t/s (one report) | llama.cpp 84.9 t/s (1) |
| 26B · 4B active 5-bit | 88.1 t/sone report, context not statedprompt 2554.2 t/s (one report) | llama.cpp 88.1 t/s (1) |
| 26B · 4B active 4-bit | 87.8 t/sone report, context not statedprompt 2595.3 t/s (one report) | llama.cpp 87.8 t/s (1) |
| 31B 16-bit | 9.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.
| Size | Q8_0 | Q6_K | Q5_K_M | Q4_K_M | Q3_K_M |
|---|---|---|---|---|---|
| 26B · 4B active | 28 GBfits | 23 GBfits | 20 GBfits | 17 GBfits | 14 GBfits |
| 31B | 33 GBfits | 28 GBfits | 24 GBfits | 20 GBfits | 16 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.
- 26B · 4B active · MXFP4_MOE · llama.cpp87.8 t/s
- 26B · 4B active · UD-Q8_K_XL · llama.cpp84.9 t/s
- 26B · 4B active · UD-Q5_K_M · llama.cpp88.1 t/s
- 26B · 4B active · BF16 · llama.cpp62.4 t/s
- 31B · BF16 · MLX9.2 t/s
- 31B · 4bit MLX · mlx-vlm21.4 t/s
- 26B · 4B active · 4bit MLX · mlx-vlm67.6 t/s
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.