Skip to content

Commit

Permalink
Fix Pixtral-HF
Browse files Browse the repository at this point in the history
Signed-off-by: DarkLight1337 <[email protected]>
  • Loading branch information
DarkLight1337 committed Dec 21, 2024
1 parent 38aaff8 commit 5fcb5d6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vllm/multimodal/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,11 @@ def _cached_call_fine(

for k, v in processed_modal_item.items():
# Remove the extra batch dimension (if it exists)
processed_modal_items[k].append(v.squeeze(0))
# NOTE: v may be a list instead of a tensor
if len(v) == 1:
v = v[0]

processed_modal_items[k].append(v)

for k, vs in processed_modal_items.items():
# Try to merge elements into a single tensor
Expand Down

0 comments on commit 5fcb5d6

Please sign in to comment.