Skip to content

vllm.model_executor.models.eagle2_5_vl

Classes:

Eagle2_5_VLDummyInputsBuilder

Bases: BaseInternVLDummyInputsBuilder[Eagle2_5_VLProcessingInfo]

Dummy inputs builder for Eagle2.5-VL model.

Eagle2_5_VLForConditionalGeneration

Bases: Module, SupportsMultiModal, SupportsPP, SupportsLoRA

Eagle2.5-VL model for conditional generation.

Architecture
  • Vision Encoder: SigLIP
  • Language Model: Qwen2
  • Projection: MLP with pixel shuffle downsampling

Methods:

_init_mlp1(config)

Initialize MLP projection layer.

_init_vision_model(config, quant_config, prefix)

Initialize SigLIP vision model.

_parse_and_validate_image_input(**kwargs)

Parse and validate image inputs.

_process_image_input(image_input)

Process image input to get embeddings.

compute_logits(hidden_states)

Compute logits from hidden states.

embed_input_ids(input_ids, multimodal_embeddings=None, *, is_multimodal=None)

Embed input IDs with optional multimodal embeddings.

embed_multimodal(**kwargs)

Embed multimodal inputs.

extract_feature(pixel_values)

Extract visual features from pixel values.

Parameters:

  • pixel_values

    (Tensor) –

    Input pixel values of shape (batch, channels, height, width)

Returns:

  • Tensor –

    Visual embeddings

forward(input_ids, positions, intermediate_tensors=None, inputs_embeds=None, **kwargs)

Forward pass through the model.

get_mm_mapping()

Get the module prefix mapping for multimodal models.

load_weights(weights)

Load model weights.

pixel_shuffle(x, scale_factor=0.5)

Pixel shuffle operation for downsampling vision features.

Parameters:

  • x

    (Tensor) –

    Input tensor of shape (n, w, h, c)

  • scale_factor

    (float, default: 0.5 ) –

    Downsampling factor

Returns:

  • Tensor –

    Downsampled tensor

Eagle2_5_VLImageEmbeddingInputs

Bases: TensorSchema

Dimensions: - n: Number of images - f: Total image feature size - h: Hidden size (must match the hidden size of language model backbone)

Eagle2_5_VLImagePixelInputs

Bases: TensorSchema

Dimensions: - bn: Batch size * number of images - bnp: Batch size * number of images * (1 + num_patches) - c: Number of channels (3) - h: Height of each image patch - w: Width of each image patch

Eagle2_5_VLMultiModalProcessor

Bases: BaseInternVLMultiModalProcessor[Eagle2_5_VLProcessingInfo]

Multi-modal processor for Eagle2.5-VL model.

Eagle2_5_VLProcessingInfo

Bases: BaseInternVLProcessingInfo

Processing info for Eagle2.5-VL model.