Gemma 4 on the M4 32GB
llamaperf has 7 reports of Gemma 4 on the M4 32GB, none of them a plain single-card run with a generation speed, a model size and a quant, so there is no median to quote. Each report is listed on this page with how it ran.
Memory Gemma 4 needs on the M4 32GB
The M4 32GB gives a model 21 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 GBfits | 8.6 GBfits | 7.6 GBfits | 6.6 GBfits | 5.6 GBfits |
| 12B | 14 GBfits | 12 GBfits | 10 GBfits | 8.9 GBfits | 7.4 GBfits |
| 26B · 4B active | 28 GBtoo big | 23 GBtoo big | 20 GBtight | 17 GBfits | 14 GBfits |
| 31B | 33 GBtoo big | 28 GBtoo big | 24 GBtoo big | 20 GBtight | 16 GBfits |
7 reports of Gemma 4 on the M4 32GB
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.
- 31B · Q4_K_M · Ollama5.3 t/s
- 26B · 4B active · Q4_K_M · Ollama32.0 t/s
- 12B · Q4_K_M · Ollama12.5 t/s
- 8B · 4.5B active · Q4_K_M · Ollama29.9 t/s
- 5.1B · 2.3B active · Q4_K_M · Ollama55.0 t/s
- 12B · Q4_K_M · Ollama8.7 t/s
- 8B · 4.5B active · Q4_K_M · Ollama16.7 t/s
Frequently asked
How fast is Gemma 4 on the M4 32GB?
llamaperf has 7 reports of Gemma 4 on the M4 32GB, none of them a plain single-card run with a generation speed, a model size and a quant, so there is no median to quote. Each report is listed on this page with how it ran.
Does Gemma 4 fit on the M4 32GB?
The M4 32GB gives a model 21 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 Q8_0 (about 10 GB), the 12B model fits at Q8_0 (about 14 GB), the 26B · 4B active model fits at Q4_K_M (about 17 GB), the 31B model fits at Q3_K_M (about 16 GB). The figures are the VRAM calculator's, for one card with the whole model in its memory.