Skip to content

Commit

Permalink
Line too long
Browse files Browse the repository at this point in the history
  • Loading branch information
saumya-saran committed Sep 19, 2024
1 parent 6c19a10 commit 386ac90
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vllm/sampling_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,11 +274,13 @@ def __post_init__(self) -> None:

def _verify_args(self) -> None:
if not isinstance(self.n, int):
raise ValueError(f"n must be an int, but is of type {type(self.n)}")
raise ValueError(f"n must be an int, but is of "
f"type {type(self.n)}")
if self.n < 1:
raise ValueError(f"n must be at least 1, got {self.n}.")
if not isinstance(self.best_of, int):
raise ValueError(f'best_of must be an int, but is of type {type(self.best_of)}')
raise ValueError(f'best_of must be an int, but is of '
f'type {type(self.best_of)}')
if self.best_of < self.n:
raise ValueError(f"best_of must be greater than or equal to n, "
f"got n={self.n} and best_of={self.best_of}.")
Expand Down

0 comments on commit 386ac90

Please sign in to comment.