Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
fa45513a
Unverified
Commit
fa45513a
authored
Oct 07, 2024
by
youkaichao
Committed by
GitHub
Oct 07, 2024
Browse files
[misc] fix comment and variable name (#9139)
parent
c0d9a98d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
vllm/core/scheduler.py
vllm/core/scheduler.py
+4
-3
No files found.
vllm/core/scheduler.py
View file @
fa45513a
...
@@ -1202,10 +1202,11 @@ class Scheduler:
...
@@ -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
...
...
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