Skip to content

vllm.model_executor.models.embedding_gemma2

EmbeddingGemma2: bidirectional Gemma4-derived multimodal embedding model.

Classes:

EmbeddingGemma2Attention

Bases: Module

Bidirectional attention with sliding window offset for EmbeddingGemma2.

EmbeddingGemma2DecoderLayer

Bases: Module

Transformer decoder layer for EmbeddingGemma2 text model with PLE gating.

EmbeddingGemma2DummyInputsBuilder

Bases: Gemma4DummyInputsBuilder

Dummy input builder for EmbeddingGemma2 profiling and testing.

EmbeddingGemma2Model

Bases: Module, SupportsMultiModal, VllmModelForPooling

Multimodal pooling embedding model supporting text, vision, and audio.

EmbeddingGemma2MultiModalProcessor

Bases: Gemma4MultiModalProcessor

Multimodal input processor for EmbeddingGemma2.

EmbeddingGemma2PLEBlock

Bases: Module

Per-layer-embedding residual block (mirrors HF ple_block).

EmbeddingGemma2ProcessingInfo

Bases: Gemma4ProcessingInfo

Processing information and token budgeting for EmbeddingGemma2.

EmbeddingGemma2TextModel

Bases: Module

Text embedding backbone for EmbeddingGemma2 with bidirectional attention.

EmbeddingGemma2TextPLE

Bases: Module

Per-layer embedding (PLE) projection and normalization module.