llamaperf

Gemma 4 26B (4B active)

on M4 16GB · llama.cpp · 65,536 ctx

Tone: negativeApple hardware
Oct 7, 2026
Throughput
30.9 t/s gen
Quant
IQ4_XS (GGUF)
KV cache
q4_0
Flash Attention
on
System RAM
16 GB

Summary

User reports a ~3.8x generation speed regression on Apple M4 Mac Mini (16 GB unified memory) with Gemma 4 26B A4B IQ4_XS. Master build (d12cc3d) achieves 8.14 tok/s versus 27.18 tok/s on tag b8680, both built from source with llama-server and identical flags. Setup uses Metal backend, --flash-attn on, q4_0 KV cache, 65536 context, and -ngl 99. The regression is reproducible and not explained by memory or swap pressure; prefill on b8680 was 55.7 tok/s.

Download this model

Gemma 4 26B-A4B on Hugging Face in the quant this report ran, IQ4_XS. The report doesn't say whose upload it used, so these are the most downloaded ones.

Compare this run

Medians of plain runs: one device, one request, no speculative decoding, the whole model in the device's memory. The report above is one setup, so read it beside them and not as one of them.

Gemma 4 26B · 4B active at 4-bit by hardware

Bars are medians on one scale, 0 to 267.4 tokens/s. Each dot is one run and opens its report. Press ▶ to watch text arrive at a row's speed.

Models most run on the M4 16GB

Bars are medians on one scale, 0 to 64.0 tokens/s. Each dot is one run and opens its report. Press ▶ to watch text arrive at a row's speed.

Everything reported on the M4 16GB →Every Gemma 4 report →Estimate Gemma 4 on this card →