vllm.model_executor.models.internvl
¶
Classes:
-
BaseInternVLDummyInputsBuilder–Basic image-only DummyInputsBuilder for InternVL-style models.
-
BaseInternVLMultiModalProcessor–Basic image-only MultiModalProcessor for InternVL-style models.
-
BaseInternVLProcessingInfo–Basic image-only ProcessingInfo for InternVL-style models.
-
InternVLChatModel– -
InternVLDummyInputsBuilder–InternVL DummyInputsBuilder extended for video support.
-
InternVLImageEmbeddingInputs–Dimensions:
-
InternVLImagePixelInputs–Dimensions:
-
InternVLMultiModalProcessor–InternVL MultiModalProcessor extended for video support.
-
InternVLProcessingInfo–InternVL ProcessingInfo extended for video processing.
-
InternVLVideoEmbeddingInputs–Dimensions:
-
InternVLVideoPixelInputs–Dimensions:
BaseInternVLDummyInputsBuilder
¶
BaseInternVLMultiModalProcessor
¶
BaseInternVLProcessingInfo
¶
InternVLChatModel
¶
Bases: Module, SupportsMultiModal, SupportsPP, SupportsLoRA, SupportsEncoderCudaGraph
Methods:
-
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
¶
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