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
8c13820f
Unverified
Commit
8c13820f
authored
Aug 27, 2025
by
cndoit18
Committed by
GitHub
Aug 27, 2025
Browse files
[Bugfix] Fix task field initialization when PYTHONOPTIMIZE is enabled (#23718)
Signed-off-by:
cndoit18
<
cndoit18@outlook.com
>
parent
9d30de44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vllm/worker/pooling_model_runner.py
vllm/worker/pooling_model_runner.py
+3
-2
No files found.
vllm/worker/pooling_model_runner.py
View file @
8c13820f
...
...
@@ -199,8 +199,9 @@ class PoolingModelRunner(
pooling_params
=
seq_group_metadata
.
pooling_params
assert
pooling_params
is
not
None
assert
(
task
:
=
pooling_params
.
task
)
is
not
None
,
(
"You did not set `task` in the API"
)
task
=
pooling_params
.
task
assert
task
is
not
None
,
"You did not set `task` in the API"
model
=
cast
(
VllmModelForPooling
,
self
.
model
)
to_update
=
model
.
pooler
.
get_pooling_updates
(
task
)
...
...
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