Skip to content

vllm.model_executor.models.blip

Minimal implementation of BlipVisionModel intended to be only used within a vision language model.

Classes:

  • BlipAttention –

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

  • BlipEncoder –

    Transformer encoder consisting of config.num_hidden_layers self

BlipAttention

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.

BlipEncoder

Bases: Module

Transformer encoder consisting of config.num_hidden_layers self attention layers. Each layer is a [BlipEncoderLayer].

Parameters:

  • config

    (BlipVisionConfig) –

    BlipConfig