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
2f0d3ba7
Unverified
Commit
2f0d3ba7
authored
Jan 25, 2026
by
Woosuk Kwon
Committed by
GitHub
Jan 25, 2026
Browse files
[Model Runner V2] Minor simplification for finish_requests (#33048)
Signed-off-by:
Woosuk Kwon
<
woosuk@inferact.ai
>
parent
edf927bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
vllm/v1/worker/gpu/model_runner.py
vllm/v1/worker/gpu/model_runner.py
+6
-7
No files found.
vllm/v1/worker/gpu/model_runner.py
View file @
2f0d3ba7
...
@@ -416,13 +416,12 @@ class GPUModelRunner(LoRAModelRunnerMixin):
...
@@ -416,13 +416,12 @@ class GPUModelRunner(LoRAModelRunnerMixin):
torch
.
cuda
.
synchronize
()
torch
.
cuda
.
synchronize
()
def
finish_requests
(
self
,
scheduler_output
:
SchedulerOutput
)
->
None
:
def
finish_requests
(
self
,
scheduler_output
:
SchedulerOutput
)
->
None
:
if
scheduler_output
.
preempted_req_ids
is
not
None
:
finished_req_ids
=
scheduler_output
.
finished_req_ids
for
req_id
in
scheduler_output
.
preempted_req_ids
:
if
scheduler_output
.
preempted_req_ids
:
self
.
req_states
.
remove_request
(
req_id
)
finished_req_ids
=
finished_req_ids
.
union
(
if
self
.
supports_mm_inputs
:
scheduler_output
.
preempted_req_ids
self
.
encoder_runner
.
remove_request
(
req_id
)
)
self
.
prompt_logprobs_worker
.
remove_request
(
req_id
)
for
req_id
in
finished_req_ids
:
for
req_id
in
scheduler_output
.
finished_req_ids
:
self
.
req_states
.
remove_request
(
req_id
)
self
.
req_states
.
remove_request
(
req_id
)
if
self
.
supports_mm_inputs
:
if
self
.
supports_mm_inputs
:
self
.
encoder_runner
.
remove_request
(
req_id
)
self
.
encoder_runner
.
remove_request
(
req_id
)
...
...
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