Skip to content

Commit

Permalink
[Bugfix]Fix search start_index of stop_checker (vllm-project#13280)
Browse files Browse the repository at this point in the history
  • Loading branch information
xu-song authored and panf2333 committed Feb 18, 2025
1 parent e9a7f2a commit b36608f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/engine/output_processor/stop_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def check_stop_strings(
stop_string_len = len(stop_str)
# Avoid searching already-searched text.
stop_index = output_text.find(stop_str,
-new_char_count - stop_string_len)
1 - new_char_count - stop_string_len)
if stop_index == -1:
continue

Expand Down

0 comments on commit b36608f

Please sign in to comment.