Skip to content

Commit 87a7172

Browse files
Add missing else
Signed-off-by: Alex-Brooks <[email protected]>
1 parent f59287b commit 87a7172

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm/beam_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __init__(
4747
self.beams: list[BeamSearchSequence] = [
4848
BeamSearchSequence(
4949
tokens=prompt_tokens,
50-
logprobs=[] if logprobs is None list(logprobs),
50+
logprobs=[] if logprobs is None else list(logprobs),
5151
**kwargs,
5252
)
5353
]

0 commit comments

Comments
 (0)