llamaperf

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 4GenerationBy engine
26B · 4B active 4-bit30.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.

SizeQ8_0Q6_KQ5_K_MQ4_K_MQ3_K_M
5.1B · 2.3B active7.2 GBfits6.2 GBfits5.6 GBfits5.0 GBfits4.3 GBfits
8B · 4.5B active10 GBtight8.6 GBfits7.6 GBfits6.6 GBfits5.6 GBfits
12B14 GBtoo big12 GBtoo big10 GBtight8.9 GBfits7.4 GBfits
26B · 4B active28 GBtoo big23 GBtoo big20 GBtoo big17 GBtoo big14 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.

Filter these reports on the homepage

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.