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
be0549c4
Commit
be0549c4
authored
Jul 29, 2025
by
zhuwenwen
Browse files
[Misc] Clean up Aimv2 config registration in Ovis config
parent
751c492c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
vllm/transformers_utils/configs/ovis.py
vllm/transformers_utils/configs/ovis.py
+5
-5
No files found.
vllm/transformers_utils/configs/ovis.py
View file @
be0549c4
...
...
@@ -73,8 +73,6 @@ IMAGE_TOKEN = "<image>"
IMAGE_ATOM_ID
=
-
300
IMAGE_INDICATOR_IDS
=
[
-
301
,
-
302
,
-
303
,
-
304
,
-
305
]
AutoConfig
.
register
(
"aimv2"
,
AIMv2Config
)
# ----------------------------------------------------------------------
# Visual Tokenizer Configuration
...
...
@@ -105,9 +103,11 @@ class BaseVisualTokenizerConfig(PretrainedConfig):
f
"expect `backbone_config` to be instance of PretrainedConfig or dict, but got
{
type
(
backbone_config
)
}
type"
if
not
isinstance
(
backbone_config
,
PretrainedConfig
):
model_type
=
backbone_config
[
'model_type'
]
if
model_type
!=
"aimv2"
:
backbone_config
.
pop
(
'model_type'
)
backbone_config
=
AutoConfig
.
for_model
(
model_type
,
**
backbone_config
)
backbone_config
=
AutoConfig
.
for_model
(
model_type
,
**
backbone_config
)
else
:
backbone_config
=
AIMv2Config
(
**
backbone_config
)
self
.
backbone_config
=
backbone_config
self
.
hidden_stride
=
hidden_stride
...
...
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