Skip to content

vllm.model_executor.models.step3_vl

Classes:

Step3VLForConditionalGeneration

Bases: Module, SupportsMultiModal, SupportsPP, SupportsEncoderCudaGraph

Methods:

postprocess_encoder_output(outputs, indices, per_item_out_tokens, dest, clone=False, batch_mm_kwargs=None)

CPU-side per-item merge after dual-path graph replay.

outputs['global'] contains global-image features and outputs['local'] contains local-patch features (or None when there are no patches).

Step3VLImageEmbeddingInputs

Bases: TensorSchema

Dimensions: - bn: Batch size * number of images - f: Image feature size - h: Hidden size (must match the hidden size of language model backbone)

Step3VLImagePixelInputs

Bases: TensorSchema

Dimensions: - bn: Batch size * number of images - c: Number of channels (3) - h: Height - w: Width - bnp: Batch size * number of images * number of patches - hp: Height of patch - wp: Width of patch

Step3VisionAttention

Bases: Module

Multi-headed attention from 'Attention Is All You Need' paper.

Methods:

  • forward –

    Input shape: Batch x Time x Channel.

forward(hidden_states)

Input shape: Batch x Time x Channel.