mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-10 22:35:30 +08:00
[FIX] Fix beam search test (#2930)
This commit is contained in:
parent
264017a2bf
commit
63e2a6419d
@ -26,6 +26,7 @@ def test_beam_search_single_input(
|
|||||||
max_tokens: int,
|
max_tokens: int,
|
||||||
beam_width: int,
|
beam_width: int,
|
||||||
) -> None:
|
) -> None:
|
||||||
|
example_prompts = example_prompts[:1]
|
||||||
hf_model = hf_runner(model, dtype=dtype)
|
hf_model = hf_runner(model, dtype=dtype)
|
||||||
hf_outputs = hf_model.generate_beam_search(example_prompts, beam_width,
|
hf_outputs = hf_model.generate_beam_search(example_prompts, beam_width,
|
||||||
max_tokens)
|
max_tokens)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user