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
d2a68364
Unverified
Commit
d2a68364
authored
Jan 19, 2024
by
ljss
Committed by
GitHub
Jan 18, 2024
Browse files
[BugFix] Fix abort_seq_group (#2463)
parent
7e108113
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vllm/core/scheduler.py
vllm/core/scheduler.py
+2
-2
No files found.
vllm/core/scheduler.py
View file @
d2a68364
...
@@ -108,7 +108,7 @@ class Scheduler:
...
@@ -108,7 +108,7 @@ class Scheduler:
request_id
=
(
request_id
,
)
request_id
=
(
request_id
,
)
request_ids
=
set
(
request_id
)
request_ids
=
set
(
request_id
)
for
state_queue
in
[
self
.
waiting
,
self
.
running
,
self
.
swapped
]:
for
state_queue
in
[
self
.
waiting
,
self
.
running
,
self
.
swapped
]:
aborted_groups
=
[]
aborted_groups
:
List
[
SequenceGroup
]
=
[]
for
seq_group
in
state_queue
:
for
seq_group
in
state_queue
:
if
not
request_ids
:
if
not
request_ids
:
# Using 'break' here may add two extra iterations,
# Using 'break' here may add two extra iterations,
...
@@ -121,7 +121,7 @@ class Scheduler:
...
@@ -121,7 +121,7 @@ class Scheduler:
for
aborted_group
in
aborted_groups
:
for
aborted_group
in
aborted_groups
:
# Remove the sequence group from the state queue.
# Remove the sequence group from the state queue.
state_queue
.
remove
(
aborted_group
)
state_queue
.
remove
(
aborted_group
)
for
seq
in
seq
_group
.
get_seqs
():
for
seq
in
aborted
_group
.
get_seqs
():
if
seq
.
is_finished
():
if
seq
.
is_finished
():
continue
continue
seq
.
status
=
SequenceStatus
.
FINISHED_ABORTED
seq
.
status
=
SequenceStatus
.
FINISHED_ABORTED
...
...
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