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
a114bf20
Unverified
Commit
a114bf20
authored
Apr 22, 2025
by
SnowCharm
Committed by
GitHub
Apr 22, 2025
Browse files
[Perf] Optimize `_update_states` for GPU model runner (#16910)
Signed-off-by:
snowcharm
<
snowcharmqq@gmail.com
>
parent
3097ce3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/v1/worker/gpu_model_runner.py
vllm/v1/worker/gpu_model_runner.py
+1
-1
No files found.
vllm/v1/worker/gpu_model_runner.py
View file @
a114bf20
...
...
@@ -454,7 +454,7 @@ class GPUModelRunner(LoRAModelRunnerMixin):
# Add the new or resumed requests to the persistent batch.
# The smaller empty indices are filled first.
removed_req_indices
=
sort
ed
(
removed_req_indices
,
reverse
=
True
)
removed_req_indices
.
sort
(
reverse
=
True
)
for
req_id
in
req_ids_to_add
:
req_state
=
self
.
requests
[
req_id
]
if
removed_req_indices
:
...
...
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