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
94de8715
Unverified
Commit
94de8715
authored
Feb 10, 2026
by
Phúc H. Lê Khắc
Committed by
GitHub
Feb 10, 2026
Browse files
[Misc] allow specify is_mm_prefix_lm in hf_config (#34215)
parent
e042d7e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
vllm/config/model.py
vllm/config/model.py
+3
-0
No files found.
vllm/config/model.py
View file @
94de8715
...
@@ -1119,6 +1119,9 @@ class ModelConfig:
...
@@ -1119,6 +1119,9 @@ class ModelConfig:
@
cached_property
@
cached_property
def
is_mm_prefix_lm
(
self
)
->
bool
:
def
is_mm_prefix_lm
(
self
)
->
bool
:
"""Whether to use bidirectional attention for mm positions."""
"""Whether to use bidirectional attention for mm positions."""
if
hasattr
(
self
.
hf_config
,
"is_mm_prefix_lm"
):
return
bool
(
self
.
hf_config
.
is_mm_prefix_lm
)
# fallback to list of known models
MM_PREFIX_LM_MODELS
=
(
MM_PREFIX_LM_MODELS
=
(
"gemma3"
,
"gemma3"
,
"molmo2"
,
"molmo2"
,
...
...
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