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 / README.md

89 lines · 5728 bytes Raw Blame History Source

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):

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

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).