[BugFix] Make penalties and bad_words work with async scheduling (#26467)

Signed-off-by: Nick Hill <nhill@redhat.com>
This commit is contained in:
Nick Hill
2025-10-10 23:27:04 +00:00
committed by GitHub
parent eef921f45e
commit 5bc26c438d
4 changed files with 113 additions and 14 deletions
+3 -1
View File
@@ -737,7 +737,9 @@ class Scheduler(SchedulerInterface):
req_to_new_blocks[req_id].get_block_ids(allow_none=True)
)
num_computed_tokens.append(req.num_computed_tokens)
num_output_tokens.append(req.num_output_tokens)
num_output_tokens.append(
req.num_output_tokens + req.num_output_placeholders
)
return CachedRequestData(
req_ids=req_ids,