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

Model family ← Models

tagger-e2b-v1

Alan's own tagging model, a fine-tune of Gemma 4 E2B trained on his private conversations. It scored below the model it was made from, and Gemma 4 12B got the tagging job.

Parameters
2B
Files tested
2
Scored runs
3

Made by Alan

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?

You can't: it was trained on private data and won't be published. For a small tagger, the model it came from, Gemma 4 E2B, did better on our main tagging test on the same runtime, and Gemma 4 12B is what we chose for the job.

What it taught us

  • A fine-tune can come out worse than the model it started from. The tagger fine-tune scored below its own base model.
  • Compare on the same runtime. Changing the runtime and file format along with the model made the first gap hard to read.
  • Look at the training data. Our conclusion was that the data, not the runtime, needs revisiting.

Why we tested it

A tagger reads one turn of a conversation and returns a short label in JSON: a category from a fixed list of 18, a few topics, and the names mentioned. In June Alan made his own by fine-tuning Gemma 4 E2B with LoRA, which trains a small set of extra weights on top of a model. He used a few hundred of his own conversation turns, labelled by a 31B Gemma 4. It had been in use on the M4 Mac mini since 28 June.

On 23 August, while we compared stock models for a related job, Alan pointed us to it. Testing it against the stock model it came from made a clean experiment. Alan: "same data, 2 models, one tuned".

What it took

It is an MLX file, so llama.cpp can't run it. We copied it from the M4 Pro Mac mini, where Alan trained it, and ran it with mlx_lm.

What happened

  • A low first score. Our tagging test checks every tag against the rules: a category from the list, the right number of topics, no names that aren't in the turn. It passed 77.1% of 240 turns, putting 9 categories outside the list where the stock Gemma 4 E2B and E4B put none.
  • But that wasn't a fair fight. The fine-tune ran on MLX, the stock models on llama.cpp in a different 4-bit format.
  • The fair test. On 7 September we ran the fine-tune and its base through the same MLX server, same settings, same 240 turns, with the possible outcomes written down first. The fine-tune scored 74.2% and its base 85.8%, a gap well beyond chance. On the version of the test that allows empty fields they were level, 75.0% against 73.8%.
  • Small and quick, though. It took 1.23 seconds a turn, and the tagging job has to keep up. Alan, on 12 September: "Tagger needs to run on every turnpair so it will be under constant usage". That kept it in mind for a long one-off pass.
  • Deleted. Our working copy went on 11 October in a disk clear-out.
The files 2 tested · each has its own page
  • fused MLX 4-bit model

    The tagger itself, merged into one 4-bit MLX model. All three scored runs are on this file; our working copy was deleted in October.

    working copy deleted 2026-10-11 (sweep tiers A+B); the tarball is still in Downloads on 2026-10-23 · 2.6 GB · 3 scored runs · smallest Mac 8 GB

  • LoRA adapters

    The fine-tune's extra weights on their own. Downloaded with the model, never used here.

    Adapters-e2b · working copy deleted 2026-10-11; tarball still in Downloads · size not recorded · never scored

Corrections 5 to the record published 21 October 2026
  • On the tagger run of 23 August 2026: suite version was none, now tagger/1. This run used the tagger/1 suite, frozen before the tagger/2 version bump; the row carried no version.

    Corrected 26 October 2026 · a mechanical fix

  • On the tagger run of 23 August 2026: dataset id was none, now 08de96244bc929b8. This run used the tagger/1 dataset; the row carried no dataset id.

    Corrected 26 October 2026 · a mechanical fix

  • On the tagger run of 23 August 2026: grader id was none, now e8205e9fa8fb5146. This run used the tagger/1 grader; the row carried no grader id.

    Corrected 26 October 2026 · a mechanical fix

  • Size (GB) was 3.0, now 2.6. The fused model file was recorded at 2,623,906,147 bytes, about 2.6 GB, not 3.0.

    Corrected 26 October 2026 · a mechanical fix

  • Why it was tested corrected. The training set was counted at 298 turns, and the project note describes it as a local replacement candidate for the cloud-model backfill, not a replacement for a general model in the tagging seat.

    What it said before

    Why it was tested: A custom tagger, fine-tuned with MLX LoRA on 270 turns, intended to replace the general model in the tagging seat.

    Corrected 26 October 2026 · a headline fix

