Skip to content

vllm.model_executor.models.internvl

Classes:

BaseInternVLDummyInputsBuilder

Bases: BaseDummyInputsBuilder[_I]

Basic image-only DummyInputsBuilder for InternVL-style models.

BaseInternVLMultiModalProcessor

Bases: BaseMultiModalProcessor[_I]

Basic image-only MultiModalProcessor for InternVL-style models.

BaseInternVLProcessingInfo

Bases: BaseProcessingInfo

Basic image-only ProcessingInfo for InternVL-style models.

InternVLChatModel

Bases: Module, SupportsMultiModal, SupportsPP, SupportsLoRA, SupportsEncoderCudaGraph

Methods:

_get_internvl_patches_list(mm_kwargs)

Return per-item tile counts as a plain list of ints.

get_mm_mapping()

Get the module prefix in multimodal models.

InternVLDummyInputsBuilder

Bases: BaseInternVLDummyInputsBuilder[InternVLProcessingInfo]

InternVL DummyInputsBuilder extended for video support.

InternVLImageEmbeddingInputs

Bases: TensorSchema

Dimensions: - n: Number of images - f: Total image feature size - h: Hidden size (must match the hidden size of language model backbone)

InternVLImagePixelInputs

Bases: TensorSchema

Dimensions: - bn: Batch size * number of images - bnp: Batch size * number of images * (1 + num_patches) - c: Number of channels (3) - h: Height of each image patch - w: Width of each image patch

InternVLMultiModalProcessor

Bases: BaseInternVLMultiModalProcessor[InternVLProcessingInfo]

InternVL MultiModalProcessor extended for video support.

InternVLProcessingInfo

Bases: BaseInternVLProcessingInfo

InternVL ProcessingInfo extended for video processing.

InternVLVideoEmbeddingInputs

Bases: TensorSchema

Dimensions: - n: Number of videos - f: Total video feature size - h: Hidden size (must match the hidden size of language model backbone)

InternVLVideoPixelInputs

Bases: TensorSchema

Dimensions: - bvf: Batch size * number of videos * num_frames - bn: Batch size * number of images - c: Number of channels (3) - h: Height of each video frame - w: Width of each video frame