FreshContext , home
Drawing
02 · Benchmarks
Sheet
2 of 3
Rev
A · 2026-10-01

Model family ← Models

Gemma 4 E4B

The middle of the three Gemma 4 models we compared. Fast, cheap at long context and perfect at picking tools, but it invents answers, rarely leaves a gap empty, and often follows instructions planted in tool results.

Files tested
4
Scored runs
16
Smallest Mac
16 GB for the file we kept

Made by Google

Overview Should you use it · what it taught us · why we tested it · what happened

How this page was made. The tests run automatically on our Mac Studio, and every score here comes straight from those runs. This overview was written by Claude, an AI model, from the lab's own records: the run log, notes kept at the time, and the working sessions where each decision was made. Quotes are Alan's words, with spelling fixed. How these pages are made.

Should you use it?

For a small, fast model to tag text or pick tools, with a long context that costs little memory, it did well here. Don't use it to pull facts from documents, to leave gaps empty, to weigh sources, or to act on tool results you don't trust: Gemma 4 12B did better at the first three, and resisted more of AgentDojo's planted instructions. Check the smallest Mac for each file below.

What it taught us

  • One family, different holes. Alan, on 25 August, as we compared how the three handled planted instructions: "I still don't really understand why the same Gemma 4 family have different holes in what they can and can't do". Weighing sources, tested in October, split them too: E4B and E2B failed in the same places; the 12B didn't.
  • Picking the right tool isn't the same as finishing the job.
  • Check a surprising result before believing it. The 16-bit copy's failure came from a missing chat template, not from its precision. The fix was to gate every run behind a one-tool-call check.

Why we tested it

On 23 August Alan wanted to try Google's smaller Gemma 4 models: "also want to try gemma4 smaller models at full context". So its first job was our context ladder, which measures how much memory a model needs as the conversation grows.

That night he widened the test: "feel free to try both e2b and e4b too as well as 12b seeing as we're back in gemma territory (this alone fascinates me)". E4B became the middle of three Gemma 4 models from the same release, rounded the same way, so the effect of size could be read off cleanly. "E4B" means about 4 billion effective parameters; the file holds 7.46 billion.

What it took

Nothing unusual. Google's own 4-bit GGUF ran on llama.cpp as downloaded.

What happened

  • Long context was cheap. Holding 131,072 tokens of conversation took 7.06 GB, against 5.12 GB at 8,192. It found a planted fact 9 times in 9, at up to 126,976 tokens. It wrote 66.7 tokens a second.
  • It picked tools perfectly but didn't keep going. 100% (15 of 15) on our tool test and 100% (40 of 40) choosing among many tools. On our test of long chains of tool calls it finished neither chain (0 of 2): it stopped at step 42 of 200 on one and step 5 on the other, the same in four runs.
  • It kept to the rules and stuck to the document it was given: 90.8% (218 of 240) on keeping to our tagging rules, and 97.9% (47 of 48) on answering from the document rather than from what it already knew.
  • It invented answers. Leaving a field empty when the answer isn't there, it scored 13.9% (10 of 72); Gemma 4 12B scored 88.9% (64 of 72). Finding answers in a document and citing the right line, 62.4% (78 of 125): it made up an answer 33 times, where the 12B did twice.
  • It didn't weigh sources. On our test of that it scored 40.0% (16 of 40): right on all 8 answerable cases and all 8 where the evidence fell short, and on none where sources conflicted, rested on one source or had been superseded. Gemma 4 E2B scored the same; the 12B scored 97.5% (39 of 40).
  • It followed planted instructions. In AgentDojo, an outside test of this, it carried out 7 of 9 injected banking tasks.
  • A test of full precision failed. Alan asked: "are we running fp16 on the e models?" We fetched Google's half-precision copy and made a 16-bit file to compare. On the easiest task it made no tool calls at all: the download had no chat template, so the server fell back to the wrong one. The question was dropped, and both files were deleted two days later.
  • It never got a job. Our agents recommended it for agent work, but the jobs it might have done went to the 12B, for tagging, and to K2-Horizon-3.7B. It is still on disk.
