Repository navigation
[PD] Keep EAGLE DP graph and token metadata consistent #32196
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
Merged
kpham-sgl
merged 27 commits into
sgl-project:main
from
weireweire:fix/issue32182-sync-draft-graph-fallback
Sep 29, 2026
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
4abf816
Synchronize EAGLE DSA graph fallback across DP ranks
weireweire edb4b06
Preserve draft DP token counts across MoE backends
weireweire 486de18
Cover DSA graph fallback in disagg draft input test
weireweire d44420b
Avoid dynamic speculative graph compatibility lookup
weireweire d6504a6
Fix fused TopK disaggregation test model fixture
weireweire b9e8946
Merge remote-tracking branch 'origin/main' into fix/issue32182-sync-d…
weireweire 247cbab
Fix EAGLE eager DSA padding across DP ranks
weireweire e6b8977
Merge main and preserve EAGLE DP graph metadata
weireweire 1df123f
Merge main and preserve draft DP metadata semantics
weireweire 5415420
Merge branch 'main' into fix/issue32182-sync-draft-graph-fallback
nvpohanh 475be56
Merge branch 'main' into fix/issue32182-sync-draft-graph-fallback
nvpohanh 2d42a6d
Fix EAGLE disaggregation test model fixtures
weireweire 5d29211
Merge branch 'main' into fix/issue32182-sync-draft-graph-fallback
nvpohanh 99e02a9
Merge main and separate draft graph votes from prefill prefix metadata
weireweire 04c51a7
Use complete MoE backend enum in DSA padding test
weireweire 4532117
Bind TRT-LLM sparse page-table helper in DSA test
weireweire 0a6fa8c
Merge branch 'main' into fix/issue32182-sync-draft-graph-fallback
nvpohanh 04a54ce
Merge branch 'main' into fix/issue32182-sync-draft-graph-fallback
nvpohanh d492674
Merge branch 'main' into fix/issue32182-sync-draft-graph-fallback
nvpohanh 61c284d
Merge branch 'main' into fix/issue32182-sync-draft-graph-fallback
nvpohanh ad8d626
Merge branch 'main' into fix/issue32182-sync-draft-graph-fallback
nvpohanh 883f63b
Merge branch 'main' into fix/issue32182-sync-draft-graph-fallback
weireweire 69de5a5
Merge branch 'main' into fix/issue32182-sync-draft-graph-fallback
nvpohanh e75906e
Merge branch 'main' into fix/issue32182-sync-draft-graph-fallback
kpham-sgl 5fbc285
Add is_draft_worker to mock ModelRunner in mamba prefill track test
weireweire 2285468
Merge branch 'main' into fix/issue32182-sync-draft-graph-fallback
weireweire eb2f424
Fix MixedMoE e2e decode args for current server args
weireweire 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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
(from Codex)
When the draft A2A backend is
none,require_mlp_tp_gather()makes this branch use the all-rank counts. For a sufficiently occupied uneven decode batch,DpPaddingModeselectsMAX_LEN, so the eager draftForwardBatchis padded to the largest rank.The EAGLE eager fallback, however, pre-plans DSA metadata before that padding and marks it ready. An idle rank can therefore have padded query rows with a zero-row page table, while a shorter active rank can reach
_forward_trtllm()with more query rows thanpage_table_1rows. This can fail in paged-MQA or reshape code and potentially strand peer ranks. Please trim eager DSA query/top-k tensors to the real metadata row count and restore the output padding afterward, short-circuit the eagerIDLEindexer, and add mixed active/idle plus uneven-count DP coverage.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 make sense, should be a preexisting issue for dsa to handle padding. added the trim and restore method.