Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[V1][Bugfix] Skip empty or None mm_data
Browse files Browse the repository at this point in the history
Signed-off-by: Woosuk Kwon <[email protected]>
WoosukKwon committed Dec 20, 2024
1 parent 47a0b61 commit 0add556
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vllm/v1/engine/mm_input_mapper.py
Original file line number Diff line number Diff line change
@@ -180,6 +180,10 @@ def hash_prompt_mm_data(self, prompt: PromptType) -> Optional[List[str]]:
return None

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"]

return self.hash_images(image_inputs)

0 comments on commit 0add556

Please sign in to comment.