[Spec Decode] Structured output under concurrency on a PP shape

Ports upstream vLLM PRs #54442 and #56802 (issue #54437): never sample from an
unmasked row, and key draft-token hand-off snapshots by scheduler step so an
alternating PP microbatch cannot overwrite the slot.

Co-Authored-By: Hinata <hinata@idihore.id>
Signed-off-by: MOVZX <movzx@yahoo.com>
This commit is contained in:
2026-10-09 19:43:58 +07:00
co-authored by Hinata
parent 03c8ebae34
commit 17c1c70447
12 changed files with 262 additions and 43 deletions
+7 -2
View File
@@ -141,8 +141,13 @@ class UniProcExecutor(Executor):
single_value=True,
)
def take_draft_token_ids(self) -> DraftTokenIds | None:
return self.collective_rpc("take_draft_token_ids", single_value=True)
def take_draft_token_ids(self, step_id: int | None = None) -> DraftTokenIds | None:
kwargs = {} if step_id is None else {"step_id": step_id}
return self.collective_rpc(
"take_draft_token_ids",
kwargs=kwargs,
single_value=True,
)
def check_health(self) -> None:
# UniProcExecutor will always be healthy as long as