Skip to content

Commit

Permalink
fix mixed chunked prefill
Browse files Browse the repository at this point in the history
  • Loading branch information
merrymercy committed Oct 14, 2024
1 parent a84c37a commit bd1e8c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/sglang/srt/managers/schedule_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,8 @@ def merge_batch(self, other: "ScheduleBatch"):
)
self.seq_lens = torch.concat([self.seq_lens, other.seq_lens])
self.out_cache_loc = None
self.output_ids = torch.concat([self.output_ids, other.output_ids])
if self.output_ids:
self.output_ids = torch.concat([self.output_ids, other.output_ids])
if self.return_logprob and other.return_logprob:
self.top_logprobs_nums.extend(other.top_logprobs_nums)
elif self.return_logprob:
Expand Down

0 comments on commit bd1e8c4

Please sign in to comment.