mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-14 00:55:26 +08:00
[Bugfix] Make deprecated --task embedding consistent with `--runner… (#29312)
Signed-off-by: Maryam Tahhan <mtahhan@redhat.com>
This commit is contained in:
parent
9cf4edae6e
commit
87185c88d5
@ -584,6 +584,16 @@ class ModelConfig:
|
|||||||
)
|
)
|
||||||
else: # task == "auto"
|
else: # task == "auto"
|
||||||
pass
|
pass
|
||||||
|
else:
|
||||||
|
# Neither generative nor pooling model - try to convert if possible
|
||||||
|
if is_pooling_task:
|
||||||
|
runner = "pooling"
|
||||||
|
convert = _task_to_convert(self.task)
|
||||||
|
msg_hint = (
|
||||||
|
"Please replace this option with `--runner pooling "
|
||||||
|
f"--convert {convert}` to continue using this model "
|
||||||
|
"as a pooling model."
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
debug_info = {
|
debug_info = {
|
||||||
"architectures": architectures,
|
"architectures": architectures,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user