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
829b9a62
Unverified
Commit
829b9a62
authored
Aug 14, 2025
by
Lucas Wilkinson
Committed by
GitHub
Aug 14, 2025
Browse files
[Perf] Dont create unnecessary pooling params (#22876)
Signed-off-by:
Lucas Wilkinson
<
lwilkins@redhat.com
>
parent
540d54ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vllm/v1/worker/gpu_model_runner.py
vllm/v1/worker/gpu_model_runner.py
+3
-3
No files found.
vllm/v1/worker/gpu_model_runner.py
View file @
829b9a62
...
@@ -341,13 +341,13 @@ class GPUModelRunner(LoRAModelRunnerMixin, KVConnectorModelRunnerMixin):
...
@@ -341,13 +341,13 @@ class GPUModelRunner(LoRAModelRunnerMixin, KVConnectorModelRunnerMixin):
model_kwargs
=
dict
[
str
,
Any
]()
model_kwargs
=
dict
[
str
,
Any
]()
num_reqs
=
self
.
input_batch
.
num_reqs
num_reqs
=
self
.
input_batch
.
num_reqs
pooling_params
=
self
.
input_batch
.
pooling_metadata
.
pooling_params
num_pooling_reqs
=
len
(
self
.
input_batch
.
pooling_params
)
num_pooling_reqs
=
len
(
pooling_params
)
if
num_pooling_reqs
==
0
:
if
num_pooling_reqs
==
0
:
return
model_kwargs
return
model_kwargs
pooling_params
=
self
.
input_batch
.
pooling_metadata
.
pooling_params
assert
num_pooling_reqs
==
num_reqs
assert
num_pooling_reqs
==
num_reqs
token_type_id_requests
=
dict
[
int
,
Any
]()
token_type_id_requests
=
dict
[
int
,
Any
]()
...
...
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