Repository navigation
Description
Summary
On the NVIDIA GB10 (DGX Spark) CUDA backend, a cluster of Qwen Mixture-of-Experts models that benchmarked cleanly under mlxcel 0.1.0 (2026-05-28) now fail warmup (FAIL:bench, a non-OOM bench failure) under 0.3.0. The failures are specific to the qwen2_moe / qwen3_moe fused-MoE decode path; other MoE families are unaffected. Apple Silicon (Metal) is not affected: these models pass on M1 Ultra / M5 Max at 0.2.1.
Affected models (regression: passed at 0.1.0, fail at 0.3.0)
| Model | 0.1.0 decode (tok/s) | 0.3.0 |
|---|---|---|
| qwen3-moe-4bit (Qwen3-30B-A3B) | 57.49 | FAIL:bench |
| qwen3-30b-a3b-4bit | 53.55 | FAIL:bench |
| qwen3.5-35b-a3b-4bit | 48.71 | FAIL:bench |
| qwen1.5-moe-a2.7b-4bit | 112.09 | FAIL:bench |
The new qwen3.6-35b-a3b-4bit also fails the same way (no 0.1.0 baseline to compare).
Unaffected MoE at 0.3.0 (for scoping)
gpt-oss-120b-4bit (50.72), gpt-oss-20b-mxfp4 (78.50), mixtral-8x7b-4bit (27.59), deepseek-v2-lite-4bit (100.38), phi-3.5-moe-4bit (50.44), minimax-m2-3bit (22.46), llama-4-scout-17b-4bit (20.99), and the VL MoE qwen3-vl-30b-a3b-4bit (57.06) all pass at GPU speed.
Suspected cause
The 0.1.0 -> 0.3.0 window includes the fused decode-MoE kernel work. #308 ("perf(moe): wire qwen2_moe to the fused decode-MoE kernel") wired qwen2_moe to that kernel, and the failure cluster lines up exactly with the qwen2_moe / qwen3_moe path on the CUDA backend. The fused decode-MoE CUDA kernel path is the first place to look.
Environment
- Hardware: NVIDIA GB10 (DGX Spark), 122 GB unified LPDDR5x, CUDA 13.0, SM 12.1
- mlxcel 0.3.0, MLX pin
a6ec7123 - Build:
MLX_CUDA_ARCHITECTURES=121 cargo build --release --features cuda
Reproduce
./scripts/bench_decode.sh models/qwen3-moe-4bit
# or directly:
./target/release/mlxcel-bench-decode -m models/qwen3-moe-4bit -p "Hello" -n 20 --warmup-tokens 5
Symptom: warmup/bench failure (non-zero exit, not OOM). The same invocation succeeds for unaffected MoE models such as gpt-oss-120b-4bit.
References
- Benchmark data:
benchmarks/cuda_gb10_2026-06-16.csv - Doc:
docs/benchmark_results/model_tests_gb10.md(see the "MoE decode regression vs 0.1.0" section)
Activity
inureyes commentedon Jun 16, 2026
Resolution direction
The fused decode-MoE wiring for the remaining MoE families is still in progress (#307), so the expected path is that these models get covered as that work lands and is validated on CUDA. No separate fix is needed if the
qwen2_moe/qwen3_moewiring is completed and correct on the CUDA backend.If the fused path turns out to be blocking or risky on CUDA, the clean mitigation is to fall back to the pre-fused (legacy) decode-MoE path on CUDA for the affected architectures. mlxcel already falls back this way for some model types depending on the architecture, so the mechanism exists; it just needs to cover the
qwen2_moe/qwen3_moe(andgemma-4-26b-a4b) cases on CUDA until the fused path is correct for them.So: continue with #307; if it blocks, gate the fused decode-MoE path off on CUDA for these architectures and fall back to the legacy path, then re-enable per architecture as the fused path is validated.
perf(moe): implement the fused decode-MoE kernel on CUDA
perf(moe): implement the fused decode-MoE kernel on CUDA (#319)
perf(moe): implement the fused decode-MoE kernel on CUDA (lablup#319)