[V0 Deprecation] Remove best_of (#29090)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung
2025-11-21 11:40:40 +08:00
committed by GitHub
parent 698024ecce
commit 56e96b37e4
6 changed files with 4 additions and 65 deletions

View File

@@ -22,14 +22,6 @@ def test_n_gt_1(llm):
assert len(outputs[0].outputs) == 3
def test_best_of(llm):
"""Raise a ValueError since best_of is deprecated."""
params = SamplingParams(n=2, best_of=3)
with pytest.raises(ValueError):
_ = llm.generate(PROMPT, params)
def test_penalties(llm):
"""Check that we do not get errors if applied."""