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 / gpu

154fd8c omega-llm: geval (held-out eval on the GB10) and Kahan CE sum (aien-train#52) Drake Stapleton committed 2026-11-02
..
probe/
README.md8444
build.txt1368
disasm-slot23-24.txt6231
eval9000-gtrain.txt419
eval9000-gtrainf.txt420
ga-night-mut-h.txt90
ga-night.txt75
ga-small-mut-h.txt73
ga-small.txt73
gc-night-371ff177.txt164
gc-night-mut-g.txt169
gc-night.txt161
gc-small-mut-g.txt155
gc-small.txt144
gtrain1.txt120
gtrain2.txt225
gtrain3.txt285
gtrainf-0-9000.txt670
gtrainf-2000-5000.txt312
src-diff-4b83ad45-7bd36d87.txt9342

README.md

GB10 GPU training receipts (aien-train#52, rung 4)

Every chip run here went through spark-window with --gb10 shared --quiet none: other lanes and the CPU night run ollm-night (cores 0-19, nice 19) were live. spark-window still printed "verdict for its timings: quiet machine"; that verdict does not apply to a window opened with --quiet none. **Every time below is non-quiet.** Status: EXERCISED on one DGX Spark GB10, not QUALIFIED. Nothing here is CUDA: the kernels are SASS emitted by native/omegallm/gpu/gk.om and gr.om and launched by launch.om on the raw driver. nvdisasm 13.0.85 is the read-only oracle for the emitted code (disasm-slot23-24.txt, reproduced by sh tests/omegallm/gpu-disasm.sh 23 24).

build.txt lists every binary and source sha256. Data: v1-data/train.dec (small checkpoint, batch index 3) and v1-data/train.tok (night checkpoint, batch index 7); held-out eval held.tok 4486 merges4096.bin.

Windows

windownameran
20261102T031634Z-621b44gg-nightprobe/gc-*-ogg*.txt, probe/gx-night.txt
20261102T034237Z-eba1bdgg-kinkprobe/gy-night.txt
20261102T035547Z-9b5d74gg-train1probe/gz-night.txt, gtrain1.txt
20261102T035842Z-4e4e61gg-train2gc-small*.txt, gc-night.txt, gc-night-mut-g.txt, gtrain2.txt
20261102T041247Z-447f07gg-train3gtrain3.txt
20261102T042848Z-a0e98egg-adam4gc-night-371ff177.txt, ga-*.txt, gtrainf-2000-5000.txt
20261102T043306Z-d91236gg-full5gtrainf-0-9000.txt

probe/fl-night.txt ran on the CPU only. Window records: ~/yardsticks/windows/<id>/ on the Spark.

Gradient gate: gcmp

gcmp CK DATA S computes the batch-S loss and gradient twice, on the CPU in f64 (ograd) and on the chip in f32 over all R = B T rows at once, and prints GC P maxabs_e12 maxref_e12 rel_e9 cpu_loss_micro gpu_loss_micro gpu_ns tol_e9. PASS needs rel = maxabs / maxref < tol and |Δloss| < 1e-5; FAIL exits 45. tol = R·2^-24 (γ_R to first order), the error bound of an f32 sum of R terms relative to the sum of magnitudes; R is the longest reduction in the weight gradients. Small: R = 64, tol 3.815e-6. Night: R = 5120, tol 3.05176e-4.

receiptPreltolresult
gc-small.txt842882.35e-73.815e-6PASS rc 0
gc-small-mut-g.txt (mutant g: DK = −DSᵀQ)842884.41e-33.815e-6FAIL rc 45
gc-night.txt25822081.614e-43.05e-4PASS rc 0
gc-night-mut-g.txt25822081.0793.05e-4FAIL rc 45
gc-night-371ff177.txt (binary with on-chip Adam)25822081.614e-43.05e-4PASS rc 0, same GC fields as gc-night.txt

Why the gate is γ_R and not 1e-4

The first night-shape run (probe/gc-night-ogg.txt, earlier binary, fixed tol 1e-4) failed at rel 1.61e-4 with |Δloss| 7e-6, while the small shape passed at 2.35e-7. The diagnostics:

  • probe/gx-night.txt: the per-parameter-segment GS lines put the maximum, 7772936e-12, in the segment starting at parameter 1844352.
  • probe/gy-night.txt: that maximum sits in weight column 408 (WC 408 7772936), and the NZ lines list ReLU units whose f64 pre-activation is within f32 resolution of zero; unit 408 is one of them. Rounding puts such a unit on the other side of the kink on the chip. Both sides are valid subgradients, so this is not a defect in either path.
  • probe/gz-night.txt: with the CPU forced to the chip's side of those kinks, maxabs falls to 3410257e-12 and rel to 7.08e-5.
  • probe/fl-night.txt: the CPU gradient computed with f32 rounding against the f64 one, the floor any f32 implementation meets on this shape.

The probe binaries are throwaway builds whose sources are not in the tree; their receipts are kept as the record of the diagnosis only. The γ_R gate replaced the ad hoc 1e-4. γ_R is a rounding bound and cannot cover a kink: a unit whose pre-activation the two paths put on different sides of zero changes the gradient by a full term, not by rounding. On this shape the kink error happened to fit under γ_R; on the rung-5 shape it does not (../gpu-max/gc-max.txt, rel 1.58e-4 against γ_R 1.22e-4). The kink case is now checked by gcmp2, branch-conditioned parity (../gpu-max/README.md), which reruns this shape as ../gpu-max/gc2-night-s7.txt.

On-chip Adam gate: gacmp

gacmp CK DATA S takes one step from CK with the chip gradient, once with oadam on the CPU in f64 and once with ggadam (SQN partial sums of g², clip, schedule and bias corrections on the host in f64, then the ADAM kernel, slot 24) on the chip in f32. It prints GA P maxd_e12 maxu_e12 rel_e9 resid_e9 tol_e9 adam_ns loss_micro. With w0 the parameter before the step, c the CPU result and g the chip result: u = c − w0, d = (g − f32(w0)) − u; resid = max(|d| − 2^-24|c|) / max|u|, the part of d above the half-ulp rounding of the f32 master weight. PASS needs resid < 2^-16; FAIL exits 46. The mutant h binary uses β1 = 0.8 in the kernel.

receiptstep in CKrelresidAdam on chipresult
ga-small.txt01.957e-32.34e-70.341 msPASS rc 0
ga-small-mut-h.txt01.957e-32.34e-70.357 msPASS rc 0 (see below)
ga-night.txt10001.53e-51.28e-70.808 msPASS rc 0
ga-night-mut-h.txt10000.1140.1140.692 msFAIL rc 46

The small checkpoint is at step 0, so m = 0 and m ← β1·m + (1 − β1)·g does not depend on β1 on its first step; mutant h is invisible there by construction (identical GA fields). The night checkpoint (step 1000, m ≠ 0) is the negative control, and it fails. The raw rel of the small case is the half-ulp rounding of f32 weights near 1 against a first-step update of about 3e-5; resid removes it.

Training

gtrain CK TRAIN UNTIL EVERY is train with the gradient from the chip and Adam on the CPU in f64 (upload f32 weights, download the gradient every step). gtrainf keeps parameters and Adam moments on the chip in f32 and uploads only the batch; at save points the state comes back to f64 for the checkpoint. Both print T step loss_micro at save points, like train. Times are wall clock between the ns stamps on the first and last lines of each receipt (WolframLanguageEvaluator arithmetic).

receiptbinarystepswallper step
gtrain1.txt35689221750→200062.0 s0.248 s
gtrain2.txt35689222000→5000720.6 s0.240 s
gtrain3.txt35689225000→9000941.4 s0.2354 s
gtrainf-2000-5000.txt371ff1772000→5000161.0 s0.05367 s
gtrainf-0-9000.txt371ff1770→9000483.8 s0.05375 s

gtrain legs 1-3 started from a copy of the night run's step-1750 checkpoint; gtrainf-2000-5000 started from gtrain's step-2000 checkpoint (sha256 295e7999…ec65) and gtrainf-0-9000 from a copy of the night run's init checkpoint v1-night/ck0.bin (sha256 d2efaf93…e42b). Phase times from the GT line of gtrainf-0-9000.txt (last step, ns): upload 0.64 ms, forward 19.4 ms, backward 27.0 ms, loss 1.0 ms, Adam 0.71 ms.

Trajectories (batch losses, so noisy):

  • gtrainf-2000-5000 against gtrain2 at the same 12 save points: max relative difference 0.34%, mean 0.15%. Same start, same batches; the paths differ in f32 against f64 Adam.
  • gtrainf-0-9000 against gtrain3 over 5250-9000: max 1.14%, mean 0.45%; mean of the last four save points 1.7752 vs 1.7722 nats.
  • gtrainf-0-9000 against the CPU night run at its first nine save points (250-2250): max relative difference 0.70%, mean 0.33%.

Held-out eval

Both final checkpoints evaluated by the CPU ollm eval (v1 binary b9b4e02d…997b, the night run's) on held.tok with W 4486: E step W loss_micro bpb_micro.

receiptcheckpointloss (nats/token)bpb
eval9000-gtrain.txtgtrain step 9000, f7128843…8d3e1.8246530.680680
eval9000-gtrainf.txtgtrainf step 9000 from scratch, d11b2ec6…fc2e1.8268770.681510

The from-scratch on-chip run ends 0.12% above the mixed CPU/GPU run in both loss and bpb (WolframLanguageEvaluator). v0 ended at 1.463036 bpb after 20000 CPU steps on its byte-level shape.

geval on the chip now prints both E lines exactly (../geval/README.md); its first build, with the plain f32 CE sum the training above used, printed 11 µnats less for each.