Skip to content

vllm.model_executor.models.idefics3

Inference-only Idefics3 model compatible with HuggingFace weights.

Classes:

Idefics3ForConditionalGeneration

Bases: Module, SupportsMultiModal, SupportsLoRA, SupportsEncoderCudaGraph

Methods:

get_mm_mapping()

Get the module prefix in multimodal models.

Idefics3ImageEmbeddingInputs

Bases: TensorSchema

Dimensions: - bn: Batch size * number of images - f: Image feature size - h: Hidden size (must match the hidden size of language model backbone)

Idefics3ImagePixelInputs

Bases: TensorSchema

Dimensions: - bn: Batch size * number of images - bnp: Batch size * number of images * number of patches - c: Number of channels (3) - h: Height - w: Width