-
Notifications
You must be signed in to change notification settings - Fork 179
[AMD] improve dsr1 fp4 disagg #1584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
billishyahao
wants to merge
6
commits into
main
Choose a base branch
from
amd/mi355x-dsfp4-may29
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+54
−7
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d93b9c3
[AMD] improve dsr1 fp4 disagg
billishyahao 1739443
add perf changelog
billishyahao 1e5e851
Merge remote-tracking branch 'inf/main' into amd/mi355x-dsfp4-may29
billishyahao bfb242c
fix
billishyahao 9a39f19
fix regression
billishyahao ae39e6b
sync config
billishyahao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 This PR introduces duplicate benchmark sweep points: after bumping the two pre-existing
1*DEP8 + 1*DEP8blocks in the ISL=8192 search-space fromDECODE_MTP_SIZE=1toDECODE_MTP_SIZE=3(lines 2052, 2071), and then adding a new block with conc-list[64, 128]and the same MTP=3 (lines 2073-2090), all three blocks now share byte-identical topology.conc=64andconc=128will each be benchmarked twice on the expensivemi355x-disaggmultinode runner. Fix by either dropping 64 and 128 from the new block, or consolidating the three blocks into a single entry withconc-list: [64, 128, 256, 512].Extended reasoning...
What the bug is
In
.github/configs/amd-master.yaml, underdsr1-fp4-mi355x-sglang-disagg-mtp/scenarios.fixed-seq-len/isl: 8192, the post-PR YAML contains three1*DEP8 + 1*DEP8search-space entries that, after this PR's edits, have byte-identical prefill and decode configuration. The only thing that differs across them is theconc-list:[128, 512]13(bumped by PR)[64, 256]13(bumped by PR)[64, 128]3(added by PR)All three entries are:
spec-decoding: mtp, prefillnum-worker=1 tp=8 ep=8 dp-attn=true PREFILL_NODES=1, decodenum-worker=1 tp=8 ep=8 dp-attn=true DECODE_NODES=1 DECODE_MTP_SIZE=3.Why existing code does not prevent it
The sweep generator (
utils/matrix_logic/generate_sweep_configs.py, multinode branch) emits one matrix entry per search-space entry, passing theconc-listthrough unchanged. There is no cross-entry deduplication step: each(config, conc)pair from each entry becomes a real benchmark run. So overlapping conc values across two configurationally-identical entries produce two real, identical benchmark runs.Step-by-step proof
[128, 512]entry the matrix generator will emit benchmark runs at conc=128 and conc=512.[64, 256]entry it will emit runs at conc=64 and conc=256.[64, 128]entry it will emit runs at conc=64 and conc=128.conc=64is benchmarked twice (entries 2 and 3) andconc=128is benchmarked twice (entries 1 and 3), each with byte-identical sglang/topology settings.Why this PR is responsible
Before this PR, the two pre-existing entries had
DECODE_MTP_SIZE=1, so any new MTP=3 entry would not have duplicated them. This PR creates the duplication by doing both of:DECODE_MTP_SIZEfrom1to3(lines 2052 and 2071 of the diff), homogenizing their topology with the new entry, andconc-list: [64, 128]andDECODE_MTP_SIZE=3whose conc values overlap with the two pre-existing entries.Either change alone would have been fine; the combination produces the duplication.
Impact
This runner is
mi355x-disaggwithmultinode: true. Each benchmark run uses multiple multinode-disagg-grade nodes forisl=8192 osl=1024, so two duplicate sweep points are not free CI-time — they are real GPU-hours on a constrained multinode runner, producing no new data.How to fix
One-line edits, pick either:
64and128from the new block'sconc-list. (But after dropping them, the new block has no novel conc values — implying the entry should simply be removed.)conc-list: [64, 128, 256, 512], which is cleaner and matches the apparent intent of running the full set at MTP=3.