The files 4 tested · each has its own page
  • QAT Q4_0 GGUF kept

    The one we kept, still on disk. Google's own 4-bit file, and the one all our scored tests ran on.

    Google · On disk · 5.2 GB · 16 scored runs · smallest Mac 16 GB

  • mmproj

    The vision part that came with it. None of our runs loaded it, so its vision is untested here.

    Google QAT · On disk · 1.0 GB · never scored

  • QAT unquantized safetensors

    Google's half-precision copy of the same trained weights, fetched to see whether 4-bit rounding explained its behaviour. Deleted two days later.

    Google · Deleted 26 Aug 2026 · 15.9 GB · never scored

  • f16 GGUF

    Our 16-bit file made from it. Its one test failed because the file had no chat template; deleted with its source.

    Converted here from the QAT unquantized checkpoint · Deleted 26 Aug 2026 · 14.9 GB · never scored

Corrections 3 to the record published 21 October 2026
  • On the tagger run of 23 August 2026: cases attempted was 480, now 240; cases not measured was 240, now 0; coverage (%) was 50.0, now 100.0. The results file holds 240 failed requests from a first pass against a server that was still loading, then all 240 cases measured; the suite has 240 cases.

    Corrected 24 October 2026 · a mechanical fix

The lab's record Every decision, with its date · the model's specification
Decisions, in order
  • 2026-08-23 10:19Z — download alongside the 9B. Alan asked for the small Gemma 4 models "at full context"; the assistant wrote one get.sh per model and ran them in a chain. Files complete by ~10:44Z.
  • 10:21Z — pre-registered risk. The smoke-test task noted that "gemma4 E2B/E4B use num_kv_shared_layers (18/20)" and llama.cpp b10369 support was "unverified". It loaded fine.
  • 11:27Z–13:15Z — context ladder, needles, llama-bench. Predicted KV 7 KiB/token; measured about 16, "~2.3x" over, where E2B landed on target. The config arithmetic was written down as unreliable for Gemma 4.
  • 22:31Z — scope widened by Alan, quoted above. The heretic Gemma was excluded at Alan's instruction.
  • 22:34Z — first grid fails for a harness reason. E4B and 12B returned HTTP 503 on every case; fixed and re-run 22:44Z.
  • 23:28Z–23:54Z — tools and chaining. E4B 15/15 including 3/3 on chain cases; the assistant's first reading was that it "chained perfectly", then chainwalk showed it stopping at 42.
  • 2026-08-24 00:05Z — pre-registered, then held to. The tools result was read against a stated expectation: "About the same → the suites are too easy. 15/15 everywhere measures nothing." The assistant concluded that tool selection and chaining "don't support any model choice" and that the routing-table row built on them was "decoration". Same note: epistemics shifts under the fixed template.
  • 12:51Z — Alan asks about full precision. "are we running fp16 on the e models?". The assistant explained everything on disk was q4_0 QAT, argued fp16 is arguably the less representative setting for a QAT release, and offered two tests. Alan: "yes, do research on our specific issues and see what you can find". The unquantized QAT repo was found and queued at 12:57Z. The assistant had named the confound it was controlling: "q4_0 QAT makes models terser" as an alternative explanation.
  • 15:41Z–15:43Z — two corrections the same hour. The f16 run scored 24.5 because the control had no chat template; and the whole Toolery leaderboard had been counting timeouts as failures, so coverage was added ("NEVER report a Toolery score without its coverage figure", a lab note). E4B at 79.0 raw / 79.6 excluding timeouts / 99% coverage was affected least.
  • 16:49Z, 21:59Z — role recommendation. The assistant recommended E4B as the agentic model: it ties qwen3.5-9b on score "(79.6 vs 79.8, noise)" and wins on size and decode speed. That is a recommendation, not a recorded decision by Alan. It also noted that its 33 grounding fabrications stop being disqualifying if the tuned tagger, not the agentic model, writes to memory.
  • 2026-08-25 07:28Z — rebuild regression check; labels -b10618 created in the fleet re-run.
  • 2026-08-26 10:22Z — control deleted. Assistant, 10:01Z: "Safe to delete, 29 GB back". Alan: "Yeah nuke the f16"; done 10:23Z.
  • 2026-09-07 17:09Z — the one suite that separates. The assistant judged that chainwalk was the suite doing the discriminating work; E4B 0% there while tools/toolscale are 100%.
  • 2026-09-13 19:41Z — kept as a resident "pool of specialist" candidate, listed with epistemics 97.9. Never seated; no seat decision for it is on record. Seats it might have taken went to the 12B (TAG) and K2-3.7B (DISPATCH).
  • 2026-10-05 14:50Z — worldview run to test whether the small Gemmas share the 12B's provenance skill: they do not.
