interplane.Get Omega
Read in your language

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

branch main Branches Tags History

aien-train / evidence / OMEGALLM / oracle / README.md

108 lines · 6649 bytes Raw Blame History Rendered
1# OMEGALLM oracle cross-check receipts
2
3Run date: 2026-11-01. Host: DGX Spark, GB10 Grace. All runs were pinned to core 8 with `taskset -c 8 nice -n 19`. Core 8 is a Cortex-X925: `/sys/devices/system/cpu/cpu8/regs/identification/midr_el1` = `0x410fd851`, part 0xd85. Python 3.12.3, standard library only.
4
5The binaries were built with `tests/omegallm/build.sh` using the pinned omc (omega-mv e5b32567), source sha256 `47c27b0b6f0f962f359330d5fbbaa4b9f974265feb6471359202710d5e70c889` for `ollm`. Each JSON receipt records the sha256 of the binary it ran (`binary_sha256`) and of the referee (`oracle_sha256`, `tests/omegallm/oracle.py` = `3edfb60718c1b7c786275e16d4d593cc6418f591be4f30c5a5e17e0555c0d0fa`); within each label every check ran on the same binary.
6
7| label | binary | sha256 checked |
8|---|---|---|
9| real | build/ollm (final candidate) | b729cc35faa6b3543ff1893c64e8a6feafc224feba7b99f7f13353e1d2179f22 |
10| mut-a | build/ollm-mut-a (attention dK sign) | 69825ec63bde79737483561760b2fa1caabbb019a5019210e84d14ac6f2d93d2 |
11| mut-b | build/ollm-mut-b (target shift y = data[o+2..]) | c7ddea4cea9952209e6e4516fc01e98aaf33940a80ccf9a4d7a5cb4d6881fa89 |
12| mut-c | build/ollm-mut-c (Adam bias correction removed) | 41c852501c356dcc969ca06cdb367798d36018e2bbb1d896985b453be90bfddb |
13
14An earlier run of this lane checked the pre-fix binaries (ollm a9b5f3ec; mutants f1747fcd, 4b12510f,
1573afec79). The fix changed only bounds handling, and every `results` entry of all 28 JSON receipts is
16identical between the two runs once shas, paths and timings are left out.
17
18## Commands
19
20These were run from the directory that holds the `aien-train` clone, `build/` and `data/`, after
21`sh aien-train/tests/omegallm/core-receipts.sh` had built `build/`. Every path is relative; `xcheck.sh`
22points the referee's scratch files at `$WORK/<label>/tmp`, so the receipts name no absolute paths.
23
24```sh
25rm -rf scratch-oracle aien-train/evidence/OMEGALLM/oracle/real aien-train/evidence/OMEGALLM/oracle/mut-?
26export DATA=data/TinyStoriesV2-GPT4-valid.txt WORK=scratch-oracle/work
27sh aien-train/tests/omegallm/xcheck.sh build/ollm real aien-train/evidence/OMEGALLM/oracle v0 # exit 0
28for m in a b c; do sh aien-train/tests/omegallm/xcheck.sh build/ollm-mut-$m mut-$m aien-train/evidence/OMEGALLM/oracle; done
29# mut-a exit 1, mut-b exit 1, mut-c exit 1
30```
31
32`<label>/summary.tsv` lists every check with its exit code and the exact command. `<label>/<check>.log` holds the full output, and `<label>/<check>.json` holds the receipt: argv, rc, stdout, stderr tail, seconds, binary and oracle sha256, and per-result details. The derived `.bin` files stay under `WORK` and are not committed.
33
34## Matrix (exit codes of each check)
35
36| check | real | mut-a | mut-b | mut-c |
37|---|---|---|---|---|
38| selftest (oracle only) | 0 | 0 | 0 | 0 |
39| xprep | 0 | 0 | 0 | 0 |
40| xbase | 0 | 0 | 0 | 0 |
41| xinit | 0 | 0 | 0 | 0 |
42| xgrad | 0 | **1** | **1** | 0 |
43| xstep | 0 | **1** | **1** | **1** |
44| xeval | 0 | 0 | **1** | 0 |
45| xinit / xgrad / xstep / xeval at v0 | 0 / 0 / 0 / 0 | not run | not run | not run |
46
47How each mutant was killed:
48
49- **mut-a**: xgrad `init: gradient` and `perturbed: gradient`; xstep params, m and v in `step0-init` and `step1-chain`.
50- **mut-b**:
51 - xgrad: loss and gradient in both cases;
52 - xstep: stdout, params, m and v;
53 - xeval: stdout `E 5 4 6407857 9244584` against the oracle's `E 5 4 6285327 9067810`.
54- **mut-c**: xstep params in all four cases (`step0-init`, `step1-chain`, `step2-unclipped`, `step150-synthetic-clip`). xgrad passes, as expected, because the gradient is unchanged.
55
56## Real binary: observed maximum error per tensor
57
58The error is |got − ref| / max(|ref|, 1e-3·max|ref in that tensor|), and every check must stay at or below 1e-9. The derivation of that limit is in `tests/omegallm/ORACLE.md`.
59
60- **xgrad, small** (V=256 T=8 D=16 H=2 F=32 L=2 B=2):
61 - loss relative error 0 in both cases, with the micro value equal;
62 - maximum gradient error 1.6e-13 at init (wk.1);
63 - maximum gradient error 4.1e-13 when perturbed (wq.0).
64- **xgrad, v0** (64/64/4/256/2, B=16, P=119104):
65 - loss relative error 0 at init and 2.1e-16 when perturbed;
66 - gradient at init: wq 2.9e-13, wk 2.2e-13, wpe 1.4e-13, w1 1.2e-13, all others ≤ 7.1e-14;
67 - gradient when perturbed: wpe 3.3e-12, wk 2.5e-12, wq 1.8e-12, wo 1.0e-12, w1 9.8e-13, w2 7.4e-13, wte 6.9e-13, g1 6.8e-13, wv 5.9e-13, g2 7.9e-14, gf 9.1e-15.
68- **xstep, small**, maximum over the four cases:
69 - params 1.2e-13 (w2, in step2-unclipped);
70 - m 5.7e-13;
71 - v 1.7e-14.
72- **xstep, v0**, maximum over the four cases:
73 - params 2.5e-13;
74 - m 1.5e-11 (wq, in step150-synthetic-clip);
75 - v 2.4e-13.
76 - The `step` field and the `T` stdout line match exactly.
77- Clip coverage is asserted in the receipts:
78 - step2-unclipped ran unclipped, at both sizes;
79 - the other three cases were clipped.
80- **xinit**: params bit-for-bit and the whole-file sha256 identical, at both small and v0.
81- **xprep**: stdout `P 27630 24867 2763 19883834 2220914`. TRAIN sha256 is `101b41c6…2fd62fef` and HELD sha256 is `729e0a4a…338ed`, identical to the oracle's own prep.
82- **xbase**: `B 4415645 3295113` on both sides.
83- **xeval**: stdout identical at both sizes.
84
85The largest observed error is 1.5e-11, below the 1e-9 limit.
86
87## Timings (core 8)
88
89| measurement | real binary | oracle |
90|---|---|---|
91| v0 grad, B=16, one call | 0.731–0.734 s | 7.73–7.88 s |
92| small train step | 0.007–0.008 s | not measured |
93| whole real-binary xcheck run, v0 included | 63 s wall (15:59:02Z–16:00:05Z), binary and oracle together | |
94
95## Oracle self-test and negative controls
96
97The receipts are in `selftest/`, run against oracle sha256 `3edfb607…`; the mutated copies were made in scratch, and each file holds its one-line diff:
98
99- `selftest.txt` shows `SELFTEST PASS (0 failures)`, rc 0.
100- `negctl-nc_attn.txt` uses an oracle with the dK accumulation sign flipped (the diff is in the file). It shows `SELFTEST FAIL (34 failures)`, rc 1.
101- `negctl-nc_ce.txt` uses an oracle with the cross-entropy one-hot sign flipped. It shows `SELFTEST FAIL (55 failures)`, rc 1.
102
103## NOT_RUN
104
105- `sample` is not cross-checked. The contract defines it, but the oracle has no check for it.
106- The mutants were run only at the small configuration, not at v0.
107- `train` was cross-checked only for one step per case. No multi-step run or long training run was compared.
108- The oracle does not test the binary's refusals. Those are core receipts: checkpoint exits 10–15 and data-range exits 22/23 in `evidence/OMEGALLM/core/refuse-*.txt`, and the pre-fix/fixed A/B in `evidence/OMEGALLM/v0/bounds-ab.txt`.