Skip to content

Commit 63e2a64

Browse files
authored
[FIX] Fix beam search test (#2930)
1 parent 264017a commit 63e2a64

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/samplers/test_beam_search.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def test_beam_search_single_input(
2626
max_tokens: int,
2727
beam_width: int,
2828
) -> None:
29+
example_prompts = example_prompts[:1]
2930
hf_model = hf_runner(model, dtype=dtype)
3031
hf_outputs = hf_model.generate_beam_search(example_prompts, beam_width,
3132
max_tokens)

0 commit comments

Comments
 (0)