Repository navigation
[3/N] elastic-ep: Recapture decode CUDA graphs after scale-up - #33723
Merged
ch-wan merged 30 commits intoSep 23, 2026
Merged
Conversation
zackyoray
requested review from
BBuf,
Edwardf0t1,
Fridge003,
HaiShaw,
Qiaolin-Yu,
Ying1123,
ch-wan,
hebiao064,
hnyls2002,
ispobock,
merrymercy and
xiezhq-hermann
as code owners
August 5, 2026 14:41
Contributor
Author
Contributor
|
/tag-and-rerun-ci |
Contributor
|
/rerun-failed-ci |
4 similar comments
Contributor
|
/rerun-failed-ci |
Contributor
|
/rerun-failed-ci |
Contributor
|
/rerun-failed-ci |
Contributor
|
/rerun-failed-ci |
UNIDY2002
reviewed
Aug 8, 2026
Contributor
Author
|
/rerun-failed-ci |
3 similar comments
Contributor
|
/rerun-failed-ci |
Contributor
|
/rerun-failed-ci |
Contributor
|
/rerun-failed-ci |
Contributor
Author
|
/rerun-failed-ci |
Contributor
Author
|
/rerun-failed-ci |
3 similar comments
Contributor
Author
|
/rerun-failed-ci |
Contributor
Author
|
/rerun-failed-ci |
Contributor
Author
|
/rerun-failed-ci |
Contributor
Author
|
/rerun-failed-ci |
# Conflicts: # python/sglang/srt/model_executor/model_runner_components/cuda_graph_setup.py
…20260908 # Conflicts: # python/sglang/srt/model_executor/model_runner_components/cuda_graph_setup.py
# Conflicts: # python/sglang/srt/model_executor/model_runner.py
Contributor
Author
|
/rerun-failed-ci |
…0260915 # Conflicts: # python/sglang/srt/distributed/bootstrap.py # python/sglang/srt/distributed/parallel_state.py
Contributor
Author
|
/rerun-failed-ci |
2 similar comments
Contributor
Author
|
/rerun-failed-ci |
Contributor
Author
|
/rerun-failed-ci |
ch-wan
approved these changes
Sep 23, 2026
Merged
4 tasks done
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
This PR follows PR #30553
and adds FULL decode CUDA graph recapture after runtime Elastic EP scale-up.
Primary and joiner ranks rebuild their graphs for the expanded topology before
the new EP size is committed.
The existing scale-up API and EPLB lifecycle are unchanged.
Changes
expanded world.
decode graphs with the expanded Mooncake WORLD and NIXL rank mask.
configuration before recapture.
ranks before committing the scale operation.
path.
Configuration
Launch primary and joiner groups with the same resolved graph settings:
The scale request and status API are inherited from the base scale-up PR.
Known Limitations
recapture are outside this PR.
configuration and effective capture sizes.
scale-finalization pause.
hooks, and PDMux split-prefill are not supported with Elastic EP recapture.
base scale-up PR still apply.
must still leave enough free GPU memory to capture the configured decode graph
sizes; the manual tests use
--mem-fraction-static 0.5.Test Plan
The manual Elastic EP tests cover direct, single-rank, mixed-cohort, and
repeated scale-up:
TestElasticScaleUp4To5CudaGraphTestElasticScaleUp4To6CudaGraphTestElasticScaleUp4To8CudaGraphTestElasticScaleUp4To5To6CudaGraphEach test captures decode batch sizes
1 2 4 8 16and checks post-scalegeneration, routed joiner traffic, input logprobs, and GSM8K correctness.
The repeated 4-to-5-to-6 and direct 4-to-6 validations passed with all five
decode graph sizes captured on every participating rank.
References
CI States
Latest PR Test (Base): ⏳ Run #35830020864
Latest PR Test (Extra): ❌ Run #35830020856
Latest PR Test (AMD ROCm 10): ⏳ Run #35830020903