Skip to content

Commit c2339d1

Browse files
mgazzDarkLight1337
andcommitted
Update vllm/model_executor/models/prithvi_geospatial_mae.py
Improve multimodal input handling logic Co-authored-by: Cyrus Leung <[email protected]> Signed-off-by: Michele Gazzetti <[email protected]>
1 parent b75966a commit c2339d1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

vllm/model_executor/models/prithvi_geospatial_mae.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@ def apply(
104104

105105
for k, v in mm_data.items():
106106
if isinstance(v,dict) and k == "image":
107-
for tensor_name,tensor in v.items():
108-
mm_kwargs[tensor_name] = tensor
107+
mm_kwargs.update(v)
109108
else:
110109
mm_kwargs[k] = v
111110
mm_placeholders = {"image": [PlaceholderRange(offset=0, length=0)]}

0 commit comments

Comments
 (0)