Repository navigation
[Fix] [AMD] dsv41: Set moe act to fp8 by default - #45480
Merged
Merged
Conversation
1am9trash
requested review from
Alisehen,
AniZpZ,
BBuf,
Edwardf0t1,
FlamingoPg,
Fridge003,
HaiShaw,
OrangeRedeng,
Ying1123,
b8zhong,
ch-wan,
ispobock,
merrymercy and
mmangkad
as code owners
October 21, 2026 02:31
1am9trash
marked this pull request as draft
October 21, 2026 02:32
1am9trash
marked this pull request as ready for review
October 21, 2026 03:21
HaiShaw
approved these changes
Oct 21, 2026
HaiShaw
reviewed
Oct 21, 2026
HaiShaw
approved these changes
Oct 21, 2026
This was referenced Oct 21, 2026
4 of 5 tasks
Open
5 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.
Motivation
Dsv4.1's moe layers currently run on bf16 activations by default when a batch <= 256 tokens. Setting
AITER_BF16_FP8_MOE_BOUND=0or--monokernel-backend amdswitches them to FP8.InferenceX does not accept changing precision through flags like these, because they also change the precision of the dspark draft layers. (PR#4238)
This PR makes fp8 the default moe activation for V4.1 instead.
Modifications
The aiter moe runner passes
quant_dtype_a=fp8tofused_moeinstead of lettingAITER_BF16_FP8_MOE_BOUNDpick bf16 for small batches.Other models (ex: dsv4) and other platforms are unchanged.
Accuracy Tests
Test with sgl-project/sgl-amd-mono#17.
Server cmd:
GSM8k:
Speed Tests and Profiling
No impact on perf. Same with setting
AITER_BF16_FP8_MOE_BOUND=0before.Checklist
Review and Merge Process
/tag-and-rerun-ci,/tag-run-ci-label,/rerun-failed-ciCI States
Latest PR Test (Base): ⏳ Run #39552505890
Latest PR Test (Extra): ❌ Run #39552505858
Latest PR Test (AMD ROCm 10): ⏳ Run #39552505913