Skip to content

vllm.model_executor.models.phi4siglip

vLLM support for microsoft/Phi-4-reasoning-vision-15B.

Architecture: Siglip2 vision tower + MLP projector + Phi3 language model.

Classes:

Phi4ForCausalLMV

Bases: Module, SupportsMultiModal, SupportsPP

_packed_from_padded(pixel_values, pixel_attention_mask, spatial_shapes)

Convert padded NaFlex tensors to packed format for Siglip2Model.

Phi4SiglipImagePixelInputs

Bases: TensorSchema

Dimensions: - bn: Batch size * number of images - d: Max number of patches (padded across images in the batch) - fd: Features per patch (patch_size * patch_size * channels)