vllm.model_executor.models.deepseek_vl2
¶
Inference-only Deepseek-VL2 model compatible with HuggingFace weights.
Classes:
-
DeepseekVL2ImagePixelInputs–Dimensions:
-
DeepseekVL2VImageEmbeddingInputs–Dimensions:
-
DeepseekVLV2ForCausalLM–
DeepseekVL2ImagePixelInputs
¶
Bases: TensorSchema
Dimensions: - bnp: Batch size * number of images * number of patches - p: Number of patches - c: Number of channels (3) - h: Height of each image - w: Width of each image
DeepseekVL2VImageEmbeddingInputs
¶
Bases: TensorSchema
Dimensions: - bn: Batch size * number of images - f: Image feature size - h: Hidden size (must match language model backbone)
DeepseekVLV2ForCausalLM
¶
Bases: Module, SupportsMultiModal, SupportsPP, SupportsEncoderCudaGraph
Methods:
-
postprocess_encoder_output–Assemble per-image embeddings from raw per-tile projector output.
_proj_hw
cached
property
¶
Return (h, w) of the projector output per tile.
_get_parent_and_attr(root, dotted_name)
¶
Return (parent_module, final_attr_name) for a dotted module path.
postprocess_encoder_output(outputs, indices, per_item_out_tokens, dest, clone=False, batch_mm_kwargs=None)
¶
Assemble per-image embeddings from raw per-tile projector output.
outputs["default"] has shape [N_tiles_captured, hw, n_embed].
This method re-applies newlines and the view-separator that the
eager _pixel_values_to_embedding path inserts in-line.