Skip to content

vllm.model_executor.models.nemotron_vl

Classes:

LlamaNemotronVLChatModel

Bases: Module, SupportsMultiModal, SupportsPP, SupportsLoRA

Methods:

_call_vision_model(pixel_values)

Call vision model and return embeddings.

Override this method in subclasses to handle different vision model interfaces (e.g., SigLIP vs C-RADIO).

get_mm_mapping()

Get the module prefix in multimodal models.

LlamaNemotronVLEmbedProcessingInfo

Bases: BaseInternVLProcessingInfo

Processing info for LlamaNemotronVL embedding model.

LlamaNemotronVLForEmbedding

Bases: LlamaNemotronVLChatModel, VllmModelForPooling

LlamaNemotronVL model for embeddings.

Inherits from LlamaNemotronVLChatModel and specializes it for embedding tasks: - Uses SigLIP vision encoder instead of C-RADIO - Uses bidirectional LLaMA (via llm_config) instead of causal LLaMA - Adds pooler for embedding output instead of generating logits

Methods:

  • load_weights –

    Override to use different weight mapping for SigLIP.

_call_vision_model(pixel_values)

Override to handle SigLIP interface.

_init_mlp1(config, vit_hidden_size=None, vision_projection_hidden_size=None)

Override to use different MLP structure for embedding model.

_init_vision_model(config, quant_config, *, prefix)

Override to use SigLIP instead of C-RADIO.

load_weights(weights)

Override to use different weight mapping for SigLIP.

LlamaNemotronVLForSequenceClassification

Bases: LlamaNemotronVLForEmbedding, SupportsCrossEncoding

LlamaNemotronVL model variant for sequence classification / reranking.

NemotronVLProcessingInfo

Bases: BaseInternVLProcessingInfo

Processing info for Nemotron VL models.