interplane.Get Omega
Read in your language

CUDApp

CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.

Brought by drakestapleton

branch main Branches Tags History

CUDApp / evidence / model-graphs / 2026-11-06 / README.md

54 lines · 7316 bytes Raw Blame History Rendered
1# ModelGraphsOm receipt, 2026-11-06
2
3## Status and source
4
5Host implementation exercised, not hardware-qualified. Branch `feat/model-graphs-om`, private worktree `~/work/cudastack/lanes/ModelGraphsOm`. Registration commit `9dc1990`; initial implementation `48d895ec5daa0e6e0106000acee4ef9b3c184137`. Source base `b774723f537cec16a359fe082b8100317a5b5490`. CmdList dependency `feat/cmdlist-program-om` at `581c048799f13b5b29a5172031c15889d6067672` (draft CUDApp #304) is stacked by merge commit `dcd78797044203a51e2a414875bfb1aeca879076`. Focused gates were rerun after stacking. No merge to main or deployment.
6
7Pinned compiler: omega-mv e5b32567, omc SHA-256 `2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f`. Portable bindings generated by `om/units.sh`; byte-identical `--check` PASS. No language/compiler/public API or gate contract changed; no harness skill amendment is implied by these internal plans.
8
9## Commands and outcomes
10
11Every test, mutant and build below ran in this device-free wrapper:
12
13```
14bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10 <command>
15```
16
17Within it:
18
19- `env OMEGA_OMC=~/work/cudastack/omega-mv/seed/out/omc OMEGA_BRIDGE=~/work/cudastack/omega-bridge sh om/units.sh`: rc 0. Generated the portable units.
20- `make -j3 CUDAPP_OMC_HOST=1 OMEGA_OMC=~/work/cudastack/omega-mv/seed/out/omc OMEGA_BRIDGE=~/work/cudastack/omega-bridge test-model-graphs-om test-model-graphs-warp`: rc 0. Graph final line `MODEL-GRAPHS mutants PASS killed=5 compiled=5`; warp final line `MODEL-GRAPHS gather warp PASS orders=2 rows=4 source-index-mutant-killed=2`. Log `focused-stacked.log`; home paths normalized to `~`. Includes 150,480 list cases, 40,128 layout cases and 30,096 prefill planning cases.
21- `env OMEGA_OMC=~/work/cudastack/omega-mv/seed/out/omc OMEGA_BRIDGE=~/work/cudastack/omega-bridge sh om/units.sh --check`: rc 0. Final line `PASS portable Omega units regenerate byte for byte`; same log.
22- `crumb compile .` then `crumb verify .`, each separately wrapped: rc 0. Final lines `crumb compile: 41 crumbs, 1 rewritten, HEAD dcd7879` and `crumb verify: OK: 41 crumbs current`.
23- Final combined run: `make -j3 CUDAPP_OMC_HOST=1 OMEGA_OMC=~/work/cudastack/omega-mv/seed/out/omc OMEGA_BRIDGE=~/work/cudastack/omega-bridge test-model-graphs-om test-model-graphs-warp test-model-graphs-nested`: rc 0; complete command/output in `nested.log`. Nested verdict: `MODEL-GRAPHS-NESTED PASS cases=64 real-recorders=GDN,attention,FP8,BF16,GEMM,router old-submissions=1 new-submissions=1 plan-word-flip=KILLED`. Old/new graph builds have separate `build/model-graphs-nested/{old,new,flip}` object directories; unchanged production runtime archive is shared. No recorder is wrapped: only the negative-control Omega descriptor export is wrapped.
24- Final generated check and crumb refresh, each wrapped: `sh om/units.sh --check`, `crumb compile .`, `crumb verify .`: all rc 0; final lines `PASS portable Omega units regenerate byte for byte`, `crumb compile: 41 crumbs, 1 rewritten, HEAD 90ddbaf`, `crumb verify: OK: 41 crumbs current`.
25
26The earlier failed focused attempt is retained in `focused-before-mutant-fix.log` (rc 2, missing mutant generation destination). The runner now creates the destination. A second attempt distinguished a trapped high-shift mutation from unrelated failures by making the independent oracle print an explicit adapter failure diagnostic. Compile failures are never counted as mutant kills.
27
28## Evidence tiers
29
30| Tier | Verdict | Observed result |
31| --- | --- | --- |
32| Independent wire differential | PASS | `MODEL-GRAPHS wire PASS cases=70224 record-flip=CAUGHT` |
33| Real command-list banks/QMD, deterministic nested ABI adapters | PASS | `cases=150480 record-flip=CAUGHT exact-head=covered standalone-glue=covered nested-ABI=deterministic-host-adapters` |
34| Five recompiled Omega wire mutants | PASS | Low address, high shift, epsilon binding, SwiGLU scale, gate length killed; high shift rejected by adapter rc 5 |
35| One-word fake-platform submission probes | PASS | Q36, Q38 and decode, GDN/attention variants: old=1, new=1 per generated word |
36| Actual nested-kernel production-model command-list parity | PASS | 64 host cases, actual GDN/attention/FP8/BF16/GEMM/router recorders; real banks, QMDs and submitted words identical; plan-word flip killed |
37| Layout and complete prefill launch/copy/transfer descriptors | PASS | 40,128 layout cases; 30,096 prefill planning cases; generated debug-copy descriptor checks |
38| Q38 exact-head and standalone glue fixtures | PASS | Included in the 150,480 list differential cases |
39| Focused GATHER warp simulation | PASS | Both warp orders, four rows, source-index mutant rejected in both |
40| Generated bindings byte check | PASS | `PASS portable Omega units regenerate byte for byte` |
41| Integrated full make test | NOT_RUN | Integrator-owned; not started here |
42| Chip, live RM, VFIO, deployment | NOT_RUN | No authorization |
43
44The broad differential generates 10,000 random positions/configurations plus boundaries, reused across scalar, batch, prefill, grouping and native-window modes. It compares entire 1024-byte argument banks and QMD slots, code VAs, waits, independence and state. Its nested ABI adapters isolate graph decisions. The separate nested gate invokes actual production recorders for Q36, Q38 27B/9B and scalar decode at positions 0, 1, 255, 256, 131064 and 131071, GDN/attention, batch/prefill, native MoE windows, combine, optional FP8 final head, BF16 split-down and exact masked final head. Opaque resource layouts come from the production translation units; only memory/weights/state observations and platform/RM are synthetic. This is host recording evidence, not model-output or numerical equivalence.
45
46The differential found and fixed two implementation defects: native-window SwiGLU/permutation argument counts were unset, and decode mutant 4 accidentally selected the combine mutant (only Q36 mutant 4 and decode mutant 2 should do so).
47
48## Remaining scope
49
50Allocation offsets/sizes, debug readback GATHER bindings/dimensions, and standalone residual/SwiGLU selection/packing now live in `layout.om` and `aux.om`, with retained C oracle branches. C retains model shape metadata, object lifetime, admission, actual recorder dispatch, execution and statistics as ABI shell responsibilities.
51
52The nested native MoE window constructs first-party staged rowmap kernels with the actual seeded composer/encoder, exports temporary cubins, snapshots/adopts their real manifests, and prepares real native leases. This host-only artifact path is exercised, not NOT_RUN; no recorder adapter or fabricated admission bypass is used. Cubins are removed after immutable snapshots and are not committed. Synthetic buffers are never kernel-executed. Actual recorded lists and fake-queue submitted words compare byte-for-byte; old and new each submit once per complete generated word. Chip/model-output qualification and the integrated full suite remain NOT_RUN. No compiler/bridge limitation or extension proposal is outstanding for these plans. Hardware procedure: `om/graph/CHIP.md`.
53
54Wolfram queries used for constants: `2^64-256 -> 18446744073709551360`; `{Ceiling[248320/2048],17408/256} -> {122,68}`. These are constant derivations, not measured performance figures.