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
b99b5676
Commit
b99b5676
authored
Apr 11, 2025
by
zhuwenwen
Browse files
fix glm register error
parent
b62fe3c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/config.py
vllm/config.py
+1
-1
No files found.
vllm/config.py
View file @
b99b5676
...
@@ -423,7 +423,7 @@ class ModelConfig:
...
@@ -423,7 +423,7 @@ class ModelConfig:
self
,
limit_mm_per_prompt
:
Optional
[
Mapping
[
str
,
int
]]
self
,
limit_mm_per_prompt
:
Optional
[
Mapping
[
str
,
int
]]
)
->
Optional
[
"MultiModalConfig"
]:
)
->
Optional
[
"MultiModalConfig"
]:
architectures
=
getattr
(
self
.
hf_config
,
"architectures"
,
[])
architectures
=
getattr
(
self
.
hf_config
,
"architectures"
,
[])
if
ModelRegistry
.
is_multimodal_model
(
architectures
):
if
ModelRegistry
.
is_multimodal_model
(
architectures
)
and
hasattr
(
self
.
hf_config
,
"vision_config"
)
:
return
MultiModalConfig
(
limit_per_prompt
=
limit_mm_per_prompt
or
{})
return
MultiModalConfig
(
limit_per_prompt
=
limit_mm_per_prompt
or
{})
if
limit_mm_per_prompt
:
if
limit_mm_per_prompt
:
...
...
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