Skip to content

Commit

Permalink
[Bugfix] Fix single output condition in output processor (vllm-projec…
Browse files Browse the repository at this point in the history
  • Loading branch information
WoosukKwon authored Sep 3, 2024
1 parent 6e36f4f commit 0fbc669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/engine/output_processor/single_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def _process_sequence_group_outputs(self, seq_group: SequenceGroup,
outputs: SequenceGroupOutput,
is_async: bool) -> None:
sampling_params = seq_group.sampling_params
if sampling_params.n == 1 and not sampling_params.use_beam_search:
if sampling_params.best_of == 1 and not sampling_params.use_beam_search:
# only have one output sample
sample = outputs.samples[0]
# only have one sequence
Expand Down

0 comments on commit 0fbc669

Please sign in to comment.