[Kernel][Perf] Tune fused_moe FP8 config for Qwen3-Next-80B tp=4 on H100 (+25% at batch 96-512)#44830
Merged
Merged
Conversation
Signed-off-by: Qiuyang Yue <yueqiuyang1389@gmail.com>
ZJY0516
approved these changes
Jun 9, 2026
ekagra-ranjan
pushed a commit
to ekagra-ranjan/vllm
that referenced
this pull request
Jun 9, 2026
…100 (+25% at batch 96-512) (vllm-project#44830) Signed-off-by: Qiuyang Yue <yueqiuyang1389@gmail.com> Signed-off-by: Ekagra Ranjan <3116519+ekagra-ranjan@users.noreply.github.com>
waqahmed-amd-fi
pushed a commit
to waqahmed-amd-fi/vllm
that referenced
this pull request
Jun 10, 2026
…100 (+25% at batch 96-512) (vllm-project#44830) Signed-off-by: Qiuyang Yue <yueqiuyang1389@gmail.com> Signed-off-by: Waqar Ahmed <waqar.ahmed@amd.com>
Saddss
pushed a commit
to Saddss/vllm
that referenced
this pull request
Jun 14, 2026
…100 (+25% at batch 96-512) (vllm-project#44830) Signed-off-by: Qiuyang Yue <yueqiuyang1389@gmail.com>
vivek8123
pushed a commit
to odh-on-pz/vllm-upstream
that referenced
this pull request
Jun 18, 2026
…100 (+25% at batch 96-512) (vllm-project#44830) Signed-off-by: Qiuyang Yue <yueqiuyang1389@gmail.com>
divineearthly
pushed a commit
to divineearthly/vllm
that referenced
this pull request
Jun 19, 2026
…100 (+25% at batch 96-512) (vllm-project#44830) Signed-off-by: Qiuyang Yue <yueqiuyang1389@gmail.com> Signed-off-by: divineearthly <divineearthly@gmail.com>
tunglinwood
pushed a commit
to tunglinwood/vllm
that referenced
this pull request
Jun 22, 2026
…100 (+25% at batch 96-512) (vllm-project#44830) Signed-off-by: Qiuyang Yue <yueqiuyang1389@gmail.com>
nkzhenhua
pushed a commit
to nkzhenhua/vllm
that referenced
this pull request
Jun 24, 2026
…100 (+25% at batch 96-512) (vllm-project#44830) Signed-off-by: Qiuyang Yue <yueqiuyang1389@gmail.com>
ohsono
pushed a commit
to ohsono/vllm
that referenced
this pull request
Jul 3, 2026
…100 (+25% at batch 96-512) (vllm-project#44830) Signed-off-by: Qiuyang Yue <yueqiuyang1389@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Add a tuned Triton fused_moe config for
Qwen/Qwen3-Next-80B-A3B-Instruct-FP8on a single NVIDIA H100 80GB HBM3 with tp=4 and FP8 w8a8 blockwise quantization (block_shape=[128, 128])Qwen3-Next-80B has
num_experts=512,num_experts_per_tok=10,moe_intermediate_size=512. With tp=4 this gives the kernel shapeE=512, N=128. The currentget_default_configinfused_moe.pyis ~25% slower than the tuned configuration for the batch_size range that dominates production servingThe file contains 5 batch-size keys (
96, 128, 256, 512, 1024) for which the tuned config beats the default by >=5%. Other batch sizes fall back toget_default_configvia the existing vllm fallback pathTest plan
Tuned with
benchmark_moe.py --tuneon a single H100 80GB HBM3 (precompiled vLLM cu128 + torch 2.11.0+cu128 + triton 3.6.0)Test Result
Tuning walked 10,368 valid configurations across 18 batch sizes (
{1,2,4,8,16,24,32,48,64,96,128,256,512,1024,1536,2048,3072,4096}), total wall time 77 minutes.After tuning, the file was copied into the configs/ directory and the benchmark re-run for all 18 batch sizes. Per-batch-size median kernel time:
The JSON ships only the bolded 5 keys (
96, 128, 256, 512, 1024). Batch sizes outside this range fall back toget_default_config, which my benchmark shows is within 1% of the tuned configThe wins on the kept keys are primarily driven by
GROUP_SIZE_M=64(vsget_default_config,GROUP_SIZE_M=32), which gives a more L2-cache friendly tile traversal order forE=512, N=128, FP8workloadThe closest H100 PR is #35808 (
E=256,N=512on H100), which is in different shape. Recent tuned-config PRs #44273 / #44152 / #44553 all target H20, not H100. No open or merged PR addressesE=512,N=128FP8 blockwise on H100.Reproduction commands