The lab's record Every decision, with its date · the model's specification
Decisions, in order
  • 2026-06-28 — trained. LoRA on the M4 Pro Mac mini per the recipe above; the date is from the lab's notes. Why this recipe was chosen is not on record (it would have been in that machine's distill/ notes and the June sessions).
  • 2026-08-23 20:53Z — fetched for benchmarking. Downloaded tagger-e2b-v1.tar and adapters-e2b.tar over HTTP from the M4 Pro Mac mini in about a minute (about 61 MB/s) and extracted into models/tagger-e2b-v1-dl/. The README, read first, said no eval had ever been run against the gold turn-pair set.
  • 20:54Z — contamination first. Only 59 of 240 benchmark turns were provably after the training date, so the assistant tested the 298 training turns against the corpus by content and found them disjoint.
  • 21:44Z–21:50Z — first graded run, in-process MLX through the new runner. 9/12 on a 12-case smoke (75.0), then 185/240 (77.1).
  • 21:56Z — suite bumped to tagger/2 and the training-set fingerprint baked in; the old dataset id stays attached to the old result.
  • 22:42Z–23:14Z — first side-by-side. The assistant's reading: "Every untuned Gemma beats the purpose-tuned model on its own contract". That was later held back as confounded.
  • 2026-08-24 23:35Z — explicit caveat. Retiring the tuned tagger, the assistant wrote, "looks decisive and is not" because of the runtime and quantisation confound.
  • 2026-08-31 18:00Z — the cutover target moved. tagger-e2b-v1 at 77.1 "shouldn't be the cutover target"; gemma4-12b at 93.8 / 97.9 became the tagger.
  • 2026-09-07 20:56Z — the control was spotted and pre-registered. The assistant noticed the fine-tune scored 14 points under its base, that the run had no manifest, and proposed a matched re-run. Pre-registered at 20:57Z, three outcomes: "Distill beats base" would validate the pipeline, "Distill still below base" would mean "270 turns overfit a narrow format", "Both near 91%" would mean "the fine-tune achieved nothing measurable".
  • 21:20Z — outcome: the second reading. "Distill verdict: don't cut over". Cutover cancelled; gemma4-12b keeps the seat. Logged as The tagger fine-tune scored below its own base model, 2026-09-08.
  • 2026-10-07 — publish inventory: hold. The assistant listed it as "publishable but I'd hold": it regressed below base, its README names Alan and private data paths, and it is trained on private turns; "publish only if you want a documented negative result, after redaction".
  • 2026-10-11 — working copy deleted. Sweep "tiers A and B" under Alan's decision "nuke tiers a & b" (quoted in a lab note; not found in the working sessions searched, so cited secondhand). Reason given: "the tuned tagger; e2b went dark 2026-08-26, replaced by gemma4-12b" (RESTORE header).
  • 2026-10-23 — publication ruled out. The upload gates include "Never anything trained on private data".
What we learned, in the lab's words
  • The fine-tune lost to the model it was distilled from. On a matched runtime (both through mlx_lm server, same extraction profile, same 240 gold turn pairs, 100% coverage on all four legs) tagger/2 scored 74.2 for the distil against 85.8 for the base (intervals 68–79 and 81–90, non-overlapping), and tagger_nullable 75.0 against 73.8 (no difference). Finding The tagger fine-tune scored below its own base model, confirmed 2026-09-07. The earlier gap (77.1 against 91.2) was partly an artefact of runtime and profile, but "the direction held once controlled".
  • It breaks its own contract where stock Gemmas do not. First run, all 240 turns: 185 compliant (77.1), 9 out-of-enum categories, 12 topic-count violations, 38 invented entities, entity precision 0.957; the stock E2B and E4B had 0 out-of-enum, 0 to 2 topic-count violations. Entity invention rate per entity: 2.9% (48 of 1,652) for the tuned model against 0.9 to 2.0% for stock Gemmas.
  • Both of those comparisons were confounded, and the assistant said so each time. The tuned model ran on MLX 4-bit affine in-process, the stock models on llama.cpp q4_0 QAT: "Confounded twice now". The matched mlx_lm re-run on 2026-09-07 was the control that resolved it.
  • On entity extraction against the 240 labelled turn pairs (labels are a silver standard, model-produced): recall 57.8, precision 50.9, F1 54.2 for this model, against F1 54.0 for gemma4-12b on its original prompt and 67.2 for the 12B on the nullable prompt.
  • Cheap, small, fast. 2.6 GB, 1.23 s per item, about 14 days per million emails against 69 days for gemma4-12b. That is why it stayed in the conversation as a throughput option for a restartable backfill after the quality verdict, though the assistant's own caution applies: "a backfill that takes a fortnight" is only a win if 75.0 is acceptable.
  • Training on 298 turns cost 11.6 points and bought nothing measurable. The assistant's conclusion: "the training data, not the runtime, is what needs revisiting".
  • A metric mix-up inflated its standing once (reconstructed). On 2026-09-14 a comparison table ranked taggers by the mean per-case partial-credit score rather than the run log's pass rate, giving this model 95.8 where the board says 77.1 / 74.2; the same mix-up is described in family-gemma4-e2b.
