[misc] fix comment and variable name (#9139)

This commit is contained in:
youkaichao 2024-10-07 16:07:05 -07:00 committed by GitHub
parent c0d9a98d0c
commit fa45513a51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1202,10 +1202,11 @@ class Scheduler:
seq_group=seq_group, num_lookahead_slots=num_lookahead_slots)
def _allow_async_output_proc(self, seq_group: SequenceGroup) -> bool:
# TODO: does it work with parallel sampling?
no_beam_search = seq_group.sampling_params is None or (
# async_output_proc is allowed only when we have a single sequence
# in the sequence group
no_single_seq = seq_group.sampling_params is None or (
seq_group.sampling_params.best_of == 1)
return no_beam_search
return no_single_seq
def schedule(
self