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 / OMEGALLM / gpu-r8 / README.md
| 1 | # Rung 8: the v2 shape on a 60000-step schedule beats rung 7 (aien-train#52) |
| 2 | |
| 3 | Rung 7 (`../gpu-r7/`) trained the v2 maximum shape (V 4096, T 256, D 384, H 12, F 1536, L 8, B 64, |
| 4 | P 15,833,472) for 30000 steps and ended at a chip `geval` of 1.254741 nats on `held.tok`. Rung 8 |
| 5 | asks whether doubling the schedule, with nothing else changed, lowers held-out loss further. It needs |
| 6 | no code change: the same chip binary trains it. The held-out measure is the same: chip `geval` of |
| 7 | `held.tok`, W 2243 windows at T 256, `merges4096.bin`. |
| 8 | |
| 9 | Status: EXERCISED on one GB10. Not QUALIFIED. All 24 windows were opened |
| 10 | `--gb10 shared --quiet none`; `spark-window` printed "quiet machine" for 23 of them (`run/windows-log.txt`; |
| 11 | the 24th, t9, was closed by hand after its leg was killed, see Infrastructure), but the quiet lock was |
| 12 | not taken and host CPU jobs ran beside it, so timings are labelled non-quiet (last close, |
| 13 | `run/close.json`: load average 4.61). |
| 14 | |
| 15 | ## Result |
| 16 | |
| 17 | Final chip line (`run/geval.txt`): `E 60000 2243 1206290 450002`, 1.206290 nats, 0.450002 bpb. |
| 18 | |
| 19 | | run | steps | final nats | Δ vs rung 8 µnats | Δ % | |
| 20 | |---|---|---|---|---| |
| 21 | | rung 8 (v2, 60000-step schedule) | 60000 | **1.206290** | — | — | |
| 22 | | rung 7 (v2, 30000-step schedule) | 30000 | 1.254741 | −48,451 | −3.86 | |
| 23 | | rung 6 (v1 max, 30000-step schedule) | 30000 | 1.338156 | −131,866 | −9.85 | |
| 24 | |
| 25 | (WolframLanguageEvaluator: `1206290-1254741 -> -48451`, `100 (1206290-1254741)/1254741 -> -3.86143`, |
| 26 | `1206290-1338156 -> -131866`, `100 (1206290-1338156)/1338156 -> -9.85431`.) |
| 27 | |
| 28 | Full curve (`run/geval.txt`, µnats): 250 2770468, 2000 1755511, 5000 1542027, 8000 1455842, |
| 29 | 9000 1439681, 12000 1396706, 15000 1366174, 18500 1339629, 21500 1321001, 24500 1305906, |
| 30 | 27500 1294503, 30000 1285107, 33000 1273683, 36000 1263591, 39000 1254744, 42000 1246470, |
| 31 | 45000 1238858, 48000 1231977, 51000 1224376, 54000 1218204, 57000 1211673, 60000 1206290. |
| 32 | The legs after 15000 start at 15500, 18500, … because leg t9 was killed (see Infrastructure). |
| 33 | |
| 34 | Observation, not a pass condition (the schedules differ after step 100): at step 30000 rung 8 is at |
| 35 | 1285107, 30,366 µnats above rung 7's final value, because its learning rate is still 0.5508 of peak |
| 36 | there against 0.1 for rung 7. It passes rung 7's final value between steps 39000 (1254744, 3 µnats |
| 37 | above) and 42000. The last leg (57000→60000) still gained 5,383 µnats, the smallest step of the curve |
| 38 | (`Max[Differences[ev]] -> -5383`). |
| 39 | |
| 40 | ## Pre-registered predictions (`run/prereg.txt`) |
| 41 | |
| 42 | `run/prereg.txt` and `run/prereg.sha256` were written locally before the first window: the run |
| 43 | directory's `prereg.txt` has mtime 2026-11-02T20:56:25Z, 7 s before window 20261102T205632Z (t1) |
| 44 | opened. They were first committed in f41d814, with the evidence, after the run. The file mtime is the |
| 45 | only timing evidence; there is no commit or other receipt from before the run. |
| 46 | |
| 47 | | prediction | receipt | result | |
| 48 | |---|---|---| |
| 49 | | P1 final E at 60000 < 1254741 | `run/geval.txt`: E 60000 2243 1206290 450002 | PASS (−48,451 µnats) | |
| 50 | | P2 stop rule: E at 2000 < 1797226 | E 2000 2243 1755511 | PASS | |
| 51 | | P3 chip geval curve strictly decreasing | 22 points; Wolfram `And@@Thread[Differences[ev]<0] -> True` | PASS | |
| 52 | | P4 CPU `eval` of ck60000 within 10 µnats of the chip | `run/eval60000.txt`: `E 60000 2243 1206290 450002`, rc 0 (bin 6da13670…, ck 45a73a3a…, core 8, nice 19, 11,520.1 s non-quiet) | PASS (Δ 0, identical line) | |
| 53 | | P5 summed `gtrainf` wall 250→60000 < 15,709 s | 14,688.1-14,864.0 s | PASS | |
| 54 | |
| 55 | P5 (WolframLanguageEvaluator over the ns stamps around each `gtrainf` in `run/train.txt`): the 22 |
| 56 | legs with an end stamp, including the ENOSPC leg that wrote no step (62.2 s), sum to 14,561.29 s. The |
| 57 | killed leg t9 has a start stamp (1793659229187893163) and no end stamp; its wall is bounded below by |
| 58 | the write of T 15500 (22:42:36Z, +126.81 s) and above by the next leg's start (+302.68 s). Total |
| 59 | 14,688.11-14,863.98 s, at most 0.9462 of the bound. Excluding the two disturbed legs, 59,250 steps |
| 60 | took 14,499.09 s: 0.24471 s/step, 66,953 tokens/s (rung 7: 0.23901 s/step on the same binary; |
| 61 | non-quiet). |
| 62 | |
| 63 | What this does not show: whether the gain comes from more distinct data or from more passes over the |
| 64 | same data (the sampler draws hashed windows with replacement, `data.om` `obatch`; 983,040,000 token |
| 65 | positions, 62.09 per parameter). Rung 8 also spends twice rung 7's chip time; a rung-7-length run of a |
| 66 | larger shape at equal chip time was not run. |
| 67 | |
| 68 | ## Setup |
| 69 | |
| 70 | - Binary: rung 7's `ollm-gb10` 1853303e… (`../gpu-r7/build.txt`, sources b312942; this branch |
| 71 | adds no source change). CPU build for P4: `ollm` 6da13670… (same file). |
| 72 | - Init: `ollm init ckL0.bin 4096 256 384 12 1536 8 64 1 60000 3000 16`, sha256 e02c6234…. `cmp -l` |
| 73 | against rung 7's ckL0 shows bytes 81-82 only (TOTAL 30000→60000): same seed, parameters, data, |
| 74 | batch and peak LR 3e-3; the LR decay runs over 60000 steps. |
| 75 | - `run/drive.sh` opens one `spark-window` per leg (lease 22 min) and posts STARTING/DONE board lines. |
| 76 | `run/leg.sh` trains 0→250, then 3000-step legs that stop exactly at 2000, 9000, 30000 and 60000, then |
| 77 | runs `geval` of the saved checkpoint. `run/prereg.sha256` covers `prereg.txt` only; the scripts |
| 78 | were not hashed before the first window and are committed as they ran. |
| 79 | - `run/leg.sh` does not check the `geval` exit code or the `cp ck.bin ckN.bin` result. This had no |
| 80 | effect here: all 22 `geval` blocks in `run/geval.txt` end `rc=0`, and the hashes of ck2000, ck9000, |
| 81 | ck30000 and ck60000 in `run/checkpoints.sha256` equal the `step=N ck=` hashes `leg.sh` recorded in |
| 82 | `run/geval.txt` before each `geval`. |
| 83 | - `run/leg.sh` line 3 contains the absolute data path under the operator's home directory. The file is |
| 84 | committed as it ran, so the path was not rewritten. |
| 85 | - `run/drive.sh` touches and removes `/tmp/aien-q36-live-down-for-tests` around each window. The |
| 86 | marker is legacy from earlier lanes; nothing in this run reads it, and it is harmless. |
| 87 | - There is no `run/drive.out` receipt. The first driver ran with its output not kept; the relaunched |
| 88 | driver's `drive.out` (mtime 22:45:29Z) is 0 bytes, so nothing was committed. |
| 89 | - P4 driver: `run/cpu-eval.sh` is `/tmp/gk/cpu-eval.sh` copied verbatim (mtime 2026-11-02T23:03:05Z, |
| 90 | before the eval started at 2026-11-03T01:48:30Z, so it was not edited after producing |
| 91 | `run/eval60000.txt`). `sh cpu-eval.sh ck60000.bin eval60000.txt 8` writes the cmd, binary and |
| 92 | checkpoint sha256, start/end stamps and rc around the `ollm eval` output. It also holds an |
| 93 | absolute home path. |
| 94 | - Checkpoints stay outside the repository (380,003,448 bytes each); hashes in `run/checkpoints.sha256`. |
| 95 | - Window logs: `run/windows.txt` (one line per window), `run/windows-log.txt` (all 24 `win-*.txt`, |
| 96 | home prefix replaced with `~/`). |
| 97 | |
| 98 | ## Infrastructure events (`run/infra-note.txt`) |
| 99 | |
| 100 | 1. Window gg-r8t3, 2026-11-02 21:04Z: the root file system reached 0 bytes free and `gtrainf` exited |
| 101 | rc 70 (ENOSPC) on the checkpoint write before any T line. `gtrainf` saves via `ck.bin.tmp` and |
| 102 | rename, so `ck.bin` stayed the step-2000 checkpoint (4563191b…). The run directory moved to |
| 103 | `/dev/shm` behind a symlink, the partial `.tmp` was removed, and the driver resumed from 2000. The |
| 104 | failed leg is a disk failure, not a training failure; its 62.2 s are in the P5 sum. |
| 105 | 2. Window gg-r8t9, 22:42Z: the agent session that owned `drive.sh` ended and took the leg with it |
| 106 | after T 15500 (no rc line). `ck.bin` held step 15500 and no `.tmp` was left. Batches derive from |
| 107 | (seed, step), so resuming from 15500 trains the same steps. The orphaned window was closed by hand, |
| 108 | the run directory was copied back to `/tmp/gk/r8/run` (`ck.bin` cmp equal), and `drive.sh` was |
| 109 | relaunched under `setsid nohup`. |
| 110 | |
| 111 | No leg was rerun to replace a failing receipt; both events are counted in P5. |