Repository navigation
[Fix] Skip a draft's decode recapture when it owns no decode graph - #42347
Merged
Merged
Conversation
ch-wan
requested review from
Fridge003,
Ying1123,
hnyls2002,
ispobock and
merrymercy
as code owners
October 3, 2026 05:21
This was referenced Oct 3, 2026
ch-wan
force-pushed
the
cheng/hot-fix/draft-tensor-update-rank
branch
from
October 3, 2026 06:40
a778835 to
f77b7d1
Compare
ch-wan
force-pushed
the
cheng/hot-fix/draft-graph-recapture
branch
from
October 3, 2026 06:40
e1ccd28 to
7a0d2d9
Compare
ch-wan
force-pushed
the
cheng/hot-fix/draft-tensor-update-rank
branch
from
October 3, 2026 21:51
f77b7d1 to
a68f602
Compare
Base automatically changed from
cheng/hot-fix/draft-tensor-update-rank
to
main
October 3, 2026 21:52
`update_weights_from_disk(recapture_cuda_graph=True)` recaptures the decode graph of every selected runner. A spec worker that captures its draft's graphs inside the draft placement scopes asks the draft runner for no decode graph, so the runner keeps its eager runner in that slot. Recapturing there runs outside those scopes, and for a draft the capture clears the slot and then raises, leaving the runner without even the eager fallback. A draft runner now recaptures only a decode graph it captured itself; target runners recapture as before.
ch-wan
force-pushed
the
cheng/hot-fix/draft-graph-recapture
branch
from
October 3, 2026 21:53
7a0d2d9 to
afb8b1d
Compare
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.
This PR is part of a stack (oldest at bottom):
Motivation
update_weights_from_disk(recapture_cuda_graph=True)recaptures the decode CUDA graph of every selected runner, draft runners included. A speculative worker that captures its draft's graphs inside the draft placement scopes asks the draft runner for no decode graph of its own (init_cuda_graphs(capture_decode_cuda_graph=False)), which leaves the runner's eager runner in the decode slot.Recapturing there runs outside those scopes. For a draft the capture clears the slot and then raises, so the runner is left without even the eager fallback it had.
Modifications
A draft runner recaptures only a decode graph it captured itself: the slot holds neither
Nonenor its own eager runner. Target runners recapture as before.Accuracy Tests
H200, Qwen3-8B with the
AngelSlim/Qwen3-8B_eagle3draft,--tp-size 2, GSM8K 300 questions: 0.950 plain and 0.947 with--attn-dp-size 2, against base runs of 0.953 / 0.947 and 0.950 / 0.950. Greedy text (4 prompts × 48 tokens) is byte-identical across every run.On a live server, both draft runners report their eager runner in the decode slot, in plain and attention-DP layouts alike, which is the state the guard now recognises.
test_draft_graph_recapture.pyfails with the guard reverted and passes with it.unit/specandunit/model_executor: same results as the parent commit.Speed Tests and Profiling
Not applicable.
Checklist
Review and Merge Process
/tag-and-rerun-ci,/tag-run-ci-label,/rerun-failed-ciCI States
Latest PR Test (Base): 🚫 Run #37156590555
Latest PR Test (Extra): ❌ Run #37156590143
Latest PR Test (AMD ROCm 10): ❌ Run #37156590452