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
366f6b3a
Unverified
Commit
366f6b3a
authored
Jul 30, 2025
by
Cyrus Leung
Committed by
GitHub
Jul 30, 2025
Browse files
[Bugfix] Fix multi-api server not working for text models (#21933)
Signed-off-by:
DarkLight1337
<
tlleungac@connect.ust.hk
>
parent
6e599eeb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
14 deletions
+1
-14
vllm/config.py
vllm/config.py
+1
-14
No files found.
vllm/config.py
View file @
366f6b3a
...
@@ -856,7 +856,7 @@ class ModelConfig:
...
@@ -856,7 +856,7 @@ class ModelConfig:
self
.
tokenizer
=
s3_tokenizer
.
dir
self
.
tokenizer
=
s3_tokenizer
.
dir
def
_init_multimodal_config
(
self
)
->
Optional
[
"MultiModalConfig"
]:
def
_init_multimodal_config
(
self
)
->
Optional
[
"MultiModalConfig"
]:
if
self
.
registry
.
is_multimodal_model
(
self
.
architectures
,
self
)
:
if
self
.
_model_info
.
supports_multimodal
:
return
MultiModalConfig
(
return
MultiModalConfig
(
limit_per_prompt
=
self
.
limit_mm_per_prompt
,
limit_per_prompt
=
self
.
limit_mm_per_prompt
,
media_io_kwargs
=
self
.
media_io_kwargs
,
media_io_kwargs
=
self
.
media_io_kwargs
,
...
@@ -865,19 +865,6 @@ class ModelConfig:
...
@@ -865,19 +865,6 @@ class ModelConfig:
disable_mm_preprocessor_cache
,
disable_mm_preprocessor_cache
,
interleave_mm_strings
=
self
.
interleave_mm_strings
)
interleave_mm_strings
=
self
.
interleave_mm_strings
)
if
self
.
limit_mm_per_prompt
:
raise
ValueError
(
"`limit_mm_per_prompt` is only supported for "
"multimodal models."
)
if
self
.
mm_processor_kwargs
:
raise
ValueError
(
"`mm_processor_kwargs` is only supported for "
"multimodal models."
)
if
self
.
disable_mm_preprocessor_cache
:
raise
ValueError
(
"`disable_mm_preprocessor_cache` is only "
"supported for multimodal models."
)
if
self
.
interleave_mm_strings
:
raise
ValueError
(
"`interleave_mm_strings` is only "
"supported for multimodal models."
)
return
None
return
None
def
_get_encoder_config
(
self
):
def
_get_encoder_config
(
self
):
...
...
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