Skip to content

Commit dee1fb8

Browse files
docs(german-tutor): close PLAN-026 - lite v22 measured STOP (floors 1, 8), both rows stopped; runbook row, judge-panel row 19, ADR-005 mark, MEM-047
Lite v22 (SmolLM3-3B full FT, resumed from checkpoint-200): browser q8 gate release false on one loop (a0f759ad4a84, same letter as v21; bf16 preview clean), all_checks 0.893, contractions 4/4, gender-plural 9 vs v17's 11; panel round 19: 41 recomputed 3.50, exam 3.47, set C 2.98 (accuracy 2.08), rule flags 41. STOP on floors 1 and 8, indicators 2 of 3; v17 stays the browser row, export archived, weights parked. PLAN-026 Done (both rows stopped); runbook azure-gpu-training 2026-09-15 row (8.65 h, ~32 USD, disk failure + resume); judge-panel history row 19; ADR-005 delivery mark; MEM-047 (a lone loop that survives three data rounds is a decoding matter - v20/v21 looped in bf16 too, v22 only in q8; a data lever can help the 8B and cost the 3B on set C - read set C per student; panel and browser gate run in parallel). Board result 20260915T102230Z, question 20260915T102256Z. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 2948ce3 commit dee1fb8

5 files changed

Lines changed: 153 additions & 5 deletions

‎docs/decisions/ADR-005-full-german-tutor-is-a-gpu-trained-1.5b-student.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,27 @@ next round (PLAN-025 Rollback Plan). The exam-facts card reached the learner in
214214
WU-019). Lessons: [MEM-044](../memory/MEM-044-a-new-recipe-s-step-time-is-read-in-its-first-five-steps-autocast-wraps-model-forward-only-seeded-builders-share-one-rng-stream.md),
215215
[MEM-045](../memory/MEM-045-a-lever-that-lengthens-answers-needs-its-budget-read-reference-cells-come-from-files-preflight-the-machine-that-runs-a-gate.md).
216216

217+
Delivery mark 2026-09-15 10:40Z: [PLAN-026](../plans/PLAN-026-paradigm-round-v22-two-rows.md) (the paradigm
218+
round, v22 on two rows) is Done. v22 - v21's rows plus a 699-row paradigm family and a 250-row exam-rule family
219+
written off the reference blocks and the fact tables (each answer opens with its declension or conjugation table
220+
or the exam rule it applies, judged by a second vendor, 5 % flags before the freeze), the contraction seed capped
221+
to its budget and the served grounding pack refreshed from source - was trained as **pro-v22** (Qwen3-8B LoRA)
222+
and as **v22** (SmolLM3-3B full fine-tune with fp32 master weights, resumed from its step-200 checkpoint after a
223+
full VM disk). The pro kept the line's best contraction, exam and lexical numbers (contractions 4 of 4, exam
224+
flags 35 -> 20, lexical 36 -> 14, set C 3.63) and stopped on its frozen rule: seven answers flagged severe by
225+
all five judges against a ceiling of three, two role-play cards missed, two corrections that validated a wrong
226+
sentence, the 41 at 3.71 (-0.14 on pro-v21, above the 3.66 line). The lite read the line's best gate
227+
(all_checks 0.893, contractions 4 of 4, exam sub-mean 3.36 -> 3.47) and stopped on one looping letter-formal
228+
answer in the q8 browser export (`release: false`, one loop in each of v20-v22 and the same letter as v21, the bf16 weights do not
229+
loop) and gender-plural 11 -> 9 against v17, while its set C fell 3.24 -> 2.98 on the data the pro gained on.
230+
**`v16` stays the Hub tag, v17 stays the browser row**; both exports archived or parked; the two families, the
231+
capped seed and the refreshed pack stay as inputs (PLAN-026 Rollback Plan). Named next levers, in order: a
232+
decoding guard in the export's generation config against the q8 loop, a gender-plural fact table for the missed
233+
nouns, a per-student data cap or a constant C1 share so the 3B keeps its set C, a correction near-miss family
234+
for the already-correct branch, and a rule-statement discipline for the pro. Lessons:
235+
[MEM-046](../memory/MEM-046-the-served-grounding-pack-is-a-build-artefact-that-goes-stale-diff-it-against-its-source-before-every-freeze.md),
236+
[MEM-047](../memory/MEM-047-a-loop-only-the-quantised-export-shows-is-a-decoding-matter-not-a-data-matter-a-data-lever-can-help-the-8b-and-cost-the-3b-read-set-c-per-student.md).
237+
217238
## Consequences
218239

