llamaperf

Gemma 4 8B (4.5B active) E4B

on M4 16GB · Ollama · 2,048 ctx

Tone: mixedApple hardware
Nov 5, 2026
Throughput
50.7 t/s gen · 326.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.
System RAM
16 GB

Use cases

coding

Summary

User compares Ollama 0.40.14 and Magnitude on a 16GB M4 MacBook Pro running gemma4:e4b with a 2048-token prompt and 512 output tokens over 3 runs. Ollama decoded at 50.7 t/s with 326 t/s prefill and 6.3 s to first token; Magnitude decoded at 52.4 t/s with 941 t/s prefill and 2.2 s to first token. On a 4.4k-token prompt the first word took 13.2 s on Ollama and 4.9 s on Magnitude. Magnitude's default file loaded at about 6GB versus 9.8GB for Ollama's (5.3GB vs 9.5GB download). User notes Ollama's default context is 4096 and set OLLAMA_CONTEXT_LENGTH=32768 for a coding agent, and that lfm3:1.7b NVFP4 decoded at 51 t/s versus 73 t/s for lfm3:1.7b-qad-q4_0. Both engines cannot stay loaded on 16GB.

Download this model

This report doesn't say which quant of Gemma 4 E4B it ran.

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 →