Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-train/blob/main/evidence/OMEGALLM/gpu-r7/README.md # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aien-train / evidence / OMEGALLM / gpu-r7 / README.md` 138 lines · 10150 bytes Raw Blame History Rendered 1 # Rung 7: the v2 shape (D 384, F 1536) beats rung 6 on the same data, seed and schedule (aien-train#52) 2 3 Rung 6 (`../gpu-r6/`) trained the largest v1 shape (D 256, F 1024, H 8, P 7,409,920) for 30000 steps 4 and ended at a chip `geval` of 1.338156 nats (0.499194 bpb) on `held.tok`. Rung 7 widens the model 5 under a new contract (`docs/omegallm/CONTRACT-V2.md`: D ≤ 384, F ≤ 1536, nothing else changes) and 6 trains V 4096, T 256, D 384, H 12, F 1536, L 8, B 64 (P 15,833,472, 2.137× rung 6, Wolfram) with the 7 same seed, data, learning-rate schedule, batch and step count. The held-out measure is the same: chip 8 `geval` of `held.tok`, W 2243 windows at T 256, `merges4096.bin`. 9 10 Status: EXERCISED on one GB10 and on host CPU. Not QUALIFIED. All 12 training windows were 11 opened `--gb10 shared --quiet none`; `spark-window` printed "quiet machine" for each, but the quiet 12 lock was not taken, so timings are labelled non-quiet (last close, `run/close.json`: load average 2.96). 13 14 ## Result 15 16 | step | rung 7 (v2) nats | rung 6 (v1) nats | Δ µnats | Δ % | 17 |---|---|---|---|---| 18 | 250 | 2.773849 | 2.840107 | −66,258 | −2.33 | 19 | 2000 | 1.756935 | 1.797226 | −40,291 | −2.24 | 20 | 9000 | 1.432166 | 1.502144 | −69,978 | −4.66 | 21 | 30000 | **1.254741** (0.468077 bpb) | 1.338156 (0.499194 bpb) | **−83,415** | **−6.23** | 22 23 (Δ by WolframLanguageEvaluator: `{`2773849`,`1756935`,`1432166`,`1254741`}-{`2840107`,`1797226`,`1502144`,`1338156`}`.) 24 25 Full rung-7 curve (`run/geval.txt`): 250 `2773849`, 2000 `1756935`, 5000 `1538276`, 8000 `1451128`, 26 9000 `1432166`, 12000 `1385827`, 15000 `1354082`, 18000 `1327337`, 21000 `1305437`, 24000 `1285618`, 27 27000 `1268895`, 30000 `1254741`. At step 18000 (60% of the tokens) rung 7 is already 10,819 µnats below 28 rung 6's step-30000 value. The last leg (27000→30000) still gained 14,154 µnats, so the curve has 29 not flattened. 30 31 ## Pre-registered predictions (`run/prereg.txt`, written before the first training window) 32 33 | prediction | receipt | result | 34 |---|---|---| 35 | P1 final E < `1338156` | `run/geval.txt` step 30000: E 30000 2243 `1254741` 468077 | PASS (−6.23%) | 36 | P2 stop rule: step-2000 E < `1797226` | E 2000 2243 `1756935` 655418 | PASS | 37 | P3 below rung 6 at 250, 2000, 9000, 30000 | table above | PASS (4/4) | 38 | P4 chip geval curve strictly decreasing | 12 points, each below the last | PASS | 39 | P5 CPU `eval` of ck30000 within 10 µnats of the chip | `run/eval30000.txt`: E 30000 2243 `1254741` 468077, rc 0 (bin `6da13670`…, ck `378d5a2d`…, core 9, nice 19, 15,370.9 s non-quiet) | PASS (Δ 0, identical line) | 40 | P6 summed `gtrainf` wall 250→30000 < 11,219 s | 7,110.6 s (modeled 7,930.6 s) | PASS | 41 42 Timing (wall clock between the ns stamps around each `gtrainf` in `run/train.txt`, includes 43 checkpoint load and save; WolframLanguageEvaluator): 250→30000 took 7,110.6 s, 0.23901 s/step, 44 68,549 tokens/s, about 6.51 TFLOP/s by the 6·P·tokens rule (attention excluded). Legs ranged 45 0.23547-0.24809 s/step. The whole run including the 0→250 leg is 1.99 h of training (2.01 h with 46 the 12 `geval` runs; WolframLanguageEvaluator over the ns pairs of `run/train.txt` and 47 `run/geval.txt`: 1.992376 h and 0.021772 h, sum 2.014147 h). Each `geval` 48 took 5.44-5.56 s (GE). Rung 6 ran on the pre-k1 binary `576bf296` (0.3771 s/step); the speed gain is 49 the k1-k9 kernel rounds (`../gpu-k1/`…`../gpu-k9/`), not the shape. On the same k9 kernels the v2 step 50 costs about 1.7× the v1 step (gate G7 below). 51 52 What this does not show: it compares equal steps and tokens (491,520,000 tokens, 31.0 tokens per 53 parameter for v2 vs 66.3 for v1). A v1 run given the same chip time on today's kernels (about 45,800 54 steps at the gate G7 rate of 0.1554 s/step, Wolfram `7110.62/0.1554 -> 45756.9`) was not run, so 55 "v2 beats v1 at equal chip time on k9 kernels" is NOT_RUN. Rung 6 with its actual 11,219 s did lose 56 to rung 7's 7,110.6 s. 57 58 Determinism check: the step-250 checkpoint of the training run (sha256 `1ab162bf`…, `run/geval.txt`) 59 equals the step-250 checkpoint made in gate window gg-r7g (`gate1/`), in a different window 30 minutes 60 earlier. 61 62 ## Setup 63 64 - Source: this commit's `native/omegallm/` (v2 storage split in `model.om`, `adam.om`, `ckpt.om`; 65 GPU RMS register banks and caps in `gpu/gr.om`; `ggfs` capacity in `gpu/gg.om`). omc `2c824805`… 66 (omega-mv `e5b32567`). Builds in `build.txt`: GB10 `ollm-gb10` `1853303e`…, mutant r `360f3bd9`…, CPU 67 `ollm` `6da13670`…. 68 - Init: `ollm init ckL0.bin 4096 256 384 12 1536 8 64 1 30000 3000 16`, sha256 `fc8835fe`…. The same 69 command as rung 6 with D 256→384, H 8→12, F 1024→1536. 70 - `run/drive.sh` opens one `spark-window` per leg (lease 22 min) and posts STARTING/DONE board lines. 71 `run/leg.sh` trains 0→250, then 3000-step legs that stop exactly at 2000, 9000 and 30000, then runs 72 `geval` of the saved checkpoint. `run/prereg.sha256` holds the hashes taken before the first 73 window; the committed `leg.sh` differs from the hashed file only by the home prefix replaced with 74 `~/`. The first `drive.sh` call printed `cannot open windows.txt` (its resume count before the file 75 existed; it then counted 0, as intended). 76 - Checkpoints are kept outside the repository (380,003,448 bytes each); hashes in 77 `run/checkpoints.sha256`. 78 - Path names in the hashed files (note added 2026-11-04; the hashed files are unchanged): the run 79 directories were `/tmp/gk/r7/g`, `g2` and `cpu`, committed as `gate1/`, `gate2/` and `cpu/`. So 80 `../g/` in `run/prereg.sha256` and `gate2/prereg.txt` is `gate1/`, `../g2/REPORT.txt` is 81 `gate2/REPORT.txt`, and `../refeval-w1.txt` is `cpu/refeval-w1.txt`; both hashes recompute equal 82 (`sha256sum gate2/REPORT.txt cpu/refeval-w1.txt` → `521ac8da`…, `3edd61da`…). 83 - `leg.sh` (note added 2026-11-04) does not check the `geval` exit status or the `cp ck.bin ck$u.bin` 84 result. Neither mattered in this run: all 12 `geval` blocks print rc=0 and the saved checkpoint 85 hashes in `run/checkpoints.sha256` match the `step=… ck=` lines of `run/geval.txt`. A rerun should 86 fail the leg on either. 87 - `run/drive.sh`, `run/leg.sh` and `gate*/run.sh` are frozen receipts: they name private paths 88 (`/tmp/gk/r7/…`, `~/handoffs/…`) and are not meant to be run from the repository. To rerun: build 89 with `tests/omegallm/build.sh` (`TARGET=gb10` for the chip binary), then run the `gtrainf` and 90 `geval` lines of `run/leg.sh` with `B` the built binary and `D` a data directory holding 91 `train.tok` sha256 `23a8dcb6415c93b70a3a3bb2ab04f5334faa340b2d08dbb1cfb73a45bd6eb4b0` (read 92 2026-11-04 from the data directory this run used), `held.tok` `8f6ac61a`… and `merges4096.bin` 93 `73a29baf`… (full values in `../gpu-max/eval2000.txt`), inside a `spark-window`. 94 95 ## Gates before the run 96 97 CPU (host, nice 19): 98 - `tests/omegallm/core-receipts.sh` on this tree: 48/48 PASS; the name/rc/expect rows 99 (`cpu/core-summary.tsv`) equal the committed `../core/summary.tsv`. 100 - `tests/omegallm/v1-oracle.sh` with the v2 limits: `cpu/v1-oracle.txt`, pass=54 fail=0 not_run=1 101 (the v0→v1 checkpoint case needs a v0 binary). D 386 and F 1537 refuse with exit 12; D 384, F 1536 102 is accepted with its files checked against the referee (`limit-max-d384-f1536`). 103 - One v2 training step: max RSS 785,280 kB (`cpu/rss-train.txt`, CPU `train`, K 1). CPU `eval` at the 104 v2 maximum, W 1: max RSS 528,960 kB (`cpu/ock-boundary.txt`, also `cpu/refeval-w1.txt`). The 2 GB 105 bound is receipted only for these two CPU commands; RSS of `gtrainf`, `geval`, `eval` at W 2243 and 106 `train` with K > 1 worker processes is NOT_RUN. 107 - CONTRACT-V2 §4 check 4 (added 2026-11-04): `cpu/disasm-v2.txt`, `gpu-disasm.sh` at 108 `SHAPE="4096 256 384 12 1536 64"` over all emitted slots, rc 0, 33 GPR lines OK, none LOW 109 (slots 12, 17, 18 empty). 110 - `OCKCAP` boundary (added 2026-11-04): `cpu/ock-boundary.txt`. The v2-maximum init checkpoint is 111 380,003,448 B (`120+24*`15833472``, Wolfram) and `eval` W 1 loads it (rc 0, the `refeval-w1.txt` 112 E line); the same file plus one byte (380,003,449 = `OCKCAP`) and plus two bytes both exit 15. 113 - v1-shape GPU code: `gpu-code.bin` and `gpu-gpr.bin` at the rung-6 shape are byte-identical before 114 and after the v2 edits (`build.txt`). 115 - Register banks not gated on the chip (note added 2026-11-04): the RMS kernels take n = D/32 116 columns per lane. Gates G8/H1 cover n = 12 (D 384) and the v1 gates n ≤ 8; D 288, 320 and 352 117 (n = 9, 10, 11, bank layouts between) have no chip gate. 118 119 Chip, window gg-r7g (`gate1/`, prereg written first): G1 (v1 r6 final E line reproduced), G2 (t200 v1 120 checkpoint bit-identical), G8 (gacmp at v2) and G9 PASS. G3 was a mis-stated prediction (it included 121 `gpu_ns`, a timing field). G4/G5 FAILED: `gcmp2` at the v2 maximum trapped (exit 103, BOUNDS) because 122 the host scratch `ggfs` in `gpu/gg.om` held 1024 rows < F 1536. G6 FAILED: v2 init E 0 8.398671 was 123 0.080905 above ln 4096, over a 0.05 bound. G7 (report only): 250 v2 steps took 0.2666 s/step against 124 0.1554 for v1 200 steps on the same kernels, ratio 1.715 (Wolfram). The run did not start. 125 126 Fix and re-gate, window gg-r7g2 (`gate2/`, new prereg): `ggfs` 1536. H1 `gcmp2` at the v2 maximum PASS 127 (rel1 991e-9 vs tolerance `122070e`-9; chip loss = CPU loss `8408630`), H2 mutant r caught (rc 47, 4 128 fails), H3, H5 (v1 r6 final E line), H6 (v1 t200 checkpoint bit-identical) and H7 PASS. H4 FAILED: 129 the replacement for G6, written after G6 missed and disclosed in the prereg, asked the v2 init E 0 130 to sit within 50000 µnats of the v1 init (`8344166`); it is 54505 above. 131 132 H4 follow-up (`cpu/refeval-w1.txt`, host CPU): the Python referee (`oracle.py ollm eval`) and the 133 product (`cpu/ollm eval`) give the same line on window 0 of the v2 init, `E 0 1 `8416208` `3083688``. 134 With the init bytes equal to the referee's and H1's chip loss equal to the CPU loss, the init loss is 135 the contract's init (uniform, sd 0.02, independent of D) at a wider model, not a v2 defect; the 50000 136 bound had no derivation. `gate2/REPORT.txt` records the decision to start rung 7 despite H4, written 137 and hashed into `run/prereg.sha256` before the first training window. It is a departure from the 138 gate-2 run-start rule and is disclosed here; the run's own predictions P1-P6 were not changed.