Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norm
vllm
Commits
d75c4073
Unverified
Commit
d75c4073
authored
Jan 20, 2024
by
Nick Hill
Committed by
GitHub
Jan 20, 2024
Browse files
[Fix] Keep `scheduler.running` as deque (#2523)
parent
5b23c3f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
vllm/core/scheduler.py
vllm/core/scheduler.py
+2
-4
No files found.
vllm/core/scheduler.py
View file @
d75c4073
...
@@ -332,10 +332,8 @@ class Scheduler:
...
@@ -332,10 +332,8 @@ class Scheduler:
self
.
block_manager
.
free
(
seq
)
self
.
block_manager
.
free
(
seq
)
def
free_finished_seq_groups
(
self
)
->
None
:
def
free_finished_seq_groups
(
self
)
->
None
:
self
.
running
=
[
self
.
running
=
deque
(
seq_group
for
seq_group
in
self
.
running
seq_group
for
seq_group
in
self
.
running
if
not
seq_group
.
is_finished
())
if
not
seq_group
.
is_finished
()
]
def
_allocate
(
self
,
seq_group
:
SequenceGroup
)
->
None
:
def
_allocate
(
self
,
seq_group
:
SequenceGroup
)
->
None
:
self
.
block_manager
.
allocate
(
seq_group
)
self
.
block_manager
.
allocate
(
seq_group
)
...
...
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