aien-train
AIEN training programme: language-model history, GB10 constraints and the route to training on the project engine. Plans and runnable checks are distinguished.
Brought by drakestapleton
aien-train / evidence / ADTRAIN-GOLDEN-20261107 / README.md
| 1 | # evidence/ADTRAIN-GOLDEN-20261107: golden receipts in the adtrain suite, own gradient-check step |
| 2 | |
| 3 | Kanban card t_e4d6c8e9 (Hermes worker, claude-opus-5-5, anthropic), 2026-11-07, DGX Spark |
| 4 | host (`host.txt`), cores 10-11 at nice 10 through `~/handoffs/hive/queen/pool-10-11.lock`. |
| 5 | No GPU. Follow-up of the DRA-14 replay (`evidence/ADTRAIN-REPLAY-20261107/`, card t_3dad9df7), |
| 6 | stacked on its branch head `7732a5f3a735d48c8e5bc62d7daa99351bb241e2`. |
| 7 | |
| 8 | Inputs (`inputs.sha256`): adtrain compiler `seed/out/omc` from omega-mv `bf54b19f`, sha256 |
| 9 | `62775d2a…712b` (the pin in `docs/adtrain/dependencies.json`); OMEGA = omega-mv |
| 10 | `19b8340d` (the #930 merge the replay pinned) and `6efc4572` (omega-mv main on Radicle at |
| 11 | the time of the run). Code under test: commit `50f40581131aa71af119fec9e999b788f817eb36`, |
| 12 | run from a clean worktree (`*/info.txt`: `dirty=0`). |
| 13 | |
| 14 | ## What changed |
| 15 | |
| 16 | 1. `docs/adtrain/golden.json` records the sha256 of PR #42's receipts `evidence/ADTRAIN/run/T.stdout`, |
| 17 | `frozen/adtrain.ck.good` (the step-120 checkpoint of mode S) and `run/G.stdout`. |
| 18 | `tests/adtrain/run-adtrain.sh` checks them after the T, G and S runs and fails as |
| 19 | `golden-T-stdout`, `golden-G-stdout` or `golden-ck120`, also when the entry is missing or |
| 20 | duplicated. |
| 21 | 2. `tests/adtrain/main.om`: `dgc` takes its step from `dgeps` (1/64, its own constant) instead of |
| 22 | `mllr`. 1/64 = 2^-6 is exact in binary32 (bits 0x3C800000) and 1/(2·(1/64)) = 32, the factor |
| 23 | already in `dgc` (Wolfram `WolframLanguageEvaluator`: `{1/64 == 2^-6, 1/(2*(1/64))}` → |
| 24 | `{True, 32}`; `BitShiftLeft[127-6,23] == 16^^3C800000` → `True`). |
| 25 | 3. `tests/adtrain/replay/run-replay.sh`: G of the reference build against the receipt, |
| 26 | `GOLDEN-PIN` (golden.json against the evidence files), `golden_G` per trainer mutant, and |
| 27 | section 6 `GOLDCTL`, the negative controls in `tests/adtrain/replay/mutants-golden.txt`. |
| 28 | |
| 29 | ## Results |
| 30 | |
| 31 | | run | result | |
| 32 | |---|---| |
| 33 | | `run-adtrain.sh`, OMEGA 19b8340d (`clean-suite-pin/`) | `ADTRAIN_SUITE_PASS`; `golden.txt` want = have for all three | |
| 34 | | `run-adtrain.sh`, OMEGA 6efc4572 (`clean-suite-main/`) | `ADTRAIN_SUITE_PASS` | |
| 35 | | `run-replay.sh`, OMEGA 19b8340d (`clean-replay-pin/`) | `REPLAY_PASS fail=0 invalid=0 gap=2` | |
| 36 | | `run-replay.sh`, OMEGA 6efc4572 (`clean-replay-main/`) | `REPLAY_PASS fail=0 invalid=0 gap=2`, verdict lines identical to the pin run | |
| 37 | | control: base `7732a5f3` replay, OMEGA 943d9555 (`base-replay/`) | `REPLAY_PASS fail=0 invalid=0 gap=5`, as reported by t_3dad9df7 | |
| 38 | | control: base `7732a5f3` suite, OMEGA 943d9555 (`base-suite/`) | `ADTRAIN_SUITE_PASS` | |
| 39 | |
| 40 | G output unchanged: `run/{T,G,D,R,S}.stdout` of the branch (`clean-suite-pin/run-stdout.sha256`) |
| 41 | are byte-identical to the base (`base-suite/run-stdout.sha256`); `G.stdout` sha256 |
| 42 | `dcfead80…feba` equals PR #42's receipt. The C M21 host arm reads `exact=75/75 max_ulp=0 |
| 43 | verdict=PASS` with the mutant-sign control failing, identical to the base. The CK, CKMUT, |
| 44 | TAPEMUT and PADPROBE lines of the replay are identical to the base replay. |
| 45 | |
| 46 | Trainer mutants (`clean-replay-pin/replay.txt`, last line of each suite in `suite-*.last`): |
| 47 | |
| 48 | | mutant | before (base) | now | |
| 49 | |---|---|---| |
| 50 | | m-lr32 | KILLED by `gradcheck` (only through ε = lr) | KILLED by `golden-T-stdout`; its G output equals the receipt (`golden_G=SAME`), so the gradient check no longer depends on lr | |
| 51 | | m-db2-index | KILLED by `gradcheck` | KILLED by `golden-T-stdout` (T runs first; G also differs, rc 1) | |
| 52 | | m-skip-last-param | SURVIVED (GAP) | KILLED by `golden-T-stdout` | |
| 53 | | m-hash-T15 | SURVIVED (GAP) | KILLED by `golden-ck120` (T and G equal the receipts) | |
| 54 | | m-lr-update-only | SURVIVED (GAP) | KILLED by `golden-T-stdout` | |
| 55 | | m-no-fsync | SURVIVED (GAP) | SURVIVED (GAP): T, checkpoint and G equal the receipts; not observable on the host | |
| 56 | |
| 57 | The other remaining GAP is `t-e1-pad-pos0` (omega-mv `tape-test.om`, PADPROBE: sum of four |
| 58 | −0 is +0 in the mutant, −0 in the pinned tape), which belongs to omega-mv. |
| 59 | |
| 60 | Negative controls (`GOLDCTL`, all PASS in both clean replays; `gsuite-*.last`): |
| 61 | |
| 62 | | control | edit | suite ends | |
| 63 | |---|---|---| |
| 64 | | g-T-hex / g-ck-hex / g-G-hex | last hex digit of one golden sha256 | `ADTRAIN_SUITE_FAIL golden-T-stdout` / `golden-ck120` / `golden-G-stdout` (observed sha printed) | |
| 65 | | g-ck-missing | ck entry renamed | `ADTRAIN_SUITE_FAIL golden-ck120 (no single golden.json entry)` | |
| 66 | | g-T-dup | G entry renamed to the T gate | `ADTRAIN_SUITE_FAIL golden-T-stdout (no single golden.json entry)` | |
| 67 | | e-h128-scale64 | step 1/128 and factor 64 (a consistent central difference) | gradcheck passes (58 rows), `ADTRAIN_SUITE_FAIL golden-G-stdout` | |
| 68 | | e-h32 | step 1/32, factor unchanged | `ADTRAIN_SUITE_FAIL gradcheck` | |
| 69 | | e-eps-mllr | `eps = mllr` restored | `ADTRAIN_SUITE_PASS` (same value, same G bytes) | |
| 70 | |
| 71 | Controls of the replay itself (`ctl-goldctl/`, `ctl-goldpin/`, each a worktree of `50f40581` |
| 72 | with one edit): a wrong GOLDCTL expectation (e-eps-mllr expected to fail) gives |
| 73 | `GOLDCTL e-eps-mllr … FAIL` and `REPLAY_FAIL fail=1 invalid=0 gap=2`, exit 1; one hex digit |
| 74 | of the ck sha256 changed in `golden.json` gives a `GOLDEN-PIN golden-ck120 … FAIL`, an |
| 75 | INVALID g-ck-hex setup and `REPLAY_FAIL fail=2 invalid=1 gap=1`, exit 1. |
| 76 | |
| 77 | Zero-legacy closure (aien-architecture-mv `4c195641` `tools/zero-legacy/closure.om`, |
| 78 | omc `734f0a39`, release mode; `zero-legacy/`): base and branch both rc 1 (pre-existing), |
| 79 | `OUTSTANDING 103`, `UNKNOWN 876` on both. The only new rows are `DATA docs/adtrain/golden.json` |
| 80 | and `DOC tests/adtrain/replay/mutants-golden.txt`. This directory is declared `data` in |
| 81 | `.zero-legacy`. |
| 82 | |
| 83 | ## NOT_RUN |
| 84 | |
| 85 | GB10 arm, any GPU execution, x86, crash durability of the checkpoint (m-no-fsync), the |
| 86 | omega-mv `tape-test.om` padding fix (t-e1-pad-pos0, separate follow-up), performance. |
| 87 | The golden values bind this compiler pin and these dependencies: a deliberate change of |
| 88 | either needs new receipts and a new `golden.json`. |