tune: add TP2 MXFP4 fused-MoE configs for Qwen3.5-397B - #3859
Merged
Conversation
Add inter_dim=512 (TP2) tuned and untuned fused-MoE entries for Qwen3.5-397B MXFP4 on MI355X (gfx950), covering both the unfused (expert=512, topk=10) and shared-expert-fused (expert=513, topk=11) conventions for token buckets 1..32768. Existing TP4 (inter_dim=256) rows are unchanged; new rows are appended.
Contributor
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
|
vgokhale
pushed a commit
that referenced
this pull request
Jun 24, 2026
Add inter_dim=512 (TP2) tuned and untuned fused-MoE entries for Qwen3.5-397B MXFP4 on MI355X (gfx950), covering both the unfused (expert=512, topk=10) and shared-expert-fused (expert=513, topk=11) conventions for token buckets 1..32768. Existing TP4 (inter_dim=256) rows are unchanged; new rows are appended.
8 tasks
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.
Summary
inter_dim=512) MXFP4 fused-MoE tuned configs for Qwen3.5-397B on MI355X (gfx950).expert=512, topk=10and shared-expert-fusedexpert=513, topk=11— for token buckets1 … 32768.inter_dim=256) rows are untouched; only new rows are appended toqwen3_5_397b_fp4_{untuned,tuned}_fmoe.csv.Details
The shipped
qwen3_5_397b_fp4fused-MoE configs only contained TP4 geometry (inter_dim=256). Serving Qwen3.5-397B at TP2 usesinter_dim=512, so per-shape lookups missed and fell back to untuned kernel selection.This PR adds the TP2 shapes and their tuned kernels:
qwen3_5_397b_fp4_untuned_fmoe.csv): +32 rows —inter_dim=512for both512/10and513/11, tokens1 → 32768. (The 16 existing TP4 rows are kept.)qwen3_5_397b_fp4_tuned_fmoe.csv): +64 rows — the corresponding tuned best kernels, appended verbatim after the existing TP4 entries.Quant/dtype is unchanged MXFP4:
torch.float4_e2m1fn_x2weights/activations,QuantType.per_1x32,ActivationType.Silu,model_dim=4096.Generated with the in-tree tuner:
All 32 shapes tuned successfully (0 failed shapes; tuner error tolerance
errRatio=0.05).Tuned MoE latency (TP2, unfused
512/10, best kernel per token)The
flydslDSL kernels win across the small/medium token range;ck2stagestakes over at the largest bucket (32768).Accuracy
No accuracy impact — this PR only adds kernel-selection metadata. Each tuned kernel is validated by the tuner against the reference within
errRatio=0.05; numerical behavior of the served model is unchanged.Notes