Gemma 4 8B (4.5B active) E4B
on M4 16GB · Ollama · 2,048 ctx
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
- 110.5 t/s · one run
- 73.9 t/s · one run
- 69.7 t/s · one run
- 59.5 t/s · 2 runs
- NVIDIA RTX 407012 GB55.0 t/s · one run
- 8.2 t/s · one run
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
- Qwen3 8B4-bit16.6 t/s · 2 runs
- Qwen3.5 4B4-bit19.2 t/s · 2 runs
- 30.9 t/s · one run
- 64.0 t/s · one run
- Qwen2.5 3B4-bit47.4 t/s · one run
- Qwen3 14B4-bit12.7 t/s · one run
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 →