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-bf/fix-pad/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-bf / fix-pad / README.md` 63 lines ยท 3515 bytes Raw Blame History Rendered 1 # fix-pad: gbfrag checks C's padding columns (2026-11-04) 2 3 A review of the bf-g1 gates found that gbfrag's 26 short cases compared only columns 0..n-1 of C. 4 The eight padding columns of each row (row stride n + 8) were not checked, so a store into them 5 would have passed. Only the eight long-K cases (`gblrow`) already checked them. Commit `f5a6941` 6 adds the same check to the short cases (`docs/omegallm/CONTRACT-BF16.md` 4.1): 7 8 - `gbwcr` fills the padding of C with NaN (0x7fc00000) before every case. With epilogue 1 or 2 it 9 also fills the padding of Y or M. 10 - `gbfrow` counts every padding word that is no longer NaN as a mismatch, so it shows in the 11 case's `GF` bad count and in GFS. 12 13 The BF16 dispatch takes only m and n that are multiples of 64 (`gk.om` gktile), so no gbfrag case 14 has a partial tile. The check catches a store outside columns 0..n-1 of its row on a full tile, 15 for example a wrong column offset. 16 17 Status: IMPLEMENTED and built (host). The chip run is NOT_RUN. Nothing in this directory ran on 18 the GPU. 19 20 ## Host receipts 21 22 - `build.txt`: the five gb10 binaries built from `f5a6941`, the control rebuild of the parent 23 `a82fc1a` (equal to `../build-2.txt`), and the kernel-byte identity. 24 - `disasm-identity.txt`: the `gpu-disasm.sh` summary of `f5a6941`. Its SLOT, GPR and SMEM lines 25 equal those of `a82fc1a`, and code_sha256 is unchanged (`f2628fda`...). gpu-code.bin and 26 gpu-gpr.bin compare identical. 27 - `build-n.txt` (`e62a495`): mutant n, the negative control of the padding check, and the six 28 binaries rebuilt at that head. The product hash changes (`05880627`..., source change OMUTN only) 29 and no kernel byte changes. For a chip run of `e62a495` or later, use these hashes, not 30 `build.txt`'s. 31 32 ## Chip run (pending; for the integrator's pre-registered window) 33 34 Build the binaries into one directory B with the command in `build-n.txt` (product, then 35 `--mutant n`, `u`, `l`, `o`, `v`), and check them against the hashes in `build-n.txt`. The input 36 is the same checkpoint as bf-g1: `/tmp/gk/r7/ckb8.bin`, sha256 37 `0a4c382cbd2fdbb9fe6bc6f5e07e59b1012ec738491ce05570fe38a15be854a3` (provenance in `../README.md`). 38 Inside the window, use the same command and timeout as `../g1/run.sh`: 39 40 ```sh 41 CKB8=/tmp/gk/r7/ckb8.bin 42 timeout 900 $B/ollm-gb10 gbfrag $CKB8; echo rc=$? 43 for m in n u l o v; do timeout 900 $B/ollm-mut-$m-gb10 gbfrag $CKB8; echo rc=$?; done 44 ``` 45 46 Expected results: 47 48 | Binary | Expected | 49 |---|---| 50 | ollm-gb10 `05880627`... | `GBFRAG PASS`, `GFS 0`, rc 0, 26 GF lines and 8 GFL lines, all with bad 0 | 51 | ollm-mut-n-gb10 `34595bb0`... | `GBFRAG FAIL`, rc 50; 26 GF lines with bad 1, 8 GFL lines with bad 0, `GFS 26` | 52 | ollm-mut-u-gb10 `922b5693`... | `GBFRAG FAIL`, rc 50 | 53 | ollm-mut-l-gb10 `11fe8a37`... | `GBFRAG FAIL`, rc 50 | 54 | ollm-mut-o-gb10 `d26fbbf1`... | `GBFRAG FAIL`, rc 50 | 55 | ollm-mut-v-gb10 `4e9862e1`... | `GBFRAG FAIL`, rc 50 | 56 57 None of the four planted kernel mutants (u, l, o, v) writes into the padding; they already failed 58 gbfrag in bf-g1 on column values alone. Mutant n is the padding check's negative control (added 59 2026-11-04, `e62a495`). After each short case's launch, and before the comparison, the host writes 60 0.0 into C's first padding word (block 0, row 0, column n). No column 0..n-1 value changes, so 61 each short case's one mismatch can come only from the padding check. The long-K cases are not 62 touched. A product PASS together with mutant n's `GFS 26` shows that the check fires and that no 63 BF16 store reached the padding in these cases. Both are NOT_RUN on the chip.