vllm.model_executor.models.siglip2navit
¶
Implementation of SiglipVisionModel intended to be only used within a vision language model.
Classes:
-
Siglip2Attention–Multi-headed attention from 'Attention Is All You Need' paper.
-
Siglip2Encoder–Transformer encoder consisting of
config.num_hidden_layers -
Siglip2EncoderLayer– -
Siglip2VisionEmbeddings– -
Siglip2VisionTransformer–
Siglip2Attention
¶
Siglip2Encoder
¶
Bases: Module
Transformer encoder consisting of config.num_hidden_layers
self attention layers. Each layer is a [Siglip2EncoderLayer].
Parameters:
-
(config¶Siglip2VisionConfig) –PreTrainedConfig
Methods:
-
forward–Args:
forward(inputs_embeds, grid_thws)
¶
inputs_embeds: Input tensor of shape
(batch_size, sequence_length, hidden_size).
Embedded representation of the input tokens.
grid_thws: Grid tensor of shape (num_patches, 3)
containing grid dimensions.
Whether or not to return a [~utils.ModelOutput] instead of
a plain tuple.