We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5886aa4 commit 36e7670Copy full SHA for 36e7670
vllm/model_executor/models/minicpmv.py
@@ -487,6 +487,12 @@ def _parse_and_validate_inputs(
487
image_embeds = kwargs.pop("image_embeds", None)
488
489
if image_embeds is not None:
490
+ if not isinstance(image_embeds, (torch.Tensor, list)):
491
+ raise ValueError(f"Incorrect type of image embeds. "
492
+ f"Got type: {type(image_embeds)}")
493
+ if isinstance(image_embeds, list):
494
+ image_embeds = torch.concat(image_embeds)
495
+
496
return MiniCPMVImageEmbeddingInputs(
497
image_bounds=self._get_image_bounds(input_ids, im_start_id,
498
im_end_id, slice_start_id,
0 commit comments