feat: add fused moe config for Qwen3-Next-80B-A3B-Instruct on B200#10631
Conversation
Summary of ChangesHello @zixuanzhang226, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces an optimized configuration for the Qwen3-Next-80B-A3B-Instruct large language model, leveraging a fused Mixture-of-Experts architecture on NVIDIA B200 hardware. The primary goal is to boost inference performance, which has been successfully validated through comprehensive benchmarking, showing improved efficiency and responsiveness. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a new fused MoE configuration for the Qwen3-Next-80B-A3B-Instruct model running on NVIDIA B200 GPUs. The change consists of adding a single JSON file with tuned Triton kernel parameters for various batch sizes. The benchmark results provided in the description clearly demonstrate a performance improvement with this new configuration. The implementation is straightforward and correct. This is a valuable addition for optimizing performance on newer hardware.
|
Did you tune this on the sglang b200 using a script, or did you copy and paste it? Please paste the gsm8k result. |
I tuned it using benchmark/kernels/fused_moe_triton/tuning_fused_moe_triton.py, and the gsm8k result screenshot was included in the PR description already. Thanks! |
* origin/qwen3: (30 commits) chore: bump sgl-kernel 0.3.11 (sgl-project#10630) feat: add fused moe config for Qwen3-Next-80B-A3B-Instruct on B200 (sgl-project#10631) model support: Sarashina2VisionForCausalLM (sgl-project#10632) [Performance] Qwen3-Next: speed up update_mamba_state_after_mtp_verify by 10x; e2e up to 3.54% faster (sgl-project#10586) [Performance] Qwen3-Next: replace arange to cached query_start_loc_li… (sgl-project#10553) [Feature] Speculative decoding support lookahead (sgl-project#9873) refactor: use registry for _get_attention_backend_from_str (sgl-project#10629) [router] refactor worker to builder pattern 1/n (sgl-project#10628) Garbage collector regression in the online server (sgl-project#10621) feat: Add FlexAttention Backend for Efficient Sparse Attention (sgl-project#9947) Fix bias handling in TritonMoeQuantInfo within quantization/mxfp4.py (sgl-project#10579) [Performance] qwen3-next improve causal conv1d in prefill phase (sgl-project#10595) Fix sgl_kernel import failure on devices other than CUDA (sgl-project#10610) support qwen3-next-fp8 deepep (sgl-project#10622) update deepep version for qwen3-next deepep moe (sgl-project#10624) Feat/add heartbeat mechanism for nixl conn (sgl-project#10222) [RL] Add destroy process group api (sgl-project#9979) fix deepep assert when PD disaggregation == null (sgl-project#8274) Scale kkt after reduction (sgl-project#10604) [improvement] add average input/output token length for hicache benchmark stats output (sgl-project#10525) ...
Motivation
Add fused MoE config for Qwen3-Next-80B-A3B-Instruct on NVIDIA B200
Accuracy Tests
With config:


Without config:
Benchmarking
With config:
Without config:
Checklist