[BugFix] Fix min_tokens when eos_token_id is None (#4389)
Co-authored-by: DefTruth <31974251+deftruth@users.noreply.github.com>
This commit is contained in:
@@ -185,8 +185,8 @@ class SamplingParams:
|
||||
self.top_k = -1
|
||||
self.min_p = 0.0
|
||||
self._verify_greedy_sampling()
|
||||
# injected by the engine
|
||||
self.eos_token_id = None
|
||||
# eos_token_id is added to this by the engine
|
||||
self.all_stop_token_ids = set(self.stop_token_ids)
|
||||
|
||||
def _verify_args(self) -> None:
|
||||
if self.n < 1:
|
||||
|
||||
Reference in New Issue
Block a user