Repository navigation
[Config] [Perf] Tune DSV4 EP48 top-k 6 prefill shapes - #5459
Merged
Merged
Conversation
Signed-off-by: yihonglie <[email protected]>
Contributor
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
PR title tags & labels: |
This was referenced Sep 11, 2026
valarLip
approved these changes
Sep 11, 2026
2 of 4 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.
What
Add tuned FMoE entries for the large prefill buckets used by DeepSeek-V4-Pro with 8-way expert parallelism on MI355X:
gfx950, M=32768, model_dim=7168, inter_dim=3072, experts=48, topk=6gfx950, M=131072, model_dim=7168, inter_dim=3072, experts=48, topk=6Both entries select:
flydsl_moe1_afp8_wfp4_bf16_t128x256x256_w2_bnt0_gui_fp8flydsl_moe2_afp8_wfp4_bf16_t64x128x256_atomicThe runtime shape comes from DeepSeek-V4-Pro DPA8/EP8 after RCCL gathers each rank's routed tokens. ROCm/ATOM#2190 restores AITER's EP sentinel convention so the runtime lookup uses the real top-k=6 key instead of falling back through top-k=5.
Validation
Tested with AITER
38c6bb5fcb17243ca70195541a437cf1ac66d7e7and ATOM1c5a3bc49d85cee9684cb1b2555d9856c021e3eaon 8x MI355X.Production-path kernel A/B
Median of three runs:
The tuner-selected layout-stage2 alternative was also tested and rejected because it regressed production-path latency by 2.34% and 0.72%, respectively.
One-hour C64 AgentX A/B
Identical workload and server parameters: 8x MI355X, TP8/EP8, DP attention, RCCL, FP4 experts, FP8 KV, FP4 index cache, MTP=3, no KV offload, real speculative acceptance, random seed 42.
Both 3,600-second runs reached the grace-period cutoff with a small number of in-flight long requests: 14 for the default selection and 11 for the tuned config.
Config checks
git diff --checkpasses