Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-train/blob/main/evidence/OMEGALLM/gpu-k1/README.md # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aien-train / evidence / OMEGALLM / gpu-k1 / README.md` 70 lines · 4413 bytes Raw Blame History Rendered 1 # GB10 kernels k1: one-warp softmax, split-K weight gradients, spin wait, gprof (aien-train#52) 2 3 Rung 6 (`../gpu-r6/`) trained at 0.3771 s/step with every launch synchronous. Its per-kernel picture 4 came from the launch counters of `gk.om` only, so this change first adds `gprof` (one `GP id gx gy gz 5 m n k wait_ns` line per launch of the last profiled step, then 64 bare launches) and then attacks what 6 it showed: 7 8 - `gr.om` softmax forward and backward (ids 15, 16) reduce each row in one warp with a shuffle 9 butterfly instead of a shared-memory loop. Mutant s (`OMUTS`) drops the lane-1 butterfly step. 10 - `gg.om` `ggks` splits the weight-gradient GEMMs (depth R = B·T) into up to 16 slices along R when 11 the plain grid would leave SMs idle, and a second launch sums the slices. Mutant p (`OMUTP`) drops 12 the last slice. 13 - `gk.om` `gkwait` spins on the semaphore with `gkpoll` instead of sleeping between polls. 14 15 A launch-batching variant (one wait per group of launches) was tried in three earlier windows of 16 this session and dropped: it never passed `gcmp2`, and the most it could save on the measured wait 17 profile was 0.69% of the step. This tree has no batching. 18 19 Status: EXERCISED on one GB10, window `20261102T132349Z-43ab46` (`win-c1-chk1.txt`), opened 20 `--gb10 shared --quiet none`. `spark-window` printed "quiet machine", but the quiet lock was not 21 taken: the rung-6 P5 CPU `eval` held core 7 and the load average was 4.03 at open and 5.08 at close 22 (`open.json`, `close.json`), so the timings are non-quiet. Not QUALIFIED. 23 24 ## Setup 25 26 - Binaries (`build.txt`): product C `6a4c97a1`…, mutant s `4fef03af`…, mutant p `0746a333`…, omc 27 `2c824805`… (omega-mv `e5b32567`). After the window the committed tree was rebuilt and gave the same 28 three sha256s. 29 - Timing base A `e50ccfa3`… is a scratch build with only the one-warp softmax; it is in no commit and 30 is used only for the `t200` comparison. 31 - `prereg.txt` was written before the window opened; `prereg.sha256` holds its hash and that of 32 `run.sh`. In the committed `run.sh`, `win-c1-chk1.txt` and `open.json` the home prefix is replaced 33 by `~/`, so the committed `run.sh` hashes to `6e7d4873`… instead of the registered `95d2d7b7`…; 34 nothing else differs. `prereg.txt` is unchanged (`80dde8a7`…). 35 - Checkpoints: `gc2-small` uses the small-shape checkpoint, `gc2-max` rung 5's `ckb8`, `ga-max` 36 rung 5's `ck250`, `ge-max-9000` rung 5's `ck9000`, `ge-max-30000` rung 6's `ck30000`, `t200` a fresh 37 copy of rung 6's `ck9000` per binary. 38 39 ## Results 40 41 | prediction (`prereg.txt`) | receipt | result | 42 |---|---|---| 43 | C `gcmp2` small, 3 steps, rc 0 | `gc2-small-s3-C.txt` GCMP2 PASS rc=0 | PASS | 44 | C `gcmp2` max, 7 steps, rc 0 | `gc2-max-s7-C.txt` GCMP2 PASS rc=0 | PASS | 45 | C `gacmp` max rc 0 | `ga-max-C.txt` GACMP PASS rc=0 | PASS | 46 | mutant s FAIL rc 47 at small and max | `gc2-small-s3-CS.txt`, `gc2-max-s7-CS.txt` GCMP2 FAIL rc=47 | PASS (caught) | 47 | mutant p FAIL rc 47 at max; small reported only | `gc2-max-s7-CP.txt` rc=47; `gc2-small-s3-CP.txt` also rc=47 | PASS (caught at both) | 48 | C `geval` of rung 5 `ck9000` = E 9000 2243 `1445466` 539226 | `ge-max-9000-C.txt` | PASS (identical) | 49 | C `geval` of rung 6 `ck30000` = E 30000 2243 `1338156` 499194 | `ge-max-30000-C.txt` | PASS (identical) | 50 | `gprof` C, report only | `prof-C.txt` rc=0, 383 GP lines | reported | 51 | `t200` A and C both rc 0 before any speed claim | `t200-A.txt`, `t200-C.txt` rc=0 | PASS | 52 53 ## Speed (non-quiet) 54 55 `t200` runs 200 `gtrainf` steps (9000→9200) from rung 6's `ck9000`, including process start and the 56 checkpoint load and save. 57 58 | binary | wall | GPU wait (GT field 9) | launches | wait per launch | 59 |---|---|---|---|---| 60 | A, softmax only | 56.862 s | 52.498 s | 57400 | 0.9146 ms | 61 | C, this tree | 48.108 s | 44.271 s | 63800 | 0.6939 ms | 62 63 C is 1.1820× faster than A in wall time and 1.1858× in GPU wait (WolframLanguageEvaluator: 64 56.862/48.108, 52.`497924775`/44.`271395857`); the wait is 92.02% of C's wall. Split-K adds 32 launches 65 per step (287 → 319) and still lowers the total wait. The losses differ (A T 9200 `1508278`, C T 9200 66 `1507707`) because split-K sums the weight gradients in a different order; both are within `gcmp2`'s 67 tolerances against the CPU model. 68 69 `prof-C.txt` attributes 146.07 ms of the profiled step's GPU wait to the GEMMs (ids 0-7) and 86.79 ms 70 to the row kernels (ids 9-24), 232.85 ms in all. `../gpu-k2/` retiles the GEMMs.