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

fc9af27 omegallm gpu k7b: mutant t static receipt, slot 32 reuse count (#52) Drake Stapleton committed 2026-11-02
..
README.md7411
build.txt1241
close.json495
disasm-mut-t.txt996
disasm.txt2847
ga-max-P.txt260
gc2-max-s7-P.txt368
gc2-max-s7-PT.txt398
gc2-small-s3-P.txt338
gc2-small-s3-PT.txt373
ge-max-30000-P.txt224
ge-max-9000-P.txt223
open.json651
prereg.sha256150
prereg.txt3234
prof-1-K6.txt11609
prof-1-K7a.txt11665
prof-1-P.txt11607
prof-2-K6.txt11604
prof-2-K7a.txt11601
prof-2-P.txt11599
prof-3-K6.txt11613
prof-3-K7a.txt11599
prof-3-P.txt11604
run.sh1907
t200-K6.txt363
t200-K7a.txt363
t200-P.txt363
win-k7b.txt634

README.md

GB10 kernels k7b: the accumulator remap removed, Ra reuse kept (aien-train#52)

../gpu-k7/ added two switches to the GEMMs (ids 0-7 32×32, ids 32-39 64×64): Ra operand reuse with control bit 109 (OKREU) and an accumulator column remap (OKBNK, C column j in accumulator column j xor 1). Its one profile per binary put all the gain on reuse. The remap-only variant r0 fell inside the K6 spread, and the reuse-only variant b0 was at least as fast as both together. k7b removes the remap:

  • gk.om: OKBNK, gkcol and gkacc32 are gone. gkfrag and gkstep64 index the accumulator as 16 + k again, the 32×32 epilogue uses add 16 k, and gkacc64 is back to its k6 formula. gkffma's reuse mask, OKREU, gkru and mutant t (OMUTT) are unchanged.
  • build.sh: --variant b0 is gone. --variant r0 (OKREU 0, the K6 code) remains.

The product's GPU code is byte-equal to k7's variant b0 at both shapes (disasm.txt). It is still a new binary (50dcd16e… against b0's c37449e6…), so it is gated in its own window. This window also repeats the profiles in three rotated rounds, because k7 had only two K6 runs to estimate the spread.

Status: EXERCISED on one GB10, window 20261102T151944Z-8e7470 (win-k7b.txt), opened --gb10 shared --quiet none. spark-window printed the verdict "quiet machine", but the quiet lock was not taken, and the load average was 1.64 at open and 2.60 at close (open.json, close.json). The timings are therefore non-quiet. Not QUALIFIED.

Setup

  • Binaries (build.txt): product P 50dcd16e…, mutant t PT 69724d09…, omc 2c824805… (omega-mv e5b32567), built from this commit's tree before the window. The same window ran two bases: K6 e49491c5… (../gpu-k6/) and K7a 53ff5f71…, the parent commit's product (../gpu-k7/, d3d4551).
  • Static checks before the window (prereg.txt), recorded in disasm.txt:
    • P's 64-slot code is byte-equal to k7 b0's (max shape cd777d34…, parity shape 9659b361…).
    • This tree with OKREU 0 is byte-equal to K6's code (max 9646adef…, parity ac8e5ff1…).
    • P differs from K6 only in slots 0-7 and 32-39. Of their 6464 FFMAs, 5120 print .reuse, as in k7.
  • prereg.txt was written at 15:19:37Z and the window opened at 15:19:44Z. prereg.sha256 (written before the open) hashes it (726a0ecf…) and the run.sh the window ran (47444baa…). In the committed run.sh, win-k7b.txt and the window JSON the home prefix is replaced by ~/, so the committed run.sh hashes to efcd1f70…. Nothing else differs.
  • Checkpoints are as in ../gpu-k7/: gprof on rung 6's ck30000 (8ccaa099…) and t200 from rung 6's ck9000 (e91349fb…).

Results

GC2 field 14 (gpu_ns) and GA field 7 (adam_ns) are wall times and exempt from equality, as prereg.txt states. Every other field equals the k6 and k7 receipts.

prediction (prereg.txt)receiptresult
P gcmp2 small, 3 steps, rc 0, K6 linegc2-small-s3-P.txt GCMP2 PASS rc=0PASS
P gcmp2 max, 7 steps, rc 0, K6 linegc2-max-s7-P.txt GCMP2 PASS rc=0PASS
P gacmp max rc 0, K6 linega-max-P.txt GACMP PASS rc=0PASS
PT gcmp2 max FAIL rc 47gc2-max-s7-PT.txt GCMP2 FAIL rc=47, fails 14PASS (caught)
PT gcmp2 small FAIL rc 47gc2-small-s3-PT.txt GCMP2 FAIL rc=47, fails 14PASS (caught)
P geval of rung 5 ck9000: E 9000 2243 1445466 539226ge-max-9000-P.txt same linePASS (Δ 0)
P geval of rung 6 ck30000: E 30000 2243 1338156 499194ge-max-30000-P.txt same linePASS (Δ 0)
t200 K6, K7a, P: rc 0, T 9200 1508182, ck_after ec4a8c21… for all threet200-{K6,K7a,P}.txtPASS (byte-equal)
(1) max P GEMM total < min K6105.08 ms < 106.25 msholds
(2) P and K7a GEMM ranges overlapP 100.30-105.08, K7a 100.23-101.34 msholds

Neither withdrawal rule fires: the k7 speed claim stands, and the remap removal stays.

Speed (non-quiet)

t200: 200 gtrainf steps 9000→9200, in the order K6, K7a, P.

binarywallGPU wait (GT field 9)launcheswait per launch
K635.659 s31.883 s638000.4997 ms
K7a (reuse + remap)34.092 s30.354 s638000.4758 ms
P (reuse only)34.101 s30.371 s638000.4760 ms

P is 1.0457× faster than K6 in wall time (−4.37%, 7.79 ms per step) and 1.0498× in GPU wait. P and K7a differ by 9.1 ms over 200 steps (P/K7a 1.00027 wall, 1.00056 wait). Wait is 89.06% of P's wall (WolframLanguageEvaluator: 35659251962/34100849240 → 1.04570, 31882952613/30371025229 → 1.04978, (1 − 34100849240/35659251962)·100 → 4.3703, (35659251962 − 34100849240)/200/10^6 → 7.7920, 34100849240/34091751388 → 1.00027, 30371025229/30354176610 → 1.00056, 30371025229/34100849240 → 0.89062, 30371025229/63800/10^6 → 0.47603, 30354176610/63800/10^6 → 0.47577, 31882952613/63800/10^6 → 0.49973). K6 ran 0.222 s slower here than in the k7 window (35.438 s).

gprof 3 (one profiled step each, 383 launches; ns summed over each id's launches), three rounds in rotated order: K6 K7a P / K7a P K6 / P K6 K7a.

roundbinaryids 0-1 (32×32)ids 32-39 (64×64)GEMM total (0-7, 32-39)all ids
1K61660825492524427109132681159130652
1K7a1648943484238132100727566151509448
1P1662482988450518105075347156016530
2K7a1635764183870373100228014149839120
2P1670290783598192100301099149919847
2K61644562689806310106251936155609841
3P1659478187185470103780251153763841
3K61649471591883344108378059158457842
3K7a1659775584743951101341706150940521

GEMM total, mean over the three rounds (WolframLanguageEvaluator: Mean of each triple):

binarymeanrange / K6 meansdmean / K6 mean
K6107.921 ms0.02671.49 ms1
K7a100.766 ms0.01030.56 ms0.93370
P103.052 ms0.04422.47 ms0.95489
  • P/K6 per round: 0.9628, 0.9440, 0.9576. 64×64 mean: K7a 0.9221 of K6, P 0.9454.
  • Ids 0-1 (32×32): all nine profiles lie within 16.36-16.70 ms. Reuse does not move them.
  • P is the noisiest binary. In round 1, P's ids 32 (21.57 ms) and 35 (33.78 ms) ran at K6 level (K6: 21.64-21.81 and 33.18-33.54), and in round 3 they sat between K6 and K7a. In round 2 P equals K7a (100.30 against 100.23 ms). K7a's ids 32 and 35 stayed within 18.62-19.06 and 31.28-31.75 ms in every round.

Reading: the 200-step run is the decision measure for training speed, and there P equals K7a to 0.03% in wall time. The single-step profile adds a P-only spread in ids 32 and 35 that the remap seemed to damp. Three profiles cannot say whether that spread is a property of the code or of the box INFERENCE: 9.1 ms over 200 steps is 45 µs per step, far below the 2.3 ms mean profile gap (WolframLanguageEvaluator: (34100849240 − 34091751388)/200/10^3 → 45.489 µs, (103052232.333 − 100765762)/10^6 → 2.2865 ms). Both pre-registered directions hold, so k7b keeps the removal. If a later window shows P's 64×64 spread again, the remap comes back as a measured damper, not as a bank fix.

Next

The 128×128 retile (256 threads, 8×8 per thread) of the 64×64 GEMMs, then fusion of the softmax into the attention GEMMs.