[fix] baseline7 pyc清除+greedy n>1+fanout宽松+image重试+max_num_seqs env覆盖
This commit is contained in:
@@ -423,9 +423,8 @@ class SamplingParams(
|
||||
raise ValueError("best_of must equal n to use output_kind=DELTA")
|
||||
|
||||
def _verify_greedy_sampling(self) -> None:
|
||||
if self.n > 1:
|
||||
raise ValueError("n must be 1 when using greedy sampling, "
|
||||
f"got {self.n}.")
|
||||
# [BI100] Allow n>1 with greedy: results are deterministic duplicates.
|
||||
pass
|
||||
|
||||
def update_from_generation_config(
|
||||
self,
|
||||
@@ -517,4 +516,4 @@ class BeamSearchParams(
|
||||
max_tokens: int
|
||||
ignore_eos: bool = False
|
||||
temperature: float = 0.0
|
||||
length_penalty: float = 1.0
|
||||
length_penalty: float = 1.0
|
||||
Reference in New Issue
Block a user