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 Source

Native Omega Qwen3.8-27B on AMD, 2026-11-13

The Omega executable runs the real Qwen3.8-27B-FP8 checkpoint on the AMD MI300X notebook through its own KFD/AQL path. Its process uses no HIP, ROCr, Torch or Python. Those libraries appear only in the independent external verification instruments preserved under oracle/.

This is a command-line executor for trusted model plans, not an HTTP serving release. This receipt qualifies execution and records the comparison. Publication, review and landing authority belong to the separate release receipt.

What ran

The 131072 capacity establishes allocation and dispatch at that configured capacity. It does not establish long-prompt correctness or retrieval quality.

Timing and memory

The five accepted native decode medians were 26.828, 26.794, 26.744, 26.745 and 26.751 ms. The warmup, 26.872 ms, is retained and excluded. calculate.py reads these measurements and produces calculations.json.

MeasurementNative AMD, November 13Archived Spark, November 1
Median decode step / server-reported graph time26.751 ms125.4 ms
Prefill782.266 ms507 ms
Process/engine ready19.3847 s48.0411 s
Process start to first generated ID / streaming first visible content20.1669 s0.4900 s
New process total / already-running server request27.0980 s32.7968 s
Sampled peak device VRAM37,555,696 KiBNot separately reported
Sampled peak GTT183,860 KiBNot separately reported
Sampled peak process RSS3,312 KiB38.55 GB

The decode-time ratio is 125.4 / 26.751 = 4.6877. The reciprocal of the native median step is 37.3818 tokens/s; this is a derived decode statistic, not measured HTTP throughput. AMD prefill is slower in this implementation.

The timing boundaries matter:

The baseline is the canonical Core Radicle repository rad:z44GqrPVAPjZkhoD2MWVjqy18ighN, docs/qwen38/qualification-20261101/README.md, last changed at 5c95594a923de32a833e85512d677dba0b213110. spark-baseline/qualification.json pins the source blob and source content hash. The exact request, response and input-u32 bytes are preserved beside it.

Numerical comparison

The coding fixture has exact 24/24 reference agreement. The longer free-running AMD trajectory first differs from the archived Spark trajectory at generated index 109, using zero-based indexing. Both native and HIP graph produce the same complete 256-ID trajectory on AMD.

Teacher-forcing the entire Spark trajectory into the AMD graph isolates two choices where AMD's highest score differs from Spark's saved choice:

Generated indexSpark choice rank on AMD, zero basedAMD top-1 minus Spark logit
10910.1898
13810.0101

The independent AMD library implementation first differs from Spark at index 29, where its top two choices are only 0.125 logit apart. At the same prefix, the AMD Omega graph agrees with Spark, with a 0.1057-logit margin.

These observations are consistent with close choices changing under different numerical implementations. They do not establish bitwise cross-engine agreement, model-quality equivalence, or an error bound for every layer. Position-wise agreement after a free-running divergence is not treated as a quality metric, because the subsequent contexts differ. The unchanged Spark IDs remain in the fixture; the native benchmark separately requires exact independent AMD graph agreement and reports Spark divergence. No golden output was silently replaced.

Reproduction

Build the launcher with the compiler pinned in backend/amd/kfd/launch/COMPILER, following that directory's README. The launcher gate checks its compiler digest and rebuilds the code objects. The host gates and their exact build head are recorded under host/.

The scripts in oracle/ are portable copies of external measuring instruments. Only the repository license header was prepended; oracle/ORIGINAL_SCRIPTS.json records the original hashes and the exact prefix, so the original bytes can be verified by removing that prefix. No measuring algorithm was changed. They are not imported by, linked into, or required at runtime by the native executable. They require Torch and safetensors to record/check a model plan on the CPU. driver-real2.py pins the checkpoint files and contains the independent HIP loader/reference. Its prepare() function downloads and verifies those files. Use a separate process for each GPU diagnostic.

From this receipt directory, with the checkpoint files in $WEIGHTS:

mkdir out
python3 oracle/emit-plan.py oracle/driver-real2.py "$WEIGHTS" out/real2.plan --capacity=131072 --fixture-json=oracle/lighthouse256.json
python3 oracle/check-plan.py out/real2.plan "$WEIGHTS"
python3 oracle/emit-plan.py oracle/driver-real2.py "$WEIGHTS" out/real2-controls.plan --controls --capacity=131072 --fixture-json=oracle/lighthouse256.json
python3 oracle/check-plan.py out/real2-controls.plan "$WEIGHTS"

The emitter writes the code objects and an argument list in each .plan.cmd. The launcher arguments are the plan, its code objects in sorted manifest order, and the checkpoint files in sidecar order. Normal lighthouse plan SHA-256: 2a292dadc236f224005ed4e2d8ac2ba8b33dc71d79dabcc8497d177561f9c012. Control plan SHA-256: 40701b9a81ef55c3dc92620df801d595cd1a10360ae047e14e76de37e279228e. The 70 MB of generated plans and the checkpoint weights are not stored here.

oracle/lighthouse-oracle.py documents the graph, forced-token and library commands. oracle/benchmark-qualified.py preserves the exact native timing instrument used for the five trials, including its source-manifest verification, 285-step/output checks, timeout, control and separate AMD/Spark comparisons. native/candidate.json is the original card package metadata, not a landing receipt. native/runner.stdout and per-request stdout retain the actual token IDs and timings. coding24/ retains the final executable's original fixture check and its control. numerical/ contains all three numerical diagnostics.

Run python3 verify.py to verify artifact hashes, raw native steps and IDs, independent graph agreement, the coding fixture and the calculation output.

Measurement data is CC0-1.0. Source and documentation retain the repository license, Apache-2.0 WITH LLVM-exception.