llamaperf

Gemma 4 on the M4 Pro 64GB

On the M4 Pro 64GB, Gemma 4 5.1B · 2.3B active at 8-bit generates a median 82.4 tokens per second, from 2 plain runs (context not stated).

Speed by size and quant on the M4 Pro 64GB

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
5.1B · 2.3B active 8-bit82.4 t/smedian of 2, context not statedprompt 1552.3 t/s (median of 2)
llama.cpp 78.2 t/s (1)
8B · 4.5B active 8-bit44.3 t/smedian of 2, context not statedprompt 778.4 t/s (median of 2)
llama.cpp 42.4 t/s (1)
12B 4-bit30.0 t/smedian of 2, context not statedprompt 291.5 t/s (median of 2)
llama.cpp 29.1 t/s (1)
26B · 4B active 4-bit57.3 t/smedian of 2, context not statedprompt 774.8 t/s (median of 2)
llama.cpp 54.2 t/s (1)

Memory Gemma 4 needs on the M4 Pro 64GB

The M4 Pro 64GB gives a model 48 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 GBfits8.6 GBfits7.6 GBfits6.6 GBfits5.6 GBfits
12B14 GBfits12 GBfits10 GBfits8.9 GBfits7.4 GBfits
26B · 4B active28 GBfits23 GBfits20 GBfits17 GBfits14 GBfits

9 reports of Gemma 4 on the M4 Pro 64GB

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 Pro 64GB?

On the M4 Pro 64GB, Gemma 4 5.1B · 2.3B active at 8-bit generates a median 82.4 tokens per second, from 2 plain runs (context not stated).

Does Gemma 4 fit on the M4 Pro 64GB?

The M4 Pro 64GB gives a model 48 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 Q8_0 (about 28 GB). The figures are the VRAM calculator's, for one card with the whole model in its memory.