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

119 lines · 7411 bytes Raw Blame History Source

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:

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

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

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.