Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengy001 committed Dec 19, 2024
1 parent 3465444 commit e015183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/sglang/srt/managers/schedule_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def check_finished(self, eos_token_ids: Optional[Set] = None):
if self.sampling_params.stop_token_ids:
matched_eos = last_token_id in self.sampling_params.stop_token_ids
if eos_token_ids:
matched_eos = last_token_id in eos_token_ids
matched_eos |= last_token_id in eos_token_ids
if self.tokenizer is not None:
matched_eos |= last_token_id == self.tokenizer.eos_token_id
if self.tokenizer.additional_stop_token_ids:
Expand Down

0 comments on commit e015183

Please sign in to comment.