Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sroy745 committed Dec 9, 2024
1 parent 3798152 commit 00ec978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/v1/sample/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def _apply_min_token_penalties(logits: torch.Tensor,
"""
min_tokens_logits_to_penalize: List[Tuple[int, int]] = []
for index, min_token in enumerate(min_tokens):
if (min_token > 0 and len(output_token_ids[index]) < min_token):
if (len(output_token_ids[index]) < min_token):
for stop_token_id in stop_token_ids[index]:
min_tokens_logits_to_penalize.append((index, stop_token_id))
if min_tokens_logits_to_penalize:
Expand Down

0 comments on commit 00ec978

Please sign in to comment.