llamaperf

Gemma 4 8B (4.5B active) E4B

on M4 16GB · Magnitude · 2,048 ctx

Tone: positiveApple hardware
Nov 14, 2026
Throughput
52.0 t/s gen · 941.0 tokens/s prompt processing (prefill)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.
Quant
Q4
System RAM
16 GB

Use cases

agentic

Summary

User compares the same Gemma 4 E4B on a 16GB M4 MacBook across two engines with a 2048-token prompt. Magnitude reached the first word in 2.2 s against Ollama's 6.3 s, with prompt reading at 941 vs 326 tok/s. Generation was a near tie at 52 tok/s on Magnitude and 51 tok/s on Ollama. The engines pull different files by default: a 9.5GB NVFP4 on Ollama and a 5.3GB Q4 on Magnitude, which kept memory at 6GB instead of almost 10. User notes agents resend a large prompt every turn, so the prefill gap compounds, and asks whether prefill is the main source of slowness for others.

Download this model

This report's quant, Q4, doesn't name one file of Gemma 4 E4B.

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 8B · 4.5B active at 4-bit by hardware

Bars are medians on one scale, 0 to 110.5 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 →