Skip to content

GB10 CUDA: Qwen fused-MoE models fail warmup at 0.3.0 (regression vs 0.1.0) #313

Closed

Description

@inureyes

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

  1. added
    type:bug
    status:investigation
    priority:high
    area:benchmark
    area:inference
    platform:macos
    and removed
    platform:macos
    on Jun 16, 2026
  2. inureyes commented on Jun 16, 2026

    @inureyes
    MemberAuthor

    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_moe wiring 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 (and gemma-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.

  3. added 2 commits that reference this issue on Jun 17, 2026
    7880e4d
    06a8d09
  4. added this to the 0.3 milestone on Jun 21, 2026
  5. self-assigned this
    on Jun 21, 2026
  6. added
    status:done
    and removed
    status:investigation
    on Sep 6, 2026
  7. added a commit that references this issue on Oct 27, 2026
    a4492e3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:benchmarkarea:inferencepriority:highstatus:donetype:bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions