Gemma 4 on the M4 16GB
On the M4 16GB, Gemma 4 26B · 4B active at 4-bit generates a median 30.9 tokens per second, from 1 plain run (64K context).
Speed by size and quant on the M4 16GB
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 4-bit | 30.9 t/sone report, 64K context | llama.cpp 30.9 t/s (1) |
Memory Gemma 4 needs on the M4 16GB
The M4 16GB gives a model 11 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 |
|---|---|---|---|---|---|
| 5.1B · 2.3B active | 7.2 GBfits | 6.2 GBfits | 5.6 GBfits | 5.0 GBfits | 4.3 GBfits |
| 8B · 4.5B active | 10 GBtight | 8.6 GBfits | 7.6 GBfits | 6.6 GBfits | 5.6 GBfits |
| 12B | 14 GBtoo big | 12 GBtoo big | 10 GBtight | 8.9 GBfits | 7.4 GBfits |
| 26B · 4B active | 28 GBtoo big | 23 GBtoo big | 20 GBtoo big | 17 GBtoo big | 14 GBtoo big |
7 reports of Gemma 4 on the M4 16GB
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.
- 8B · 4.5B active · Q452.0 t/s
- 8B · 4.5B active · Q4 · Ollama51.0 t/s
- 8B · 4.5B active · Ollama50.7 t/s
- 12B · Q4_K_M · llama.cpp13.1 t/s
- Size not stated · dynamic_wi8_afp3216.5 t/s
- 26B · 4B active · IQ4_XS · llama.cpp30.9 t/s
- 5.1B · 2.3B active45.0 t/s(3 cards, 10 requests at once)
Frequently asked
How fast is Gemma 4 on the M4 16GB?
On the M4 16GB, Gemma 4 26B · 4B active at 4-bit generates a median 30.9 tokens per second, from 1 plain run (64K context).
Does Gemma 4 fit on the M4 16GB?
The M4 16GB gives a model 11 GB. With an 8k context, the 5.1B · 2.3B active model fits at Q8_0 (about 7.2 GB), the 8B · 4.5B active model fits at Q6_K (about 8.6 GB), the 12B model fits at Q4_K_M (about 8.9 GB), the 26B · 4B active model does not fit with headroom at any quant from Q8 to Q3 (about 14 GB at Q3). The figures are the VRAM calculator's, for one card with the whole model in its memory.