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-k9

1575dc8 omegallm gpu k9: fuse FFN ReLU into GEMM epilogues (aien-train#52) Drake Stapleton committed 2026-11-02
..
README.md5728
build.txt1585
close.json496
disasm-max.txt5697
disasm-parity.txt5690
ga-max-P.txt260
gc2-max-s7-P.txt367
gc2-max-s7-PM.txt373
gc2-max-s7-PT.txt398
gc2-odd-s3-P.txt337
gc2-odd-s3-PM.txt348
gc2-odd-s3-Q.txt337
gc2-small-s3-P.txt336
gc2-small-s3-PM.txt348
gc2-small-s3-PT.txt372
ge-max-30000-P.txt224
ge-max-9000-P.txt223
open.json652
prereg.sha25677
prereg.txt4929
prof-1-P.txt11113
prof-1-Q.txt11598
prof-2-P.txt11116
prof-2-Q.txt11615
prof-3-P.txt11115
prof-3-Q.txt11596
run.sh1979
srcdiff-q-to-p.txt9720
t200-P.txt363
t200-Q.txt363
win-k9.txt634

README.md

GB10 kernels k9: ReLU fused into the FFN GEMM epilogues (aien-train#52)

k9 removes the two elementwise ReLU kernels (gr.om RELUF id 17 and RELUB id 18) and does their work in the GEMM epilogues that produce or consume the same tensors (gk.om gkepi, gkepi64, gkquad64):

  • ep 1 (ids 25 for the 32×32 GEMM, 56 for the 64×64 GEMM; operand modes ma 1 mb 0, the FFN W1 forward ggxw) stores C = FP as before. It also stores Y = FP > 0 ? FP : 0 to a second pointer.
  • ep 2 (ids 26 and 58; ma 1 mb 1, the FFN dF backward ggxwt) loads FP from the second pointer and stores C = FP > 0 ? C : 0.

gkope ep y arms the next gkmm (arg words 30/31, arg count 32). gkepok makes gkmm refuse any other combination of ep, operand modes or beta with nverr -22. The select is the same FSETP.GT vs RZ plus FSEL that RELUF/RELUB used, so NaN still maps to 0. gg.om ggffn / ggbffn call gkope in place of ggew 17/18. FP (arena l 10) is still written, so the gcmp2 FP mask check is unchanged. Mutant m (--mutant m) moves from gr.om to gk.om: the ep 2 threshold becomes 2^-10 while the forward and FP stay unchanged.

Status: EXERCISED on one GB10, window 20261102T164003Z-8a32e1, --gb10 shared --quiet none. spark-window printed "quiet machine" at close, but the quiet lock was not taken, and the load average was 1.60 at open and 2.52 at close (open.json, close.json). Timings are non-quiet. Not QUALIFIED. Flash-style attention (about 41.7 ms/step in the k8 profile) is deferred to a later round.

Setup

  • omc 2c824805… (omega-mv e5b32567). Binaries: build.txt. This commit's tree rebuilds the window's P (89ce7107…), PT (2ce7fd6e…) and PM (73d45399…) byte for byte. Only a gk.om note changed after the window. The baseline Q is the k8 product 0b701583… (../gpu-k8/). srcdiff-q-to-p.txt is the 366-line diff of the concatenated sources (Q 60db63c0… → P fc8a1e2e…).
  • prereg.txt was written at 16:39:52Z, prereg.sha256 at 16:40:01Z, and the window directory was created at 16:40:03Z. prereg.sha256 hashes the prereg (abe0b43c…). run.sh (16:39:21Z, unchanged) hashes to c34ecf6a…. That hash was taken after the window, from the unmodified file. In win-k9.txt, open.json and close.json the home prefix is replaced by ~/.
  • Odd shape: ollm init ck-odd.bin 256 32 64 2 96 2 3 7 100 1000 (sha 7ac2a238…, not committed) gives R = B T = 96 and F = 96. gktile therefore picks 32, and the FFN GEMMs use ids 25/26. The parity and max shapes use 56/58.
  • Static checks (disasm-parity.txt, disasm-max.txt, rc 0, no GPR LOW): slots 17 and 18 are empty. Slots 25/26 have max R101, need 104, declared 104. Slots 56/58 have max R158, need 161, declared 168. All GEMMs have SMEM target 17. Slots 25/26 are 8832 bytes (2/3: 7776); 56/58 are 20176 (42/46: 15984).

Gates (all as pre-registered)

runexpectedobserved
gc2-small-s3-Pk8 GC2 line, PASSGC2 84288 177 177 3815 211 7629 1 0 0 194221 0 5529261 5529261 * 0, PASS rc 0
gc2-max-s7-Pk8 GC2 line, PASSGC2 7409920 159783 758 122070 450 61035 6 3 358192 1557866 0 8339291 8339291 * 0, PASS rc 0
gc2-odd-s3-P vs -QP PASS; fields 1-13, 15 equal to Qboth GC2 76096 237 237 5722 187 5722 1 0 0 171373 0 5520714 5520714 * 0, PASS rc 0
ga-max-PGA 7409920 59554 4021923359 14807 125 15259 * 2841667equal, GACMP PASS rc 0
ge-max-9000-PE 9000 2243 1445466 539226equal, rc 0
ge-max-30000-PE 30000 2243 1338156 499194equal, rc 0
t200-Q, t200-PT 9200 1508182, ck_after ec4a8c21…both equal, rc 0
gc2-small-s3-PT, gc2-max-s7-PTFAIL rc 47FAIL rc 47
gc2-max-s7-PMFAIL rc 47FAIL rc 47 (field 2 7388459)
gc2-odd-s3-PMFAIL (controls the 32×32 ep 2 path)FAIL rc 47 (field 2 16792069)
gc2-small-s3-PMreportedFAIL rc 47 (field 2 25987030)

P is bit-identical to k8 over 200 training steps: the checkpoint and the loss line are the same.

Speed

Pre-registered rule: ADOPT if the gates hold and the largest P summed GPU wait (GT field 9) is below the smallest Q over three rotated rounds (Q P / P Q / Q P, gprof 3 from rung 6 ck30000). GT covers the 3 steps plus 64 ZERO probe launches, which both arms share. Launches: Q 1021 = 3·319 + 64 and P 973 = 3·303 + 64.

roundQ GT wait / 3 (ms)P GT wait / 3 (ms)
1143.62133.42
2146.22133.60
3143.84133.60

Max P is 400810630 ns and min Q is 430865863 ns, so k9 is ADOPTED. The means are 144.56 and 133.54 ms/step, which is −11.02 ms/step (−7.62%). The pre-registered model predicted −8.49 to −14.15 ms/step (WolframLanguageEvaluator; inputs in prereg.txt). t200 wall: Q 32.672 s, P 30.762 s, ratio 0.9415.

Last profiled step, per-id GP wait (ms; Q ids 42+17 vs P 42+56 for the W1 forward plus ReLU, Q 46+18 vs P 46+58 for the dF backward plus mask):

roundQ fwdP fwdQ bwdP bwdQ stepP step
120.1216.0338.2532.29143.78133.29
221.2217.3840.8332.67151.18135.49
320.4216.8037.5632.12142.77134.14

The forward group is 18.7% smaller and the backward group 16.8% smaller (means). The fused 64×64 kernels cost 1.804 ms (56) and 2.295 ms (58) more than the plain GEMM wait they absorb, which is the drop in ids 42 and 46 from Q to P. Removed against that: RELUF 5.886 ms and RELUB 8.264 ms. These are round-1 values, and the split is by subtraction because Q has no separate W1/dF GEMM id.

All arithmetic: WolframLanguageEvaluator over the receipt values (group sums, means, ratios, ns→ms).