Skip to content

Commit 1e4f658

Browse files
committed
Fix rank for aspect_ratios
Signed-off-by: Benji Beck <[email protected]>
1 parent a45036b commit 1e4f658

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vllm/model_executor/models/mllama4.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,8 @@ def _parse_and_validate_image_input(
778778
flat_pixel_values = flatten_bn(pixel_values, concat=True)
779779
patches_per_image = flatten_bn(kwargs.pop("patches_per_image"))
780780
aspect_ratios = kwargs.pop("aspect_ratios")
781+
if aspect_ratios.ndim == 3:
782+
aspect_ratios = aspect_ratios.squeeze(1)
781783

782784
return Llama4ImagePatchInputs(
783785
type="pixel_values",

0 commit comments

Comments
 (0)