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
dd2b5633
Unverified
Commit
dd2b5633
authored
Dec 21, 2024
by
Woosuk Kwon
Committed by
GitHub
Dec 21, 2024
Browse files
[V1][Bugfix] Skip hashing empty or None mm_data (#11386)
Signed-off-by:
Woosuk Kwon
<
woosuk.kwon@berkeley.edu
>
parent
47a0b615
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
vllm/v1/engine/mm_input_mapper.py
vllm/v1/engine/mm_input_mapper.py
+4
-0
No files found.
vllm/v1/engine/mm_input_mapper.py
View file @
dd2b5633
...
@@ -180,6 +180,10 @@ class MMHasher:
...
@@ -180,6 +180,10 @@ class MMHasher:
return
None
return
None
mm_data
=
prompt
[
"multi_modal_data"
]
mm_data
=
prompt
[
"multi_modal_data"
]
if
not
mm_data
:
# mm_data can be None or an empty dict.
return
None
image_inputs
=
mm_data
[
"image"
]
image_inputs
=
mm_data
[
"image"
]
return
self
.
hash_images
(
image_inputs
)
return
self
.
hash_images
(
image_inputs
)
...
...
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