From 63e2a6419dc5863311a11d1d2a95cda9fc8ef7e5 Mon Sep 17 00:00:00 2001 From: Zhuohan Li Date: Tue, 20 Feb 2024 14:37:39 -0800 Subject: [PATCH] [FIX] Fix beam search test (#2930) --- tests/samplers/test_beam_search.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/samplers/test_beam_search.py b/tests/samplers/test_beam_search.py index a491ffa76350..9398aeb2c214 100644 --- a/tests/samplers/test_beam_search.py +++ b/tests/samplers/test_beam_search.py @@ -26,6 +26,7 @@ def test_beam_search_single_input( max_tokens: int, beam_width: int, ) -> None: + example_prompts = example_prompts[:1] hf_model = hf_runner(model, dtype=dtype) hf_outputs = hf_model.generate_beam_search(example_prompts, beam_width, max_tokens)