mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-05-11 17:38:00 +08:00
[V1][Bugfix] Skip hashing empty or None mm_data (#11386)
Signed-off-by: Woosuk Kwon <woosuk.kwon@berkeley.edu>
This commit is contained in:
parent
47a0b615b4
commit
dd2b5633dd
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user