Skip to content

Commit 2135cac

Browse files
authored
[Bugfix] Fix wrong multi_modal_input format for CPU runner (#5451)
1 parent 7d19de2 commit 2135cac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vllm/worker/cpu_model_runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,8 @@ def execute_model(
343343
"kv_caches": kv_caches,
344344
"attn_metadata": attn_metadata,
345345
}
346-
if self.vision_language_config:
347-
execute_model_kwargs.update({"image_input": multi_modal_input})
346+
if self.vision_language_config and multi_modal_input is not None:
347+
execute_model_kwargs.update(multi_modal_input)
348348

349349
hidden_states = model_executable(**execute_model_kwargs)
350350

0 commit comments

Comments
 (0)