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
0bec63fa
Unverified
Commit
0bec63fa
authored
Dec 03, 2025
by
JackieWu
Committed by
GitHub
Dec 03, 2025
Browse files
[BugFix] fix imgs_pos in hunyuan_vl (#29879)
Co-authored-by:
Isotr0py
<
mozf@mail2.sysu.edu.cn
>
parent
c719c405
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/transformers_utils/processors/hunyuan_vl.py
vllm/transformers_utils/processors/hunyuan_vl.py
+1
-1
No files found.
vllm/transformers_utils/processors/hunyuan_vl.py
View file @
0bec63fa
...
@@ -123,7 +123,7 @@ class HunYuanVLProcessor(ProcessorMixin):
...
@@ -123,7 +123,7 @@ class HunYuanVLProcessor(ProcessorMixin):
attention_mask
=
input_ids
.
ne
(
self
.
pad_id
)
attention_mask
=
input_ids
.
ne
(
self
.
pad_id
)
text_inputs
[
"attention_mask"
]
=
attention_mask
text_inputs
[
"attention_mask"
]
=
attention_mask
text_inputs
[
"imgs_pos"
]
=
[
self
.
get_imgs_pos
(
input_ids
)
]
text_inputs
[
"imgs_pos"
]
=
[
self
.
get_imgs_pos
(
e
)
for
e
in
input_ids
]
# image_inputs["imgs"] = [[image_inputs["pixel_values"]]]
# image_inputs["imgs"] = [[image_inputs["pixel_values"]]]
return_tensors
=
kwargs
.
pop
(
"return_tensors"
,
None
)
return_tensors
=
kwargs
.
pop
(
"return_tensors"
,
None
)
...
...
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