[fix] baseline7 pyc清除+greedy n>1+fanout宽松+image重试+max_num_seqs env覆盖

This commit is contained in:
root
2026-08-25 02:36:29 +00:00
parent 06d56f6ff8
commit 00654476d3
5 changed files with 167 additions and 9 deletions

View File

@@ -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