[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
-1
View File
@@ -96,7 +96,6 @@ def _make_batch(
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=torch.zeros(num_tokens, dtype=torch.int32, device=DEVICE),
positions=torch.arange(num_tokens, dtype=torch.int64, device=DEVICE),
is_padding=torch.zeros(num_tokens, dtype=torch.bool, device=DEVICE),