From 27b276b373fdd1ab0ed3316584a6f990726eb67c Mon Sep 17 00:00:00 2001 From: DarkLight1337 Date: Sat, 7 Dec 2024 09:47:40 +0000 Subject: [PATCH] Fix redundant code Signed-off-by: DarkLight1337 --- vllm/v1/engine/mm_input_mapper.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/vllm/v1/engine/mm_input_mapper.py b/vllm/v1/engine/mm_input_mapper.py index f056e60908cbb..45882f8f076d4 100644 --- a/vllm/v1/engine/mm_input_mapper.py +++ b/vllm/v1/engine/mm_input_mapper.py @@ -23,10 +23,6 @@ def process_inputs( mm_data: MultiModalDataDict, mm_processor_kwargs: Optional[Dict[str, Any]], ) -> List[MultiModalKwargs]: - # Skip this redundant step if merged processor has been applied - if isinstance(mm_data, MultiModalKwargs): - return [mm_data] - image_inputs = mm_data["image"] if not isinstance(image_inputs, list): image_inputs = [image_inputs]