Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norm
vllm
Commits
63e2a641
Unverified
Commit
63e2a641
authored
Feb 20, 2024
by
Zhuohan Li
Committed by
GitHub
Feb 20, 2024
Browse files
[FIX] Fix beam search test (#2930)
parent
264017a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
tests/samplers/test_beam_search.py
tests/samplers/test_beam_search.py
+1
-0
No files found.
tests/samplers/test_beam_search.py
View file @
63e2a641
...
@@ -26,6 +26,7 @@ def test_beam_search_single_input(
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment