[Bugfix][PP] Never drop a decoding request from the sampled-token broadcast (#54436)

Signed-off-by: ArcheyChen <45146080+ArcheyChen@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Ausar
2026-08-31 23:49:54 +00:00
committed by GitHub
co-authored by Claude
parent b05acd2ae0
commit 6bafc049aa
6 changed files with 87 additions and 22 deletions
-4
View File
@@ -85,9 +85,6 @@ class InputBatch:
# == np.any(is_prefilling_np)
has_prefill: bool
# [num_reqs] only populated when pipeline parallelism is enabled.
max_seq_len_np: np.ndarray | None
# [num_tokens_after_padding]
input_ids: torch.Tensor
# [num_tokens_after_padding]
@@ -194,7 +191,6 @@ class InputBatch:
num_computed_prefill_tokens_np=np.zeros(num_reqs, dtype=np.int32),
is_prefilling_np=np.zeros(num_reqs, dtype=np.bool_),
has_prefill=False,
max_seq_len_np=None,
input_ids=input_ids,
positions=positions,
is_padding=is_padding,