vllm.model_executor.models.colmodernvbert
¶
ColModernVBERT: multimodal late-interaction retrieval model.
Combines SigLIP vision encoder + ModernBERT text encoder with a pixel shuffle connector and ColBERT-style 128-dim per-token embeddings.
Reference: https://huggingface.co/ModernVBERT/colmodernvbert-merged
Classes:
-
ColModernVBertConnector–Pixel shuffle spatial reduction followed by a linear projection.
-
ColModernVBertForRetrieval–ColModernVBERT multimodal late-interaction retrieval model.
ColModernVBertConnector
¶
Bases: Module
Pixel shuffle spatial reduction followed by a linear projection.
Reduces the vision encoder's token count by factor^2 via pixel-shuffle
spatial rearrangement, then projects the concatenated channels to the text
encoder's hidden size with a single bias-free linear layer.
Methods:
-
pixel_shuffle–Spatial rearrangement that reduces seq length by factor^2.
pixel_shuffle(features)
¶
Spatial rearrangement that reduces seq length by factor^2.
ColModernVBertForRetrieval
¶
Bases: Module, SupportsMultiModal, SupportsLateInteraction
ColModernVBERT multimodal late-interaction retrieval model.
Architecture
Image -> SiglipVisionModel -> ColModernVBertConnector ↓ Text -> ModernBertEmbeddings → [merge] → ModernBertLayers → norm ↓ custom_text_proj → L2 norm ↓ per-token 128-d embeddings