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
87185c88
Unverified
Commit
87185c88
authored
Nov 25, 2025
by
Maryam Tahhan
Committed by
GitHub
Nov 25, 2025
Browse files
[Bugfix] Make deprecated `--task embedding` consistent with `--runner… (#29312)
Signed-off-by:
Maryam Tahhan
<
mtahhan@redhat.com
>
parent
9cf4edae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
10 deletions
+20
-10
vllm/config/model.py
vllm/config/model.py
+20
-10
No files found.
vllm/config/model.py
View file @
87185c88
...
@@ -585,16 +585,26 @@ class ModelConfig:
...
@@ -585,16 +585,26 @@ class ModelConfig:
else
:
# task == "auto"
else
:
# task == "auto"
pass
pass
else
:
else
:
debug_info
=
{
# Neither generative nor pooling model - try to convert if possible
"architectures"
:
architectures
,
if
is_pooling_task
:
"is_generative_model"
:
is_generative_model
,
runner
=
"pooling"
"is_pooling_model"
:
is_pooling_model
,
convert
=
_task_to_convert
(
self
.
task
)
}
msg_hint
=
(
raise
AssertionError
(
"Please replace this option with `--runner pooling "
"The model should be a generative or "
f
"--convert
{
convert
}
` to continue using this model "
"pooling model when task is set to "
"as a pooling model."
f
"
{
self
.
task
!
r
}
. Found:
{
debug_info
}
"
)
)
else
:
debug_info
=
{
"architectures"
:
architectures
,
"is_generative_model"
:
is_generative_model
,
"is_pooling_model"
:
is_pooling_model
,
}
raise
AssertionError
(
"The model should be a generative or "
"pooling model when task is set to "
f
"
{
self
.
task
!
r
}
. Found:
{
debug_info
}
"
)
self
.
runner
=
runner
self
.
runner
=
runner
self
.
convert
=
convert
self
.
convert
=
convert
...
...
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