[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user