diff --git a/python/sglang/srt/managers/schedule_batch.py b/python/sglang/srt/managers/schedule_batch.py index b84fc5562..8d7ccd354 100644 --- a/python/sglang/srt/managers/schedule_batch.py +++ b/python/sglang/srt/managers/schedule_batch.py @@ -649,7 +649,7 @@ class ScheduleBatch: req.last_update_decode_tokens = 0 req.logprob_start_len = 10**9 - self.filter_batch(sorted_indices) + self.filter_batch(keep_indices=sorted_indices) # Reqs in batch are filtered total_decoded_tokens = sum(len(r.output_ids) for r in self.reqs)