[BugFix] Fix async scheduling + reasoning with struct output (#31332)
Signed-off-by: Nick Hill <nickhill123@gmail.com>
This commit is contained in:
@@ -339,8 +339,9 @@ class StructuredOutputManager:
|
||||
return True
|
||||
|
||||
# Check if reasoning ends in *this* step
|
||||
delta_from = request.num_computed_tokens - request.num_output_placeholders
|
||||
if self.reasoner.is_reasoning_end_streaming(
|
||||
request.all_token_ids, request.all_token_ids[request.num_computed_tokens :]
|
||||
request.all_token_ids, request.all_token_ids[delta_from:]
|
||||
):
|
||||
# Reasoning just ended, so we shouldn't advance til
|
||||
# next pass
|
||||
|
||||
Reference in New Issue
Block a user