Skip to content

test(xla): validate Phase 4 families on IREE-CUDA - #3622

Merged
inureyes merged 2 commits into
mainfrom
test/issue-3357-xla-cuda-phase4
Dec 1, 2026
Merged

inureyes merged 2 commits into
mainfrom
test/issue-3357-xla-cuda-phase4

Conversation

@inureyes

@inureyes inureyes commented Dec 1, 2026

Copy link
Copy Markdown
Member

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)

family checkpoint token-exact serve reference-exact B=1 / B=4 tok/s scatter
Qwen3.5 Qwen/Qwen3.5-0.8B @ 2fc06364 PASS PASS 26.5 / 25.1 0 of 642
Qwen3-Next synthetic tiny PASS PASS 453.2 / 476.2 0 of 526
Kimi-Linear synthetic tiny (MLX oracle) PASS PASS 563.6 / 621.0 0 of 474
RWKV7 fla-hub/rwkv7-0.1B-g1 @ 7450ee04 PASS PASS 50.7 / 59.8 0 of 334
RecurrentGemma google/recurrentgemma-2b @ 3620f4ca PASS PASS 10.5 / 8.1 0 of 350
  • Delta probe on cuda: 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).
  • Delta lowering on cuda at 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.
  • Uncached compile times at capacity 256 (prefill / decode / prefill_logits / ragged B=4, s): Qwen3.5 20.6/5.4/21.2/7.1; Qwen3-Next 7.1/2.6/7.1/4.7; Kimi-Linear 16.7/3.5/9.5/4.0; RWKV7 16.8/4.5/17.5/4.6; RecurrentGemma 11.8/8.4/13.8/15.9.
  • Kimi-Linear probe dimensions match hip: kda prefill 3.58e-7 (both), kimi_prod prefill 2.83e-7 CUDA vs 2.68e-7 hip, decode 1.19e-7.
  • RWKV7 synthetic parity on CUDA passes (1 passed, 6.05 s). Qwen3.5 CLI/concurrent-server gate: 40/40 token-exact against the oracle and 8/8 exact-text and token-count (result.json passed: true).
  • Structural byte-exact gate: 10 passed, 0 failed. Contract gates verify-env-var-docs, verify-used-by, verify-versions, verify-kernel-dtype-keys: pass.

What changed

  • spike/openxla/delta_lowering_measure.py: cuda target and device mapping, additive to the existing llvm-cpu/rocm paths.
  • 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, and provenance.json.

Test plan

  • Five families through scripts/xla/validate_arch.sh --device cuda --batch 4 --requests 8 --maxcap 24 under gpu-lock, fresh cache and dump wrapper
  • spike/openxla/delta_gate.sh <out> cuda (11/11)
  • delta_lowering_measure.py --targets cuda --devices cuda
  • RWKV7 synthetic parity and Qwen3.5 CLI/server on cuda
  • Structural gate plus the four contract gates

Closes #3357

@inureyes inureyes added status:review Under review type:test Test related changes priority:low Low priority labels Dec 1, 2026
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
inureyes force-pushed the test/issue-3357-xla-cuda-phase4 branch from 40d8de3 to b806994 Compare December 1, 2026 11:54
@inureyes
inureyes force-pushed the test/issue-3357-xla-cuda-phase4 branch from ff99763 to f249fa8 Compare December 1, 2026 11:59
@inureyes
inureyes marked this pull request as ready for review December 1, 2026 12:00
@inureyes
inureyes merged commit d0ea5e7 into main Dec 1, 2026
36 checks passed
@inureyes
inureyes deleted the test/issue-3357-xla-cuda-phase4 branch December 1, 2026 12:00
@inureyes inureyes added status:done Completed and removed status:review Under review labels Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:low Low priority status:done Completed type:test Test related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(xla): validate Phase 4 families on IREE-CUDA (GB10)

1 participant