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
b1cc4dfe
Unverified
Commit
b1cc4dfe
authored
Mar 13, 2025
by
Isotr0py
Committed by
GitHub
Mar 13, 2025
Browse files
[VLM] Support loading InternVideo2.5 models as original InternVLChatModel (#14738)
Signed-off-by:
Isotr0py
<
2037008807@qq.com
>
parent
38240392
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
docs/source/models/supported_models.md
docs/source/models/supported_models.md
+2
-2
vllm/model_executor/models/internvl.py
vllm/model_executor/models/internvl.py
+8
-1
No files found.
docs/source/models/supported_models.md
View file @
b1cc4dfe
...
...
@@ -786,9 +786,9 @@ See [this page](#generative-models) for more information on how to use generativ
*
*
✅︎
-
*
`InternVLChatModel`
*
InternVL 2.5, Mono-InternVL, InternVL 2.0
*
InternVideo 2.5,
InternVL 2.5, Mono-InternVL, InternVL 2.0
*
T + I
<sup>
E+
</sup>
*
`OpenGVLab/InternVL2_5-4B`
,
`OpenGVLab/Mono-InternVL-2B`
,
`OpenGVLab/InternVL2-4B`
, etc.
*
`OpenGVLab/InternVideo2_5_Chat_8B`
,
`OpenGVLab/InternVL2_5-4B`
,
`OpenGVLab/Mono-InternVL-2B`
,
`OpenGVLab/InternVL2-4B`
, etc.
*
*
✅︎
*
✅︎
...
...
vllm/model_executor/models/internvl.py
View file @
b1cc4dfe
...
...
@@ -981,5 +981,12 @@ class InternVLChatModel(nn.Module, SupportsMultiModal, SupportsPP):
def
load_weights
(
self
,
weights
:
Iterable
[
Tuple
[
str
,
torch
.
Tensor
]])
->
Set
[
str
]:
loader
=
AutoWeightsLoader
(
self
)
# unused modules appear in OpenGVLab/InternVideo2_5_Chat_8B
skip_prefixes
=
[
"action_embed"
,
"temporal_embed"
,
"track_embed"
,
"track_embed_decoder"
,
"box_token"
,
"cg_criterion"
,
"cg_model"
,
"loc_encoder"
,
"loc_decoder"
,
"sam"
,
"temporal_token"
,
"track_token"
]
loader
=
AutoWeightsLoader
(
self
,
skip_prefixes
=
skip_prefixes
)
return
loader
.
load_weights
(
weights
)
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