219240
### Positive
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
id: MEM-047
3+
title: A loop only the quantised export shows is a decoding matter, not a data matter; a data lever can help the 8B and cost the 3B - read set C per student; run the panel and the browser gate in parallel
4+
date: 2026-09-15
5+
tags: [memory, german-tutor, gate, export, dataset, judge, ops]
6+
---
7+
8+
# Memory: A loop only the quantised export shows is a decoding matter, not a data matter; a data lever can help the 8B and cost the 3B - read set C per student
9+
10+
## Lesson
11+
12+
1. **A single loop that survives three data rounds at the same rate is a decoding matter, not a data matter.**
13+
v20 (the scenario-brief round), v21 (the scenario round) and v22 (the paradigm round) each left exactly one
14+
looping answer of 178 in the q8 browser gate (`no_loop` 0.9944, `release: false`): v20 on a dialogue
15+
(`b3ab72944857`), v21 and v22 on the same letter-formal id `a0f759ad4a84` ("Ich habe auch eine Tablette
16+
genommen." five times, then the letter recovers). The data did move the underlying weights - v20 and v21
17+
looped in the PyTorch bf16 preview too, v22's bf16 preview passed `no_loop` 1.0 (`release: true`) - but the
18+
q8 rounding tipped the same near-tie back into the loop. Two readings follow. (a) The floor is right to read
19+
the shipping artefact (the q8), and a bf16 `release: true` is a preview, not the row's release. (b) The next
20+
lever for a lone loop is a decoding guard in the export's generation config (repetition penalty or
21+
`no_repeat_ngram_size`, applied in the browser runtime the gate measures), whose evidence is a re-gate of
22+
the archived export - no VM hour; a data round should not carry "the loop goes away" as its hypothesis
23+
when the loop count has not moved in three rounds.
24+
2. **The same data lever can help the larger student and cost the smaller one - read set C for each student
25+
before calling the family good.** PLAN-026's paradigm and exam-rule families (949 rows, 7.8 % of the mix)
26+
moved pro-v22 (Qwen3-8B LoRA) up on set C (3.50 -> 3.63, accuracy 2.76 -> 3.04) and moved the 3B full
27+
fine-tune down on the same set (3.24 -> 2.98, accuracy 2.67 -> 2.08, all-five 6 -> 7) with the 41 flat
28+
(3.57 -> 3.50): the pro-minus-lite gap on C1 went from 0.26 to 0.65. A short family of table-first answers
29+
competes for the smaller model's capacity with the C1 long-form set; the 8B has room for both. Levers to
30+
test, one at a time: a per-student data cap (fewer paradigm rows for the lite), or the C1 share of the mix
31+
held constant when a family is added. Until one is measured, a two-row plan that adds a family writes its
32+
lite floors expecting set C to move *against* the family and reads the pro and the lite as two experiments.
33+
3. **The judge panel and the browser gate of a lite row are independent - run them in parallel.** The panel reads
34+
the VM's bf16 hold-out answers (written during the pipeline), the floors read the Mac's q8 browser gate; on
35+
v22 the ten judge agents ran 09:27Z-09:41Z while the gate ran 09:24Z-10:14Z, and the clause table was read at
36+
10:20Z instead of about 10:50Z. The gate slows to 3-22 s an answer while agents share the CPU and stays
37+
correct (deterministic decoding; the same `no_loop` answer id and rates as a solo run would give). Do not
38+
parallelise the *set C* brief with the *41* brief on one agent - one prompt each, as before.
39+
4. **`(save_total_limit + 1)` is the checkpoint peak for any Trainer run, not only the fp32 lite** - see MEM-046
40+
point 5 for the numbers and the resume path. The resume from `checkpoint-200` reproduced attempt 1's
41+
eval_loss at step 300 to three decimals (0.9395 / 0.939), so a Trainer resume is a faithful continuation and
42+
a round need not restart from step 0 after a disk failure.
43+
44+
## When To Apply
45+
46+
- Writing the frozen rules or the Result of any lite round whose q8 gate shows `release: false` on a single loop
47+
while the bf16 preview is clean: name the decoding guard as the follow-up and do not spend a data round on it.
48+
- Adding a data family to a two-row plan: set the lite's C1 expectation with point 2 in mind, and read set C for
49+
the pro and the lite separately before the family is called a win.
50+
- Scheduling a lite measurement: launch the panel off the VM's hold-out answers as soon as `PIPELINE_DONE` lands
51+
and the browser gate at the same time.
52+
- Recovering a training run that died mid-checkpoint: resume, do not restart (point 4, MEM-046 point 5).
53+
54+
## Notes
55+
56+
- Evidence: `runs/german-full-rules/gate/light-german-tutor-v2{0,1,2}/report.json` (`gates.no_loop.actual`
57+
0.9944 on all three; v20's loop `b3ab72944857` dialogue, v21 and v22 `a0f759ad4a84` letter-formal),
58+
`gate/light-german-tutor-v2{0,1,2}-pytorch-preview/report.json` (`no_loop` 0.9944, 0.9944, 1.0 - the same
59+
ids as the q8 on v20 and v21), PLAN-026 Result (both rows),
60+
`eval/panel-round19-light-german-tutor-v22{,-setc}/verdicts.json`, `panel-round18-light-german-tutor-pro-v22{,-setc}`.
61+
- Related: MEM-045 (a lever that lengthens answers needs its budget read), MEM-043 (a lever lands on its own gate
62+
category), MEM-046 (checkpoint peak, resume).

‎docs/plans/PLAN-026-paradigm-round-v22-two-rows.md‎

Lines changed: 68 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
id: PLAN-026
33
title: The paradigm round - v22 on two rows (Qwen3-8B LoRA pro-v22 as the Hugging Face candidate; SmolLM3-3B full fine-tune v22 as the browser candidate) on v21's rows plus two engine-composed families that recite the reference blocks - grammar paradigms and exam-rule applications - and a contraction rule line inside its word budget, decided on the PyTorch and browser gates and panel rounds 18 and 19 under the owner's 300 EUR cap
4-
status: In progress
4+
status: Done
55
tier: 2
66
date: 2026-09-14
7-
delivered:
7+
delivered: 2026-09-15 - both rows trained and measured under the frozen rules; both stopped (pro-v22 clauses 3, 5, 8; v22 floors 1 and 8); v16 stays the Hub tag, v17 the browser row; the paradigm and exam-rule families, the capped contraction seed, the refreshed served pack and the v22 weights (parked) are delivered; the decoding guard is the named next lite lever (board question 20260915T102256Z)
88
blocked_on:
99
tags: [plan, german-tutor, dataset, paradigms, exam-facts, contractions, pro, hub, azure, gpu, panel]
1010
---
@@ -252,11 +252,12 @@ archived, the next lever named.
252252
- [x] **Measure the pro** - PyTorch gate report and hold-out answers from the VM; panel round 18 (five judges,
253253
`--required 5`, `--previous panel-round16-light-german-tutor-pro-v21`); flag kinds coded blind; the clause table
254254
read once; Hub push or the prepared command. _Read 06:45Z: STOP (clauses 3, 5, 8) - no push, see Result._
255-
- [ ] **Measure the lite** - export rsynced (disk checked first); `uptime` preflight (MEM-045); browser q8 gate
255+
- [x] **Measure the lite** - export rsynced (disk checked first); `uptime` preflight (MEM-045); browser q8 gate
256256
under `caffeinate -i`; panel round 19 (`--previous panel-round17-light-german-tutor-v21`); flag kinds; the clause
257-
table read once; browser row moved or v17 kept.
258-
- [ ] **Close** - Result, Log, runbook rows (spend, panel rounds 18-19), MEM if a lesson, board `result` and the
257+
table read once; browser row moved or v17 kept. _Read 10:20Z: STOP (floors 1, 8; indicators 2 of 3) - v17 stays._
258+
- [x] **Close** - Result, Log, runbook rows (spend, panel rounds 18-19), MEM if a lesson, board `result` and the
259259
`question` on floor 1, ADR-005 delivery mark, commit and push, reflect; temp files and VM leftovers cleaned.
260+
_Closed 10:25Z: both rows STOP; MEM-047; board result `20260915T102230Z` and question `20260915T102256Z`._
260261

261262
## Rollback Plan
262263

@@ -324,9 +325,71 @@ _(written once per row when its table is read)_
324325
paradigm-check coverage for Nebensatz word order, mixed declension and Zustands-/Vorgangspassiv; (c)
325326
translation length (paradigm answers up to 233 words pulled translations to 163-201 words, 4/8 budget);
326327
(d) roleplay card details (a question in every line, number recall).
328+
- **Lite row - `light-german-tutor-v22` (panel round 19, browser q8 gate): STOP, v17 stays the browser row.**
329+
Table read once at 2026-09-15 10:20Z: floors 2 (recomputed **3.50** >= 3.46; v21 3.57, v17 3.56), 3 (majority
330+
**14** <= 15; v21 16), 4 (v14 cards **6/8**), 5 (c1 **13/16**, on the line), 6 (letter budget 3/3) and 7
331+
(identity 0, false validations 0) hold; floor **1 fails** (`release: false` - one looping answer, the same
332+
letter-formal id `a0f759ad4a84` that looped in v21, this time "Ich habe auch eine Tablette genommen." five
333+
times before the letter recovers and ends at 311 tokens; the PyTorch bf16 preview of the same weights does
334+
not loop and reads `release: true`, all_checks 0.921, so the q8 quantisation tips it); floor **8 fails**
335+
(gender-plural **9/12** against v17's 11 - the same three nouns as v21: *Frost* "Plural: die Frost",
336+
*Schwindel* and *Idealismus* given plurals; v21 also fell on contractions 3 -> 0, which v22 restored to 4/4).
337+
Indicators **2 of 3**: L2 contractions **4/4** with facts 4/4 and budget 4/4 (lever 2 + the refreshed pack;
338+
v17 3, v21 0) holds; L3 exam sub-mean **3.47** >= 3.46 (v21 3.36) holds by 0.01; L1 rule-kind flags **41**
339+
(v21 39; <= 30) does not. Gate otherwise the lite line's best: all_checks 0.893 (v21 0.853), 19 failing (26),
340+
correction 9/12 (v21 8), false-friends 6/6, c1-connectors 5/6, adjective-declension 6/6, scenario-brief 8/8;
341+
down: c1-transform 9 -> 8, roleplay 8/10 as v21 (v14 cards 6/8: the waiter invents a figure - "das kostet 3,40 Euro" -
342+
and the mechanic names a flat tyre instead of the card's brakes and asks no question). Panel: **-0.07 on v21** (inside the band), accuracy 3.22 (v21 3.21), german 3.71 (3.87), format
343+
3.72 (3.79); exam set 3.36 -> **3.47**, tutor 3.69 -> 3.52; per answer 8 better / 22 flat / 11 worse (B6 +2.00
344+
the DTZ rule right at last, A26 +1.35, A14 +1.35, B5 +1.20, B10 +1.20, A11 +1.15; B4 -1.95, A17 -1.45, A12
345+
-1.20, A16 -1.20, A4 -1.15); all-five 6 (v21 7: A2, B3, B15 stay; A21, A4, B1 enter; A22, A26, B6, B7 leave).
346+
Flags by kind: rule 41 (39), sentence 32 (16), lexical 22 (27), **exam 20** (35 - lever 3 moved the exam
347+
kind and the exam sub-mean, both as aimed). **Set C 2.98** (v21 3.24; c1 3.06 / implicit 2.84; accuracy
348+
**2.08** vs 2.67; all-five 7 of 16) - the round's real cost: the 3B lost C1 quality while the 8B gained it
349+
(pro-v22 set C 3.63); the pro-minus-lite gap is 0.21 on the 41 and **0.65** on set C (v21: 0.28 / 0.26).
350+
eval_loss 0.8405 on the same pinned 461 (v21 0.8375). Export archived under `export/archive/`, weights parked
351+
(azcopy 15 of 15). Next lever for the lite, in order: (a) a decoding guard for the q8 export (repetition
352+
penalty or `no_repeat_ngram_size` in the export's generation config - the q8 export has looped once in each of
353+
v20, v21 and v22, the last two on this same letter, while no bf16 preview looped); (b) the gender-plural trio (*Frost/Fröste*, *Schwindel* and *Idealismus* without a plural)
354+
as a fact table the paradigm family asserts; (c) the C1 set's fall on the 3B - either fewer paradigm rows
355+
for the lite (a per-student data cap) or a C1 share held constant in the mix; (d) the pro's levers (a)-(d).
356+
Lesson recorded as [MEM-047](../memory/MEM-047-a-loop-only-the-quantised-export-shows-is-a-decoding-matter-not-a-data-matter-a-data-lever-can-help-the-8b-and-cost-the-3b-read-set-c-per-student.md) (a lone loop that survives three data rounds is a decoding
357+
matter; a data lever can help the 8B and cost the 3B on set C; panel and browser gate run in parallel).
327358

328359
## Log
329360

361+
- 2026-09-15 10:25Z - **Closed (Done, both rows stopped).** Runbook `azure-gpu-training.md` 2026-09-15 row (8.65 h,
362+
about 32 USD, the disk failure and resume, the Mac disk incident); `judge-panel.md` row 19; ADR-005 delivery mark;
363+
[MEM-047](../memory/MEM-047-a-loop-only-the-quantised-export-shows-is-a-decoding-matter-not-a-data-matter-a-data-lever-can-help-the-8b-and-cost-the-3b-read-set-c-per-student.md)
364+
(the q8 loop history read from the three gate reports: v20 and v21 looped in bf16 and q8 on the same id each,
365+
v22 only in q8 - so the data moved the weights and the guard is still the lever; set C per student - pro
366+
accuracy 2.76 -> 3.04, lite 2.67 -> 2.08 on the same data; panel and browser gate in parallel). Board `result`
367+
`20260915T102230Z-fable-fleet-0910` (resolution: stopped) and `question` `20260915T102256Z-fable-fleet-0910`
368+
for the owner (decoding guard as the next lite lever; lever order). Round spend: VM about 32 USD, seed judge
369+
sample about 6 USD, judges through Copilot agents - about 38 USD; programme total about 148 USD of the 300 EUR
370+
envelope. VM `gpu-german-tutor` deallocated 09:22Z (disk kept, about 1.2 USD a day). Status -> Done.
371+
372+
- 2026-09-15 10:20Z - **Lite measured: STOP (floors 1 and 8; indicators 2 of 3).** Resumed run: steps 201-1,524
373+
in 6,154 s plus the 964 s carried (about 1 h 59 in all, 3.6 s a step, 57.7 GB), train_loss 0.486 over the
374+
resumed part, **eval_loss 0.8405** on the pinned 461 (v21 0.8375). Export q8 + q4 in 369 s; verify agreement
375+
q8 0.958 (forced 1.0), **q4 0.229** (forced 0.875; v21 q4 0.917 - the q4 diverges early on the three English
376+
verify prompts, a finding for the size option, not the row); hold-outs 26 + 15 + 16; PyTorch preview
377+
`release: true`, all_checks 0.921, 14 failing (the lite line's best preview); park azcopy 15 of 15;
378+
`PIPELINE_DONE` 09:17Z, watcher rsync + sha256 of five ONNX files 09:21Z, VM deallocated 09:22Z. Mac: 11 GB
379+
free, load 4.3 before the gate; browser q8 gate 09:24Z-10:14Z (50 min, 3-22 s an answer with ten judge
380+
agents on the CPU for the first half). Panel round 19 launched off the VM's bf16 hold-out answers in parallel
381+
with the gate (briefs 92 KB / 1,659 lines and 34 KB / 591 lines; ten agents 09:27Z-09:41Z, every verdict
382+
valid JSON - grok's prompt now asks for escaped quotes; gemini self-reported 2.79 against recomputed 3.24,
383+
the round's only drift). Blind coder (claude-fable-5.1, 115 entries, seed 19): rule 41, sentence 32, lexical
384+
22, exam 20, other 0; three or more judges code rule on A2, A4, A7, A22, B15, sentence on A2, A21, B4, B9,
385+
lexical on A9, A16, A18, exam on B1, B3. Clause table (`eval/panel-round19-light-german-tutor-v22/clause_table.txt`,
386+
helper `clauses_lite.py` - its last finding line referenced a stale v20 name, fixed and the same table
387+
re-emitted) read once: **floors 1 (`release: false`, one loop) and 8 (gender-plural 11 -> 9) fail**, 2-7 hold
388+
(3.50; 14; 6/8; 13/16; 3/3; 0/0); L2 4/4 and L3 3.47 hold, L1 41 not -> STOP, v17 stays the browser row,
389+
the site is not rebuilt, `export/light-german-tutor-v22` moved to `export/archive/`. Full numbers in the
390+
Result. VM leg for the lite 06:49Z-09:22Z about 2.55 h (about 9 USD); the round's VM time 8.65 h in all,
391+
about 32 USD.
392+
330393
- 2026-09-15 06:52Z - **Lite failed at step 300 and was resumed.** `TRAIN_FAILED` 06:46Z: `torch.save(optimizer
331394
.state_dict())` inside the step-300 checkpoint raised `RuntimeError: unexpected pos 20933945216 vs 20933945116`
332395
= the disk was full. Cause: a SmolLM3-3B full fine-tune checkpoint is about **37 GB** (fp32 weights 12.3 GB

0 commit comments

Comments
 (0)