Skip to content

Commit

Permalink
[Bugfix] Fix wrong multi_modal_input format for CPU runner (#5451)
Browse files Browse the repository at this point in the history
  • Loading branch information
Isotr0py committed Jun 12, 2024
1 parent 7d19de2 commit 2135cac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vllm/worker/cpu_model_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ def execute_model(
"kv_caches": kv_caches,
"attn_metadata": attn_metadata,
}
if self.vision_language_config:
execute_model_kwargs.update({"image_input": multi_modal_input})
if self.vision_language_config and multi_modal_input is not None:
execute_model_kwargs.update(multi_modal_input)

hidden_states = model_executable(**execute_model_kwargs)

Expand Down

0 comments on commit 2135cac

Please sign in to comment.