mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-19 04:35:02 +08:00
[Bugfix] Fix task field initialization when PYTHONOPTIMIZE is enabled (#23718)
Signed-off-by: cndoit18 <cndoit18@outlook.com>
This commit is contained in:
parent
9d30de4469
commit
8c13820f0b
@ -199,8 +199,9 @@ class PoolingModelRunner(
|
|||||||
|
|
||||||
pooling_params = seq_group_metadata.pooling_params
|
pooling_params = seq_group_metadata.pooling_params
|
||||||
assert pooling_params is not None
|
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)
|
model = cast(VllmModelForPooling, self.model)
|
||||||
to_update = model.pooler.get_pooling_updates(task)
|
to_update = model.pooler.get_pooling_updates(task)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user