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-k8 / a3 / prereg.txt

53 lines · 4516 bytes Raw Blame History
1k8c pre-registration (written before window open, 2026-11-02)
2This is a NEW hypothesis, not a reinterpretation of k8. k8 attempt 2 (window 20261102T160003Z-6bddbf,
3receipts /tmp/gk/k8b/w) met every correctness gate (bit-identical t200) but was slower than B in every
4round (GEMM P/B 1.11999, Wolfram), so k8 as specified is recorded as a NULL result.
5Hypothesis: the QMD shared-memory TARGET config under-sizes the carveout. gk.om wrote word 36 as the fixed
678923776 + smem: MIN 9 / MAX 26 / TARGET 9 (32 / 100 / 32 KiB) for every kernel. Mesa NAK qmd.rs
7gv100_get_hw_smem_sizes (lines 580-606) instead sets TARGET to the smallest carveout (GB10 sm121 list
80 8 16 32 64 100 KiB, winsys nouveau_device.c:218-231) that holds smem x workgroups per SM. With the
9register-limited residency 65536 / (gkgpr * gkthr) (Wolfram):
10 nb[g,t]=Floor[65536/(g t)]; need=nb*smem ->
11 32x32 GEMM (ids 0-7): 9 blocks * 4608 B = 41472 B -> TARGET 17 (64 KiB) [k7b and k8 both]
12 64x64 k7b (ids 32-39): 7 * 4352 = 30464 B -> TARGET 9 (unchanged)
13 64x64 k8 (ids 40-54): 6 * 8704 = 52224 B -> TARGET 17 (64 KiB)
14 gr.om (64 thr, 72 GPR): 14 * 1024 = 14336 B -> TARGET 9 (unchanged)
15 packed MIN|MAX constant 9*2^11+26*2^17 = 3426304; with TARGET 9 it is 78923776 (old word).
16[INFERENCE] if the hardware honours TARGET, k8 ran at Floor[32768/8704] = 3 blocks/SM instead of 6, and
17the 32x32 GEMM at Floor[32768/4608] = 7 instead of 9.
18Change: gk.om gksmw id computes word 36 with TARGET from the rule above; gkqmd writes gksmw id. MIN and
19MAX unchanged. tests/omegallm/gpu-dump.om emits the TARGET field per id (stderr bytes 64..127) and
20gpu-disasm.sh prints "SMEM s target t". The 28-line source delta is identical in both arms.
21Arms:
22 B /tmp/gk/k7b/bin/ollm-gb10 50dcd16e k7b product (fc9af27; rebuilt from a clean archive
23 /tmp/gk/k8c/binb: byte-identical 50dcd16e, source 627d0c67)
24 C /tmp/gk/k8c/binc/ollm-gb10 58c207ea k7b + TARGET rule (source 6e52afd8); only ids 0-7 change
25 Q /tmp/gk/k8c/binq/ollm-gb10 0b701583 k8 attempt-2 + TARGET rule (source 60db63c0)
26 QT /tmp/gk/k8c/binqt/ollm-mut-t-gb10 3619ef31 Q mutant t (source a31f53f1)
27Source deltas: diff B->C (binb/ollm.om vs binc/ollm.om) and P(k8b)->Q (k8b/bin vs binq) are the same
2828 lines (gksmw + its 6-line note + the gkqmd call); /tmp/gk/k8c/srcdiff-{c,q}.txt.
29Static checks (/tmp/gk/k8c/dis-{c,q}-{parity,max}.txt), all rc 0:
30 code_sha256 C parity 9659b361... max cd777d34... (= k7b); Q parity 70e215af... max 9b2e6d92... (= k8):
31 kernel bytes unchanged, only QMD word 36 moves.
32 GPR every slot OK (C 32-39 max R141 need 144 declared 144; Q 40-54 max R158 need 161 declared 168).
33 SMEM target: ids 0-7 17, C 32-39 9, Q 40-54 17, gr 9-24 9: matches the table above.
34Expectations (tolerances unchanged; GC2 field 14 and GA field 7 are wall timings, exempt):
35 Q and C gc2-small-s3: rc 0, GC2 84288 177 177 3815 211 7629 1 0 0 194221 0 5529261 5529261 * 0
36 Q and C gc2-max-s7: rc 0, GC2 7409920 159783 758 122070 450 61035 6 3 358192 1557866 0 8339291 8339291 * 0
37 Q and C ga-max: rc 0, GACMP PASS, GA 7409920 59554 4021923359 14807 125 15259 * 2841667
38 Q and C geval: E 9000 2243 1445466 539226; E 30000 2243 1338156 499194.
39 QT gc2-small-s3 and gc2-max-s7: GCMP2 FAIL rc 47 (the control).
40 t200 from r6 ck9000, B then C then Q: rc 0, T 9200 1508182, ck_after ec4a8c21... for all three
41 [INFERENCE: TARGET changes residency, not arithmetic].
42 gprof, three rounds rotated (B C Q / Q B C / C Q B), 3 steps each from prof/ck.bin.
43Decision rules [INFERENCE, not gates], metric = GPU wait summed per id group per profile:
44 R1 (TARGET rule on the 32x32 GEMM, C vs B, ids 0-7): GAIN if max C < min B over rounds; HARM if
45 min C > max B; else NULL.
46 R2 (pipelining under a correct TARGET, Q vs C): 64x64 group Q ids 40-54 vs C ids 32-39. ADOPT k8 if
47 max Q < min C; else k8 stays NULL and its kernels are reverted to k7b.
48 Product: k8 adopted and R1 not HARM -> Q. k8 not adopted and R1 GAIN -> C. k8 not adopted and R1 not
49 GAIN -> B (no change committed beyond the GPR guard). k8 adopted and R1 HARM -> stop; new prereg.
50 Also reported: total profile wait, GEMM total (all GEMM ids), t200 wall per arm. Speed is non-quiet.
51A FAIL of any product gate, a mutant t pass, or a checkpoint mismatch is kept as a receipt and stops the
52commit of that arm.
53run.sh: the k8b run() function unchanged (diffed); runs listed in run.sh, B/C/Q/QT paths above.