test(xla): validate Phase 4 families on IREE-CUDA (GB10)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 6/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- testing-qa
Hướng nghiên cứu
This is a validation gate spanning five blocked dependency issues on a GB10 CUDA host. Start by reading spike/openxla/SSM_HYBRID_DESIGN.md and examples/xla_ssm_probe.rs, then run the delta probe against spike/openxla/delta_oracle.py. Done means the delta probe is within 5e-5 on cuda in both modes and validate_arch.sh exits 0 for the listed models, with no iree_linalg_ext.scatter in CUDA dispatch dumps.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Part of #564
Problem / Background
Epic #564 brings SSM / hybrid / recurrent architectures to the OpenXLA/IREE backend. Design record: spike/openxla/SSM_HYBRID_DESIGN.md (written 2026-07-01; most symbol locations it cites have moved, use the ones in this issue, which were re-located on main at 56bfb92a, and re-verify them before editing). The Stage 2a spike-first pattern this follows is in spike/openxla/STAGE2_DESIGN.md and spike/openxla/FINDINGS_phase2a.md.
Phase 4 lands the delta-rule primitive (#3352), Qwen3-Next / Qwen3.5 (#3353), Kimi-Linear (#3354), RWKV7 (#3355), and RecurrentGemma (#3356), all validated on ROCm gfx1151. IREE-CUDA on GB10 is a separate lowering target.
Goal
Every Phase 4 gate that passes on hip passes on cuda.
Scope
- Delta-rule probe first (
examples/xla_ssm_probe.rs --kernel delta --device cudaagainstspike/openxla/delta_oracle.py, both gate modes), then per family the same gates as its issue on--device cuda, with the same checkpoints and oracles (MLX eager oracle for Kimi-Linear and RWKV7; RecurrentGemma only if its licence is accepted). - Lowering fixes land in this PR and must keep the ROCm gates green.
- CUDA section in
spike/openxla/FINDINGS_ssm.md(compile times, tok/s at B=1/4).
Acceptance Criteria
- Delta probe within 5e-5 on
cuda, both modes. -
gpu-lock run --tag xla-ssm -- scripts/xla/validate_arch.sh --model <dir> --device cuda --batch 4 --requests 8 --maxcap 24 [--oracle <json>]exits 0 for Qwen3.5-0.8B, RWKV7 0.1B, and RecurrentGemma-2B (when available); synthetic Qwen3-Next and Kimi-Linear token-exact and reference-exact. - No
iree_linalg_ext.scatterin any CUDA dispatch dump.
Host and environment
Host: GB10 (sm_121, nvidia-smi reports NVIDIA GB10) only. gpu-lock is required for every command that allocates GPU memory (compiles that run on device, oracle checks, benches, CLI, server); if gpu-lock is missing, stop and report it rather than running unguarded. Never bypass the lock; if it is busy, wait or report gpu-lock status.
eval "$(scripts/iree/setup-cuda.sh --env)"
export MLXCEL_XLA_DEVICE=cuda
PY=spike/openxla/.venv/bin/python # or $MLXCEL_ORACLE_PYTHON
gpu-lock run --tag xla-ssm -- cargo build --release --features xla-iree --bin mlxcel --bin mlxcel-server
Dependencies
Blocked by #3352, #3353, #3354, #3355, #3356. State ABI under test: the generic StateTensorSpec list (delta_s [L,Hv,Dk,Dv] + delta_conv, wkv_s + shift_attn + shift_ffn, rglru_h + rglru_conv, all F32) threaded after the optional KV in prefill, held in util.globals for single-sequence decode, and carried at [B, ...] in ragged decode.
Risks
- The 64-step forward substitution may compile slowly on CUDA; record it.
User decisions that apply
- CUDA is a validation unit for GB10 only; lowering fixes land in this PR.
- Downloads are allowed. If
spike/openxla/.venvis missing, create it withuv venv --python 3.12 spike/openxla/.venvand install CPU torch and transformers as pinned inspike/openxla/requirements.lock(torch==2.12.1+cpu from the PyTorch CPU wheel index, transformers==5.12.1). Small HF-format checkpoints go intomodels/hf/<name>; confirm the exact HF repo id on the model page before downloading. Gated-licence models are skipped and reported unless the licence is already accepted on this account. - Families whose HF modeling code cannot run on CPU (Kimi-Linear, RWKV7, and Plamo2 if its remote code needs
mamba_ssm/causal_conv1d) use mlxcel's own MLX eager model as the oracle, following the pattern of thexla-reference-diagnosticsfeature examples (Cargo.toml:125,:570-575): run the MLX model greedily at temperature 0 on the same prompt and record its token ids in theoracle_continuation.pyJSON format soxla_oracle_checkandxla_batch_benchconsume it unchanged.
- Ngôn ngữ chính
- Rust
- Star
- 505
- Fork
- 81
- Merge trung bình
- 14 giờ 2 phút
- Pull request đã merge (30 ngày)
- 448
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của lablup/mlxcel
-
area:core priority:high status:ready type:security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
priority:medium status:ready type:security
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:models modeltype:text priority:medium status:in-progress type:bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 57/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:models priority:low status:ready type:test
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:models modeltype:omni priority:medium status:ready type:bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của lablup/mlxcel
Issue tương tự
-
area:ui effort:medium enhancement P7 source:agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
marketing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Read a requested CodeRabbit PR review's findings with `coderabbit pullrequest --show-threads`Đang mởdocumentation priority: low tech-debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
nledford/Ladderback#1823 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
psmux-resurrect: restoring a session with a numeric name puts its windows into the wrong session (`new-window -t 4` is read as window 4)Có thể đã có người làm @ealwanlee đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
psmux/psmux-plugins#47 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
Maintainer thường phản hồi trong vòng 1 ngày