Skip to content

Commit

Permalink
Fix typo in sampling_params.py (vllm-project#788)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangcx18 authored Aug 18, 2023
1 parent 73b3de7 commit 0c04ce3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vllm/sampling_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __init__(

self._verify_args()
if self.use_beam_search:
self._verity_beam_search()
self._verify_beam_search()
elif self.temperature < _SAMPLING_EPS:
# Zero temperature means greedy sampling.
self._verify_greedy_sampling()
Expand Down Expand Up @@ -109,7 +109,7 @@ def _verify_args(self) -> None:
raise ValueError(
f"logprobs must be non-negative, got {self.logprobs}.")

def _verity_beam_search(self) -> None:
def _verify_beam_search(self) -> None:
if self.best_of == 1:
raise ValueError("best_of must be greater than 1 when using beam "
f"search. Got {self.best_of}.")
Expand Down

0 comments on commit 0c04ce3

Please sign in to comment.