The fine-tuning pipeline · measured 2026-08-17 and 2026-11-11
One command walks a fine-tune from an empty directory to a measured number. It refuses twice, and both refusals are free: the corpus is gated before a GPU is touched, and the adapter is gated before it is served. Most fine-tunes lose to the model they started from, and the score alone cannot tell you.
AitherEvolution is the loop that runs this on its own: it wires closed-loop learning, the model registry and auto-remediation, so harvested outcomes become training runs without a person starting each one. It proposes. The refusal gates below decide. Nothing it trains is served until the ruler moves.
One command
Seven fine-tunes were run by hand, and every one lost to its own base. The runs were not the problem. Each was assembled ad hoc in a scratch script, so the lessons lived in a transcript instead of in a command, and the next run re-derived them. This is that command. Every stage names itself and returns a code, so a failure is a stage and a number, not something to reconstruct afterwards.
Serve the base, ask it our prompts, and keep only the answers the benchmark's own judge scores 1.0. That is the anchor corpus: our questions, the base model's own correct answers.
Stops on: a harvest too thin to hold a capability. A thin sample of the few things the model happens to ace would narrow it, not hold it.
The capability rows are mixed with the anchor rows and shuffled with a fixed seed. The anchors are inside the training set, not assembled beside it.
Stops on: a missing anchor set, or an empty one — an empty anchor set would hold nothing while making the run look anchored.
The corpus fitness checker runs on the built file. This is the last step that costs nothing, and it is the one people skip.
Stops on: a violation naming this corpus, or a checker that crashed. An unjudged corpus is not a passing one.
LoRA at rank 16, learning rate 2e-5, one epoch, loss on assistant spans only — the prompt is masked to -100. A float32 master adapter whatever the compute dtype, and gradient checkpointing that actually passes gradients.
Stops on: a run whose trainable parameters never moved. The norm is compared before and after, and a zero-gradient run is refused rather than merged into a copy of the base.
The adapter is merged into a bf16 checkpoint, carrying the chat template it was trained under, so serving renders what training rendered.
Stops on: a merge that did not write its output.
The same benchmark on the same items, base against candidate. The run ends in a regression report — gains, losses, and collateral on dimensions the corpus never mentioned — not in a score.
Stops on: a comparison that could not be judged. A transport error is not a zero.
Export instead of merge, for a base that cannot be merged. A 1-bit base, or one whose weights are folded for serving, takes an export stage that produces a GGUF LoRA to serve beside the base, and skips the merged-model bench.
Resumable and exclusive. --from <stage> skips completed work, because a pipeline that must restart from zero after a late failure gets run once and abandoned. The command also refuses to share GPUs: two runs on one box make both results unattributable.
What a corpus does
Train nine experts, each on one capability and silent on the other twelve, against one 8B orchestrator and a 45-item, 13-dimension benchmark. The base scored 0.8540. Every expert lost overall, between −0.18 and −0.58. Then count where the damage landed.
Silence is not neutral. A capability the corpus never mentions is not “left alone” by fine-tuning — it is trained toward whatever register the corpus does teach. You are not adding a skill. You are reshaping everything, and only the thing you wrote about gets a vote.
| run | corpus | overall | vs base |
|---|---|---|---|
| base | — | 0.8540 | — |
| v12 | 100% code-graph recall | 0.7479 | −0.1061 |
| v13 | 8 dimensions, answers only | 0.7914 | −0.0626 |
| v14 | 8 dimensions, with derivations | 0.7946 | −0.0594 |
| v15 | authored, all capabilities | 0.6729 | −0.1811 |
| one-capability expert | a single dimension | 0.3936 | −0.4604 |
Not one of these was a bad training run. Every one converged, saved an adapter, and produced a model that answered fluently.
Check what the base already scores before designing a corpus at all. Ours was at 1.0000 on 9 of the 13 dimensions. There was almost nothing to gain and everything to lose, and most of what we had been calling improvements were trades.
The fix
Anchor every capability you are not teaching with the base model's own correct answers. An answer the model already produces has near-zero loss, therefore near-zero gradient: it holds that capability in place while your new rows pull.
We author the questions and discard any answer we wrote. An answer written by us teaches our register just as hard for a capability we are trying to preserve as for one we are trying to add. Authoring the keep-set is what produced the −0.1811 collapse.
The model is served and asked, so the rows are its output on the exact base that will be trained.
The same judge the benchmark uses. If the harvest judged differently, we would be anchoring behaviour the benchmark does not credit, and the two would drift apart silently.
Rejection-sample to correct answers only. Keeping the model's mistakes reinforces them, which is the one way an anchor actively harms.
An anchor set is this model's own output, so it is cached and keyed on the base and on the density. Reused against a different base it is just another authored corpus wearing the word anchor, and it would drift the very capabilities it exists to hold — silently, because the file is present and the run looks anchored. The harvest is reused across runs of the same base.
The harvester's default asked only the dimensions we have generators for — 11 of 13. The other two cannot be anchored at all. The harvest succeeds, writes a well-formed anchor corpus and reports a row count; the omission surfaces hours and dollars later as “the fine-tune regressed”. The rule now asserts the default against the full capability list, and says which dimensions are missing on every run.
Whether anchoring works is being measured, not assumed. The falsifiable prediction: an anchored run should protect the 11 dimensions the generators cover and may still damage exactly the two they do not.
Before a GPU is touched
The corpus fitness checker asks whether this corpus could ever have taught what it is training for. It was written after a corpus of 13,680 rows made its base measurably worse, and the outcome was predictable from the data before a single GPU-hour was spent: every row the same shape, one source, one constant quality score.
| what it asks | why it fires |
|---|---|
| Is the corpus one source? | A single-source corpus cannot teach a second capability, whatever it says it is for. |
| Does the quality score vary? | A constant is a hardcoded default wearing a score's name. Every filter downstream of it is inert. |
| Does it preserve the base's reasoning? | Judged corpus-wide and per source: a corpus-wide share is defeated by dilution, and was, measurably. |
| Do the declared dimensions match the answers? | Rows that declare routing but answer with agent names teach a different taxonomy under the same label. |
| Is it silent on a capability the base already has? | A dimension the base scores well on has everything to lose and nothing to gain. This is where a narrow corpus does its damage. |
The gate stage runs that checker on the built corpus and reads the verdicts. A violation naming this corpus refuses the run. A checker that crashed, ran out of memory, or returned “could not judge” blocks the run too, with a different code — the stage exists because a checker that crashed was once read as a checker that passed.
Predicting damage from the corpus alone named three of the four dimensions one run went on to destroy — before a GPU was rented. Refusing there costs nothing. Refusing later costs a GPU cycle, an adapter, and an afternoon.
Measured 2026-11-11
Two bases, two corpora each: a generic corpus, then a targeted and anchored one. Every run was measured against its own base on the same items, with a 95% interval on the paired difference and a per-dimension test.
| run | corpus | items | Δ vs base | 95% interval | dimensions lost | promoted |
|---|---|---|---|---|---|---|
| Bonsai 2 r1 | generic | 344 | +0.0087 | −0.0233 … +0.0407 | doctrine | no |
| Gemma 4 r1 | generic | 343 | −0.0087 | −0.0408 … +0.0233 | six_pillars | no |
| Bonsai 2 v25 | targeted, anchored | 344 | +0.0203 | 0.0000 … +0.0436 | none | no |
| Gemma 4 v25 | targeted, anchored | 342 | +0.0146 | −0.0146 … +0.0439 | none | no |
Base scores for scale: Bonsai 2 27B at 0.7464 on 345 judged items, Gemma 4 12B at 0.7616 on 344. Bonsai 2 is PrismML's model.
The two generic runs each lost exactly one dimension. The two anchored runs lost none. That is the fix doing what it was built to do: the corpus still taught, and the capabilities it stayed silent about held their place. And still nothing was promoted, because promotion is not “did it improve”. A run is promoted only if the lower bound of its interval is above zero and no dimension was lost. The best run moved +0.0203 with a lower bound of exactly 0.0000. Zero is not above zero.
An interval that reaches zero is a result you cannot act on. Promoted anyway, it becomes a model in production whose improvement is indistinguishable from noise, and the next run is measured against a base nobody can justify. Refusing costs one more measurement. Promoting costs the ruler.
The second refusal · try it
The runtime gate is fail-closed. It returns three things — the verdict, the reason, and the two scores — and it never raises. With no evaluator registered, an evaluator that raises, or scores it cannot produce, the verdict is passed=False and the adapter stays on disk as a candidate — never activated, never hot-loaded.
Flip the four conditions. Anything short of all four returns passed=False and leaves the adapter a candidate on disk.
passed=False. The adapter stays on disk as a candidate. It is not served and it is not hot-loaded.
How this maps to the real gate. The first three conditions are the gate's own: no evaluator, an evaluator that raised, and a margin that is not strictly above the floor. The fourth is the rule the measured table applies — a run is promoted only if no dimension was lost. In that table the “beats” test is applied to the lower bound of the interval, not to the point estimate, which is why +0.0203 with a lower bound of 0.0000 stayed a candidate.
And even all four does not swap a model. A full pass is a verdict, not an activation. It unlocks the further step; the gate itself never exchanges one model for another, and a lower training loss is never accepted in place of the held-out evaluation.
Read this first