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-ham / ollm-speed / w2 / RECEIPT.md
| 1 | # GB10 window w2 (GpuWindows A23): own Omega LLM levers on the chip, plan window 2 steps 2-8 |
| 2 | |
| 3 | - Window: spark-window `20261110T121641Z-532166` (gpuwin-A23, ledger L1072), `--gb10 exclusive --quiet none`, label **shared machine** (load 1 min 20.13 at start). Timings are shared-machine numbers. |
| 4 | - Authority and procedure as in `../w1/RECEIPT.md`. |
| 5 | - 35B: stopped 12:16:31Z (10 s), started 12:17:20Z. Loads 1-4 failed with NV_ERR_NO_MEMORY at channel create, load 5 answered at 12:23:05Z: restore 345 s, stop to answer 394 s (`restore.txt` = restore.sh's own record at its 330 s cap; `restore-final.txt` = the final times and cause). **The restore took over 5 min, so per the stop rule no further window was opened.** |
| 6 | - Job: 30 s on the chip (12:16:48Z to 12:17:18Z), core 6. Pins as w1: B1 `b1/ollm-gb10` b7b4abcc28a577f9..., B1J `b1j/ollm-mut-j-gb10` a876770e3627a5bb..., checkpoint a53ced72..., merges 73a29baf.... |
| 7 | |
| 8 | | Step | Command (job `~/work/hive/ham/GpuWindows/jobs/ollm-A23.sh`) | Result | |
| 9 | |---|---|---| |
| 10 | | 3 | B1 `gdbench ... 2` (ggdfwd vs ggfwd, every step) | rc=0, `GDQ 250 0 0 0`: 250 steps, 0 logits differing in any bit | |
| 11 | | 4 | B1J (mutant j) `gdbench ... 2` | rc=41 as required (RED): `GDQ 250 774144 25459671020 155`; 188 of 250 tokens differ | |
| 12 | | 5 | B1 `gscmp CK 4` | rc=0, `GSCMP 4 0 14846` (same as B0 in w1) | |
| 13 | | 6 | B1 `gsample CK 0 64 0` | rc=0, `TIME wall_s 1.83 user_s 1.49 sys_s 0.33`; text byte-identical to the CPU text and to B0 (sha256 0efe47f8...) | |
| 14 | | 2 | B1 `gdbench ... 1` (ggdfwd timing) | rc=0, 75 launches per token (91 in mode 0), `GDT 1 250 1042892362 536942171` | |
| 15 | | 7 | B1 `gdbench ... 4` (BF16 GEMMs vs f32 ggfwd) | **rc=42**: `GDQ 250 1023990 291605949 0`: max \|diff\| 0.291605949 nats > BFTOL 0.25 nats (declared before the run), 0 diverged steps; 1 token differs (step 126, margin 0.0079 nats < 2 BFTOL). The BF16 lever fails its declared tolerance | |
| 16 | | 7 | B1 `gdbench ... 3` (BF16 timing, measured only) | rc=0, `GDT 3 250 1048816435 540939890` | |
| 17 | | 8 | B1 `gdbench 3 ... 6` smoke, then `... 6` (batched, vs ggfwd) | smoke rc=0; mode 6 rc=0, `GDQ 250 0 0 0` (bit-identical) | |
| 18 | | 8 | B1 `gdbench ... 5` (one submission per token, timing) | rc=0, `GDT 5 250 1056754000 1085278598` | |
| 19 | |
| 20 | Derived (WolframLanguageEvaluator over the GD and GP id 20 lines; m0 from `../w1/mode0-n250.txt`): |
| 21 | |
| 22 | | Forward | launches/token | median fwd_ns (quartiles) | median up+fwd+rd ns | tokens/s (10^9/step) | median wait_ns | median build_ns | GP20 median ns | prefill CT=256 median fwd_ns | |
| 23 | |---|---|---|---|---|---|---|---|---| |
| 24 | | mode 0 ggfwd (before) | 91 | 3.5332155e6 (3.519903e6, 3.55232e6) | 3.586176e6 | 278.85 | 3.09346e6 | 358940 | 6160 | 3.52496e6 | |
| 25 | | mode 1 ggdfwd (lever) | 75 | 3.098548e6 (2.927883e6, 3.281406e6) | 3.1522685e6 | 317.23 | 2.733105e6 | 297843 | 6192 | 3.291663e6 | |
| 26 | | mode 3 ggdfwd BF16 | 75 | 2.025195e6 (1.8152e6, 2.253332e6) | 2.077947e6 | 481.24 | 1.6592765e6 | 297956 | 6288 | 2.260628e6 | |
| 27 | | mode 5 ggdfwd batched | 75 | 2.783146e6 (2.658728e6, 2.822762e6) | 2.838002e6 | 352.36 | 2.4325345e6 | 288923 | 5384 | 2.807178e6 | |
| 28 | |
| 29 | - Median fwd ratio mode 0 / mode 1 = 1.1403; mode 0 / mode 5 = 1.2695; mode 0 / mode 3 = 1.7446 (BF16, outside tolerance: not a product speed). |
| 30 | - gsample B1: 64/(1.83 - 1.042892362 - 0.536942171) = 255.83 tokens/s (load/open from the mode 1 GDT line, a different process: assumption). |
| 31 | - Status: lever ggdfwd and batched submission EXERCISED on the GB10 with bit parity and their red control; BF16 FAILS BFTOL. Shared machine; not QUALIFIED; nothing merged by this receipt. |
| 32 | |
| 33 | Note: in job.log and open.txt the home directory prefix was replaced by ~ before commit (no other change). |
| 34 | |
| 35 | ## BF16 lever (mode 4): FAIL, kept as FAIL (2026-11-10, per Main: tolerance unchanged) |
| 36 | Measured: max |BF16 ggdfwd - f32 ggfwd| over 250 steps x 4096 logits = 0.291605949 nats (step maxima: median 66516399 e-9 nats; 2 of 250 steps above 0.25 nats: 0.264951705 and 0.291605949). BFTOL 0.25 nats was declared before the run. No step diverged (the one token difference, step 126, had a margin of 0.0079 nats < 2 BFTOL). |
| 37 | For mode 4 to pass, one of these would have to change. None was tried here; each needs its own declared-before-run tolerance and a new chip receipt: |
| 38 | 1. The arithmetic: the BF16 path already accumulates in f32 with an f32 epilogue (docs/omegallm/CONTRACT-BF16.md lines 17-19); the error comes from rounding the operands to bf16. Keeping the logits GEMM (lm_head, D=384 x V=4096) on the f32 kernels, or rounding only the weights while activations stay f32, would remove part of it. Which GEMM contributes most was NOT measured (INFERENCE: 248 of 250 steps are under 0.25 nats, so the excess is in a few steps, not a systematic drift). |
| 39 | 2. The comparison: judge BF16 by a decode-level gate (greedy text identical to the CPU text, no diverged step when the margin exceeds 2 BFTOL) instead of a logit-level max. That is a different gate and needs a decision before any run, not after this one. |
| 40 | 3. The tolerance: a larger BFTOL. Not proposed: raising a tolerance after seeing the result is not allowed. |
| 41 | Until then the BF16 timing (mode 3, 2.025195e6 ns median forward) is not a product speed. |