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
55e081fb
Unverified
Commit
55e081fb
authored
Oct 14, 2024
by
hhzhang16
Committed by
GitHub
Oct 14, 2024
Browse files
[Bugfix] Update InternVL input mapper to support image embeds (#9351)
parent
8e836d98
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
vllm/model_executor/models/internvl.py
vllm/model_executor/models/internvl.py
+2
-0
No files found.
vllm/model_executor/models/internvl.py
View file @
55e081fb
...
...
@@ -342,6 +342,8 @@ class InternVLInputPipeline:
elif
is_list_of
(
data
,
Image
.
Image
):
# we can't stack here because images may have different num_patches
data
=
[
image_pixel_values_mapper
(
img
)
for
img
in
data
]
else
:
return
MultiModalInputs
({
"image_embeds"
:
data
})
model_config
=
ctx
.
model_config
tokenizer
=
cached_get_tokenizer
(
model_config
.
tokenizer
,
...
...
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