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
a0f8a796
Unverified
Commit
a0f8a796
authored
Jul 16, 2025
by
Avshalom Manevich
Committed by
GitHub
Jul 16, 2025
Browse files
[fix] fix qwen image_embeds input (#21049)
Signed-off-by:
h-avsha
<
avshalom.manevich@hcompany.ai
>
parent
18bdcf41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vllm/model_executor/models/qwen2_5_vl.py
vllm/model_executor/models/qwen2_5_vl.py
+2
-2
No files found.
vllm/model_executor/models/qwen2_5_vl.py
View file @
a0f8a796
...
@@ -974,7 +974,7 @@ class Qwen2_5_VLForConditionalGeneration(nn.Module, SupportsMultiModal,
...
@@ -974,7 +974,7 @@ class Qwen2_5_VLForConditionalGeneration(nn.Module, SupportsMultiModal,
grid_thw_list
=
grid_thw
.
tolist
()
grid_thw_list
=
grid_thw
.
tolist
()
if
image_input
[
"type"
]
==
"image_embeds"
:
if
image_input
[
"type"
]
==
"image_embeds"
:
image_embeds
=
image_input
[
"image_embeds"
]
image_embeds
=
image_input
[
"image_embeds"
]
.
type
(
self
.
visual
.
dtype
)
else
:
else
:
pixel_values
=
image_input
[
"pixel_values"
]
pixel_values
=
image_input
[
"pixel_values"
]
image_embeds
=
self
.
visual
(
pixel_values
,
grid_thw
=
grid_thw_list
)
image_embeds
=
self
.
visual
(
pixel_values
,
grid_thw
=
grid_thw_list
)
...
@@ -994,7 +994,7 @@ class Qwen2_5_VLForConditionalGeneration(nn.Module, SupportsMultiModal,
...
@@ -994,7 +994,7 @@ class Qwen2_5_VLForConditionalGeneration(nn.Module, SupportsMultiModal,
grid_thw_list
=
grid_thw
.
tolist
()
grid_thw_list
=
grid_thw
.
tolist
()
if
video_input
[
"type"
]
==
"video_embeds"
:
if
video_input
[
"type"
]
==
"video_embeds"
:
video_embeds
=
video_input
[
"video_embeds"
]
video_embeds
=
video_input
[
"video_embeds"
]
.
type
(
self
.
visual
.
dtype
)
else
:
else
:
pixel_values_videos
=
video_input
[
"pixel_values_videos"
]
pixel_values_videos
=
video_input
[
"pixel_values_videos"
]
video_embeds
=
self
.
visual
(
pixel_values_videos
,
video_embeds
=
self
.
visual
(
pixel_values_videos
,
...
...
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