Why it was tested, in the lab's words
  • It was the incumbent. A lab note on it was written on 2026-08-23 because Alan had asked where his LoRA-trained E2B lived and nothing documented it; it lists "benchmark it as the baseline for the enrichment suite" as its purpose.
  • Alan, 2026-08-23 20:33Z, while the assistant was busy comparing candidates for the enrichment role: "I already have a custom tuned tagger - might be in okf, tuned from 31b cloud gemma 4 and my own turn pairs for fresh context naming conventions, deliberately dropped from this test".
  • 20:39Z: "same data, 2 models, one tuned". The assistant called that "the cleanest experiment available — same data, same architecture, one variable", and built the label-free agreement tool for it.
  • 20:53Z, Alan sent the three download addresses and a remark on the runtime: "it ran in mlx so no dual models in cpp"; at 21:11Z, queued, "interestingly the tagger is on mlx, may get more juice out of llama".
  • 21:16Z, after a first look at 59 turns the model could not have seen: "so my tagger was inaccurate?".
  • Why the base family mattered: 22:24Z, "tagger was traing on gemma 4 so the family is good.". The tuned-versus-base comparison is what brought the whole Gemma 4 grid onto the board; see family-gemma4-e2b.
  • 2026-09-07 20:56Z, queued, on a remark about MLX being the only route to making his own models: "yeah my custom tagger was made using mlx lora tune".
  • Stated production need, 2026-09-12 16:30Z: "Tagger needs to run on every turnpair so it will be under constant usage, freshlink will be a backfill turnpair pass to populate graphiti & falkor etc".
  • Not this model (misattribution check): Alan's "gemma was a tagger candidate" (2026-09-09) is about the stock Gemma models the board promoted to the tagging job, not this fine-tune. It is not cited as evidence here.
Open questions
  • Was the production tagger on the M4 Mac mini actually "dark" from 2026-08-26 as the sweep note says? Alan's 2026-09-12 line says his custom tagger was running, and a lab note records the extractor as answering. Whether it is still the live metadata tagger on the M4 Mac mini today is not on record.
  • Would more or differently balanced training data beat the base? The assistant suggested revisiting the data, not the runtime; no v2 exists.
  • The training recipe's motivation (why 16 layers, rank 8, 400 iterations) is not on record here.
  • Whether a provenance-e2b LoRA of the same recipe, distilled from the 12B, would work was floated on 2026-10-05 and not tried.
The model in detail
fieldvalue
makerAlan, on the M4 Pro Mac mini, not on the Mac Studio. Trained 2026-06-28; first written up 2026-08-23
what it isa LoRA fine-tune of the 4-bit MLX conversion of Gemma 4 E2B, fused into a single 4-bit model. A derivative, so its own family; parent family-gemma4-e2b
base weightsmlx-community/gemma-4-e2b-it-4bit (family-gemma4-e2b holds that file as variant-gemma4-e2b-mlx-4bit-community)
teachergemma4:cloud, a 31B Gemma 4 served through the Ollama cloud
task and contractone user-to-assistant turn in, one JSON object out with exactly three keys (category, topics, entities); the category is one token from a closed list of 18 values baked in at train time; temperature 0; --mask-prompt so only the JSON was learned. The exact prompt is not repeated here
training dataprivate: Alan's own turn pairs, labelled by the teacher. README says "~270"; the assistant counted 298 training turns and fingerprinted the set (sha b15316b93bab7d71) on 2026-08-23 when it ruled out overlap with the 240-turn benchmark corpus on four content tests (exact pair, user text only, assistant text only, 200-character assistant prefix). No content is recorded here
training recipe (from adapters-e2b/adapter_config.json)mlx_lm LoRA; 16 layers; rank 8, scale 20.0, dropout 0.0; batch size 4, gradient accumulation 1; 400 iterations; learning rate 1e-4, Adam, no schedule; max sequence 2048; gradient checkpointing; mask_prompt true; seed 0; saves every 100 iterations; evaluation every 50 steps, 8 validation batches. Script train_e2b.sh in fresh-context/distill/ on the M4 Pro Mac mini (not read here)
output formthe fused model: model_type gemma4, 35 layers, hidden size 1536, context 131,072, MLX 4-bit affine group 64; model.safetensors 2,623,906,147 B; directory about 2.5 GB. Adapters kept separately (about 130 MB)
licenceREADME front matter says apache-2.0 and links the Gemma 4 licence; the assistant noted the Gemma terms of use apply to derivatives
Hugging Facenone, and it must stay that way. The lab's weights map: "not on HF (private fine-tune)". On 2026-10-23 the assistant listed "Never anything trained on private data" as the second upload gate, naming tagger-e2b-v1 as a fine-tune on his turn pairs that "must stay private".
runtime heremlx_lm 0.31.3: once in-process through the harness mlx: backend, once as mlx_lm server. It cannot load in llama.cpp (fused MLX safetensors, not GGUF)
production usein-process inside extractor_service.py on the M4 Mac mini as gemma-4-e2b-tagger-v1; the lab's notes counted 17,272 task=metadata rows from it, 2026-06-28 to 2026-08-23. Alan, 2026-09-12 18:34Z: "It's qwen at 5gb for freshloops and my custom tagger running + bge"