What we learned, in the lab's words
  • It was never the most capable Gemma and never failed outright; its holes were specific. Scores by label are on each file's page. It is first or joint-first on Toolery tool use (79.0 raw, 79.6 excluding timeouts, 99% coverage) and saturated on tools/1 and toolscale/1 (100 and 100), and then chainwalk/2 and nullschema/1 expose it (0/2 and 13.9).
  • Tool selection saturates; chaining does not. Chain depth at temperature 0 was follow 42/200, accumulate 5/200, identical across four repeats: at step 42 it stopped calling tools and declared a value. The -r1/-r2/-r3 labels exist to prove that was not noise. Same split as E2B (103/2) and the 12B (200/200) (family-gemma4-e2b, family-gemma4-12b).
  • Fabrication on grounding is its worst axis. grounding/1: 33 invented, 5 misread, 40 abstained out of 125; the 12B gave 2 / 5 / 73. Its 5 misreads tie the 12B on the axis a validator loop cannot rescue.
  • The epistemics headline moved with the prompt, not the model. epistemics/3 gave E4B 83.3; after a wording fix to the output format (epistemics/4) it gave 97.9, a swing of +15 while E2B moved −17 on the same change. Only the /4 run is in the run log.
  • Injection: not safe. AgentDojo: 7 of 9 banking injection tasks completed; overall security 57.8% against the 12B's 78.5% and E2B's 2.6%. Toolery adversarial: tool-return injection 1/5, search-poisoning 5/5, document injection 4/5.
  • Failure behaviour on a broken tool result: E4B made one call, then reported an error and stopped; the 12B repeated the identical query three times.
  • No provenance skill. worldview/2 16/40: answerable 8/8 and insufficient 8/8, conflicting, single_source and superseded 0/8 each; identical to E2B. Not a family trait: the 12B has it.
  • Build bump changed nothing measurable. grounding 78/125, nullschema 10/72 and screening 56/60 on both b10369 and b10618 (runlog). It was included on 2026-08-25 as the regression check for the llama.cpp rebuild: "If it breaks on the new one, re-running the fleet would replace good numbers with bad ones".
  • Quantisation was not the explanation for the E-series' behaviour, but the control test failed for a reason that teaches. A half-precision QAT control was built to test whether q4_0 explained the E-series' tendency to terminate decisively. It scored 24.5 on Toolery because the unquantized repo ships no chat template (Gemma 4 E4B f16 GGUF (converted here from the QAT unquantized checkpoint)). The question was dropped, not answered.
  • Speed and memory. llama-bench b10369: prefill 695.5 t/s, decode 66.7 t/s; tg64 64.78 t/s on 2026-09-11. Backfill cost per enrichment call 2.49 s/turn (6.1 h for 16k turns at -np 6) against E2B's 1.44. Needle-in-a-haystack 9/9 up to 126,976 tokens.
