Repository navigation
[sgl-router] Fail fast on prefill errors and isolate PD transfer groups - #40606
Closed
sherlockwu wants to merge 1 commit into
Closed
sherlockwu wants to merge 1 commit into
sherlockwu wants to merge 1 commit into
Conversation
sherlockwu
force-pushed
the
codex/router-pd-failfast-groups
branch
from
September 21, 2026 17:35
ae98b27 to
110ca27
Compare
sherlockwu
added this pull request to stack #40625
September 21, 2026 20:36
sherlockwu
marked this pull request as draft
September 21, 2026 20:47
sherlockwu
force-pushed
the
codex/router-pd-failfast-groups
branch
from
September 21, 2026 22:39
110ca27 to
ab2747b
Compare
ShangmingCai
force-pushed
the
codex/router-pd-failfast-groups
branch
from
September 22, 2026 03:13
ab2747b to
8a7a482
Compare
This was referenced Sep 29, 2026
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.
A failed prefill leaves decode waiting for KV that will never arrive. PD selection also needs to keep incompatible transfer groups apart.
Modifications
Wait for prefill's outcome alongside decode; preserve prefill 4xx responses and return 502
prefill_failedfor transport/server failures, dropping decode immediately. Prefill remains detached on client cancellation.Read the EndpointSlice
sglang.ai/transfer-grouplabel (configurable with--transfer-group-label). Both routing paths select compatible pairs, exclude orphan prefills, and readiness requires a complete pair. Unlabeled workers pair only with unlabeled workers; label changes refresh discovery.Stacked on #40605, which follows #40604. Most touched files only initialize the new worker metadata field.
Accuracy Tests
Workspace library and integration tests passed, including focused regressions for prefill failures, released load guards, group isolation, readiness, bucket routing, and discovery updates. Updated the old test that expected prefill failures to be hidden. Strict workspace Clippy and formatting passed.
Speed Tests and Profiling
Not run; no inference changes.
CI States
Latest PR Test (Base): ✅ Run #35682350023
Latest PR Test (Extra): ❌ Run #35682349542
Latest PR Test (AMD ROCm 10): ➖ No AMD PR run found for this commit.