Repository navigation
test(xla): validate Phase 4 families on IREE-CUDA - #3622
Merged
Merged
Conversation
Phase 4 landed the gated delta-rule primitive, Qwen3-Next/Qwen3.5, Kimi-Linear, RWKV7 and RecurrentGemma validated on ROCm gfx1151. This unit runs those gates on the CUDA HAL of the GB10 host and records the result in FINDINGS_ssm.md. All five families pass the structural, token-exact and serve reference-exact gates on CUDA, and no executable-source dump of any production module contains iree_linalg_ext.scatter (0 of 2326 dumped dispatch files across the families). The delta probe passes 11/11 cases in both gate modes, worst max-abs 7.75e-7 against the 5e-5 bar. Uncached compile time per family, the delta lowering table at capacities 256 and 4096, the Kimi probe dimensions and Qwen3.5's CLI/concurrent-server gate are recorded in the new CUDA section. No lowering fix was needed: every Phase 4 graph compiled for the CUDA target unmodified, so the ROCm gates and the registered byte-exact goldens are untouched. The code change is measurement tooling only. delta_lowering_measure.py gains the cuda target, and a dump wrapper, a scatter summary and a gate driver make the evidence reproducible. Logs, per-module compile timings, scatter summaries, lowered rows, oracles and provenance are committed under spike/openxla/cuda_phase4_reference/.
inureyes
force-pushed
the
test/issue-3357-xla-cuda-phase4
branch
from
December 1, 2026 11:54
40d8de3 to
b806994
Compare
inureyes
force-pushed
the
test/issue-3357-xla-cuda-phase4
branch
from
December 1, 2026 11:59
ff99763 to
f249fa8
Compare
inureyes
marked this pull request as ready for review
December 1, 2026 12:00
26 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validates every Phase 4 family on the IREE CUDA HAL of the GB10 host. All five pass token-exact and serve reference-exact, the delta probe passes both gate modes, and no production dispatch dump contains
iree_linalg_ext.scatter. No lowering fix was needed, so the ROCm gates and the registered goldens are untouched; the code change is measurement tooling only.Results (GB10 sm_121, driver 580.178.04, IREE 3.12.0rc20260721, base
fc4a1a2be)Qwen/Qwen3.5-0.8B@2fc06364fla-hub/rwkv7-0.1B-g1@7450ee04google/recurrentgemma-2b@3620f4cacuda: 11/11 cases in both gate modes, worst max-abs 7.75e-7 against the 5e-5 bar (spike/openxla/cuda_phase4_reference/delta-cuda.log).cudaat capacity 4096: scalar 17.6 s compile, 15.3 MiB transient, 2.32e-6 error; per-channel 22.0 s, 107.2 MiB, 8.34e-7. The 64-step substitution compiles in line with llvm-cpu (22.0 to 24.6 s), so the risk the issue flagged does not materialize.kdaprefill 3.58e-7 (both),kimi_prodprefill 2.83e-7 CUDA vs 2.68e-7 hip, decode 1.19e-7.result.jsonpassed: true).verify-env-var-docs,verify-used-by,verify-versions,verify-kernel-dtype-keys: pass.What changed
spike/openxla/delta_lowering_measure.py:cudatarget and device mapping, additive to the existingllvm-cpu/rocmpaths.spike/openxla/iree_dump_wrapper.sh,spike/openxla/scatter_summary.py,spike/openxla/cuda_phase4_gates.sh: the uncached-compile dump procedure, the per-module scatter audit and the driver that produced the table above.spike/openxla/FINDINGS_ssm.md: CUDA section with the observed numbers and provenance.spike/openxla/cuda_phase4_reference/: validate_arch logs, compile timings, scatter summaries, delta probe and lowering rows, the recorded RecurrentGemma fp32 oracle, andprovenance.json.Test plan
scripts/xla/validate_arch.sh --device cuda --batch 4 --requests 8 --maxcap 24undergpu-lock, fresh cache and dump wrapperspike/openxla/delta_gate.sh <out> cuda(11/11)delta_lowering_measure.py --targets cuda --devices cudacudaCloses #3357