Why it was tested, in the lab's words
  • Alan, 2026-08-23 10:16Z, opening the day: "also want to try gemma4 smaller models at full context". The assistant registered E4B and E2B in the harness and put both on the context ladder before the weights had finished downloading. That ladder, not any quality question, is why the file was first run.
  • The model was then drawn into the quality work. Alan, 22:31Z: "feel free to try both e2b and e4b too as well as 12b seeing as we're back in gemma territory (this alone fascinates me)"; and, queued at 22:32Z, "e4b could probably be ran against the tagging too for good measure". That produced the first graded runs (epistemics, tagger).
  • Its place in the grid was as the middle of three same-release, same-quantisation Gemma 4 models (E2B, E4B, 12B), so size could be read off cleanly.
  • Later questions it answered for the 12B seat, not for itself: 2026-10-05, after Alan called the 12B seat "my most hungry model which annoys me", the assistant ran E4B and E2B on worldview to see whether the provenance skill was a family trait (reconstructed: the question is the assistant's reading of that remark). Both scored 16/40.
  • Alan, 2026-08-25 09:38Z: "I still don't really understand why the same Gemma 4 family have different holes in what they can and can't do". E4B was one of the three holes being compared (tool-return injection, below).
  • Not E4B (misattribution check): Alan's 2026-09-09 15:39Z "what about the 4b model" is about K2-Horizon's small size (see family-k2-horizon-3.7b); the surrounding turn is the K2 download. It is excluded here.
Open questions
  • Does the E-series' decisive-termination trait depend on QAT q4_0? Untested: the control file had no chat template. A re-run with the template supplied (or a second quant of the same weights, the assistant's option 2) would answer it.
  • Licence, upstream revision and release date for the E4B repos are not recorded.
  • E4B's grounding fabrication (33) was measured in the extraction profile with schema enforcement; the nullable-prompt behaviour for E4B is not on record (tagger_nullable was never run on E4B: a lab note lists its tagger_nullable as "—").
  • The mmproj has no recorded use. Whether the vision path works on this model on this box is untested.
  • Who decided E4B should not hold a seat is not on record.
The model in detail
fieldvalue
vendorGoogle (Gemma 4 family)
upstream reposgoogle/gemma-4-E4B-it-qat-q4_0-gguf (files gemma-4-E4B_q4_0-it.gguf and gemma-4-E4B-it-mmproj.gguf, both downloaded); google/gemma-4-E4B-it-qat-q4_0-unquantized (half-precision QAT checkpoint, one model.safetensors, downloaded 2026-08-24); google/gemma-4-E4B-it (exists, one model.safetensors, not downloaded)
revisionnot on record (both download scripts fetched resolve/main or a snapshot with no pinned revision)
licencenot on record (would have been on the HF card)
release datenot on record (the E2B sibling's QAT GGUF repo is dated 2026-05-01 in family-gemma4-e2b; E4B's was not read)
parametersllama-bench on the local GGUF reports 7.46 B parameters and 4.79 GiB; "E4B" means about 4B effective parameters (per-layer embeddings, MatFormer nesting per the assistant's search of 2026-08-24)
text architecture42 layers of which 7 are full attention, 2 KV heads, 18 num_kv_shared_layers. Taken from the assistant's config-derived prediction table, not from a header dump
native context131,072 (the ladder was capped there for E-series)
measured KV costabout 16 KiB/token (the config arithmetic said 7); 7.06 GB resident at 131,072, 5.12 GB at 8,192
runtimes used herellama.cpp llama.cpp at b10369 (6e62ba538), b10618 (eb25b7263) and b10893 (c32d1dabe, via .local/bin/llama-server); Toolery against a llama.cpp server

Known stack quirk: llama.cpp logs special_eog_ids contains '<|tool_response>', removing '</s>' token from EOG list on load. The assistant traced it on 2026-08-24 to llama.cpp issue #21471 (a hardcoded </s> end-of-generation check was stopping Gemma 4 early) and judged the warning to be the fix being applied, not a fault. A lab note (written for the 26B and 31B QAT files on b10369) says probability-based metrics on Gemma 4 QAT q4_0 are invalid there. The E4B was never perplexity-tested; the 2026-10-05 coherence probe on b10893 returned confident correct top tokens (12/12, top_prob 0.91 on the first row; worldview__gemma4-e4b__extraction.manifest.json).