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 / amd-qwen38-native-20261113 / README.md

156 lines · 8637 bytes Raw Blame History Rendered
1# Native Omega Qwen3.8-27B on AMD, 2026-11-13
2
3The Omega executable runs the real Qwen3.8-27B-FP8 checkpoint on the AMD
4MI300X notebook through its own KFD/AQL path. Its process uses no HIP, ROCr,
5Torch or Python. Those libraries appear only in the independent external
6verification instruments preserved under `oracle/`.
7
8This is a command-line executor for trusted model plans, not an HTTP serving
9release. This receipt qualifies execution and records the comparison. Publication,
10review and landing authority belong to the separate release receipt.
11
12## What ran
13
14- Model: `Qwen/Qwen3.8-27B-FP8`, revision
15 `017b9c7af6b5689d5dd426a76e0bc077eb5ca20a`.
16- Native executable SHA-256:
17 `dd626fcdf6c405e988499f728eb791a5c12f1ca9fec97d9ca7dc9ead2a19facf`.
18- Compiler: Omega source `64d6db3bb8a0c6b4a4f5334b75191abf77c66ab9`,
19 seeded executable SHA-256
20 `26540e6de62402d5784b30b24d7c6faae488137c1f8a4b3e784fd0b5d5528991`.
21- The card package identifies launcher commit `069fe4e8`, expanded to
22 `069fe4e84a62d51b2456c65a26ce1720b02892fd`. A fresh checkout of
23 `a5f95dd1cf671ce23b7c2ad940268063850e0854` rebuilt the identical executable
24 and every one of the 18 card-tested code objects. That head also contains the
25 kernel scheduling regression gate. `host/qualification.json` records its gates.
26- The coding fixture generated all 24 reference IDs exactly; its altered-weight
27 control was caught. Both ran 47 model steps on this executable.
28- The longer fixture used the archived Spark lighthouse request: 30 prompt IDs,
29 256 generated IDs and capacity 131072. Each request ran 285 model steps,
30 with 1126 dispatches per step. All five accepted requests matched the
31 independent AMD HIP graph's 256 IDs. The altered-weight control was caught.
32
33The 131072 capacity establishes allocation and dispatch at that configured
34capacity. It does not establish long-prompt correctness or retrieval quality.
35
36## Timing and memory
37
38The five accepted native decode medians were 26.828, 26.794, 26.744, 26.745 and
3926.751 ms. The warmup, 26.872 ms, is retained and excluded. `calculate.py` reads
40these measurements and produces `calculations.json`.
41
42| Measurement | Native AMD, November 13 | Archived Spark, November 1 |
43|---|---:|---:|
44| Median decode step / server-reported graph time | 26.751 ms | 125.4 ms |
45| Prefill | 782.266 ms | 507 ms |
46| Process/engine ready | 19.3847 s | 48.0411 s |
47| Process start to first generated ID / streaming first visible content | 20.1669 s | 0.4900 s |
48| New process total / already-running server request | 27.0980 s | 32.7968 s |
49| Sampled peak device VRAM | 37,555,696 KiB | Not separately reported |
50| Sampled peak GTT | 183,860 KiB | Not separately reported |
51| Sampled peak process RSS | 3,312 KiB | 38.55 GB |
52
53The decode-time ratio is 125.4 / 26.751 = **4.6877**. The reciprocal of the
54native median step is 37.3818 tokens/s; this is a derived decode statistic, not
55measured HTTP throughput. AMD prefill is slower in this implementation.
56
57The timing boundaries matter:
58
59- Native step time includes packet publication and completion waiting on the
60 host monotonic clock. Prefill is token by token. Decode excludes prompt steps.
61- Every native trial starts a new process. The weights are already downloaded,
62 and the filesystem cache is warm. Allocation, loading and template construction
63 are excluded from per-step time and included in process timings.
64- The Spark figures are an archived server qualification, not a new paired run.
65 Its first visible content and request timings describe an already-running HTTP
66 server. They are different boundaries from native process timings. The startup
67 and request rows above are descriptive, not controlled speedup claims.
68- AMD memory was sampled every 100 ms from the native process and DRM fdinfo.
69 Spark uses unified memory; its process RSS and AMD's separate VRAM/GTT/RSS
70 counters are different accounting. No memory-saving ratio is established.
71- Diagnostic processes exited before the five native trials. This harness does
72 not establish exclusive access to the provider's entire physical host.
73
74The baseline is the canonical Core Radicle repository
75`rad:z44GqrPVAPjZkhoD2MWVjqy18ighN`,
76`docs/qwen38/qualification-20261101/README.md`, last changed at
77`5c95594a923de32a833e85512d677dba0b213110`.
78`spark-baseline/qualification.json` pins the source blob and source content hash.
79The exact request, response and input-u32 bytes are preserved beside it.
80
81## Numerical comparison
82
83The coding fixture has exact 24/24 reference agreement. The longer free-running
84AMD trajectory first differs from the archived Spark trajectory at generated
85index 109, using zero-based indexing. Both native and HIP graph produce the
86same complete 256-ID trajectory on AMD.
87
88Teacher-forcing the entire Spark trajectory into the AMD graph isolates two
89choices where AMD's highest score differs from Spark's saved choice:
90
91| Generated index | Spark choice rank on AMD, zero based | AMD top-1 minus Spark logit |
92|---|---:|---:|
93| 109 | 1 | 0.1898 |
94| 138 | 1 | 0.0101 |
95
96The independent AMD library implementation first differs from Spark at index
9729, where its top two choices are only 0.125 logit apart. At the same prefix,
98the AMD Omega graph agrees with Spark, with a 0.1057-logit margin.
99
100These observations are consistent with close choices changing under different
101numerical implementations. They do not establish bitwise cross-engine agreement,
102model-quality equivalence, or an error bound for every layer. Position-wise
103agreement after a free-running divergence is not treated as a quality metric,
104because the subsequent contexts differ. The unchanged Spark IDs remain in the
105fixture; the native benchmark separately requires exact independent AMD graph
106agreement and reports Spark divergence. No golden output was silently replaced.
107
108## Reproduction
109
110Build the launcher with the compiler pinned in
111`backend/amd/kfd/launch/COMPILER`, following that directory's README. The
112launcher gate checks its compiler digest and rebuilds the code objects. The
113host gates and their exact build head are recorded under `host/`.
114
115The scripts in `oracle/` are portable copies of external measuring instruments.
116Only the repository license header was prepended; `oracle/ORIGINAL_SCRIPTS.json`
117records the original hashes and the exact prefix, so the original bytes can be
118verified by removing that prefix. No measuring algorithm was changed. They are
119not imported by, linked into, or required at runtime by the native executable.
120They require Torch and safetensors to record/check a model plan on the CPU.
121`driver-real2.py` pins the checkpoint files and contains the independent HIP
122loader/reference. Its `prepare()` function downloads and verifies those files.
123Use a separate process for each GPU diagnostic.
124
125From this receipt directory, with the checkpoint files in `$WEIGHTS`:
126
127```sh
128mkdir out
129python3 oracle/emit-plan.py oracle/driver-real2.py "$WEIGHTS" out/real2.plan --capacity=131072 --fixture-json=oracle/lighthouse256.json
130python3 oracle/check-plan.py out/real2.plan "$WEIGHTS"
131python3 oracle/emit-plan.py oracle/driver-real2.py "$WEIGHTS" out/real2-controls.plan --controls --capacity=131072 --fixture-json=oracle/lighthouse256.json
132python3 oracle/check-plan.py out/real2-controls.plan "$WEIGHTS"
133```
134
135The emitter writes the code objects and an argument list in each `.plan.cmd`.
136The launcher arguments are the plan, its code objects in sorted manifest order,
137and the checkpoint files in sidecar order. Normal lighthouse plan SHA-256:
138`2a292dadc236f224005ed4e2d8ac2ba8b33dc71d79dabcc8497d177561f9c012`.
139Control plan SHA-256:
140`40701b9a81ef55c3dc92620df801d595cd1a10360ae047e14e76de37e279228e`.
141The 70 MB of generated plans and the checkpoint weights are not stored here.
142
143`oracle/lighthouse-oracle.py` documents the graph, forced-token and library
144commands. `oracle/benchmark-qualified.py` preserves the exact native timing
145instrument used for the five trials, including its source-manifest verification,
146285-step/output checks, timeout, control and separate AMD/Spark comparisons.
147`native/candidate.json` is the original card package metadata, not a landing
148receipt. `native/runner.stdout` and per-request stdout retain the actual token
149IDs and timings. `coding24/` retains the final executable's original fixture
150check and its control. `numerical/` contains all three numerical diagnostics.
151
152Run `python3 verify.py` to verify artifact hashes, raw native steps and IDs,
153independent graph agreement, the coding fixture and the calculation output.
154
155Measurement data is CC0-1.0. Source and documentation retain the repository
156license, Apache-2.0 WITH LLVM-exception.