Skip to content
IJK

BLIP-2: A Q-Former Between a Frozen Encoder and a Frozen LLM

By IJK ·

What a Hugging Face guide says BLIP-2 adds between an image encoder and a language model and which parts remain frozen.

What BLIP-2 adds

BLIP-2 bridges the modality gap between vision and language models by adding a lightweight Querying Transformer (Q-Former) between an off-the-shelf frozen pre-trained image encoder and a frozen large language model. [1]

What is trainable

Q-Former is the only trainable part of BLIP-2; both the image encoder and language model remain frozen. [2]

feedsfeedsA frozen image encoderoff-the-shelf and pre-trainedQ-Formera lightweight Querying Transformer, the only trai...A frozen large language modelremains frozen
What does BLIP-2 train?

Sources

  1. The Hugging Face source says: BLIP-2 bridges the modality gap between vision and language models by adding a lightweight Querying Transformer (Q-Former) between an off-the-shelf frozen pre-trained image encoder and a frozen large language model. Zero-shot image-to-text generation with BLIP-2
  2. The Hugging Face source says: Q-Former is the only trainable part of BLIP-2; both the image encoder and language model remain frozen. Zero-shot image-to-text generation with BLIP-2

Editorial (AI-assisted; automatically checked, not human-reviewed). Each statement is linked to its source; check the source before relying on a detail.

  • blip 2
  • multimodal
  • vision language
  • hugging face