mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-10 02:05:01 +08:00
[misc] fix comment and variable name (#9139)
This commit is contained in:
parent
c0d9a98d0c
commit
fa45513a51
@ -1202,10 +1202,11 @@ class Scheduler:
|
|||||||
seq_group=seq_group, num_lookahead_slots=num_lookahead_slots)
|
seq_group=seq_group, num_lookahead_slots=num_lookahead_slots)
|
||||||
|
|
||||||
def _allow_async_output_proc(self, seq_group: SequenceGroup) -> bool:
|
def _allow_async_output_proc(self, seq_group: SequenceGroup) -> bool:
|
||||||
# TODO: does it work with parallel sampling?
|
# async_output_proc is allowed only when we have a single sequence
|
||||||
no_beam_search = seq_group.sampling_params is None or (
|
# in the sequence group
|
||||||
|
no_single_seq = seq_group.sampling_params is None or (
|
||||||
seq_group.sampling_params.best_of == 1)
|
seq_group.sampling_params.best_of == 1)
|
||||||
return no_beam_search
|
return no_single_seq
|
||||||
|
|
||||||
def schedule(
|
def schedule(
|
||||||
self
|
self
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user