# BLIP-2 Q-Former Projects at AI Tinkerers

> Canonical HTML: https://aitinkerers.org/technologies/blip-2-q-former
> Markdown URL: https://aitinkerers.org/technologies/blip-2-q-former.md
> Technology record last updated: 2026-04-29T14:32:19Z
> Generated: 2026-09-22T15:46:46Z

A lightweight query transformer that bridges the modality gap between frozen image encoders and large language models.

BLIP-2 leverages the Q-Former to extract fixed-length visual features from a frozen ViT-g/14 encoder, feeding them directly into LLMs like Vicuna or Flan-T5. This architecture uses a two-stage pre-training strategy: first, it forces the Q-Former to learn visual representations most relevant to text; second, it trains the module to act as an informative bottleneck for language generation. By keeping the heavy-duty backbones frozen, BLIP-2 achieves state-of-the-art zero-shot VQA performance with 54x fewer trainable parameters than Flamingo, making high-tier multimodal reasoning computationally accessible.

- Official technology site: https://arxiv.org/abs/2301.12597
- Public AI Tinkerers demos and talks: 1
- Result page: 1 of 1

## Recent Public Talks and Demos

### [Speak mk1: A multimodal mamba-attention hybrid model for speech therapy](https://dubai.aitinkerers.org/talks/rsvp_f9s0FLsNTT0)

I am currently building a mamba-attention hybrid encoder and decoder from scratch for speech therapy, not fine-tuning, not wrapping an API, but training every component end to end on my RTX 4060 laptop. The system has three components I am building in parallel: The first is a custom Mamba SSM-based audio encoder trained on LibriSpeech with multi-task phonological heads for voicing, manner, place of articulation, and correctness detection. The encoder uses a BLIP-2-style Q-Former to bridge audio representations into the language model. The second is a video pipeline using MediaPipe FaceLandmarker to isolate and analyze oral region motion frame by frame, extracting articulatory features like tongue tip position, mouth opening geometry, and lip protrusion in real time from a standard webcam. The third component is SpeakMK1LLM, which serves as the project’s core reasoning engine. To balance cutting-edge architectural research with deployment stability for the current phase, we have developed two iterations of this model: The Hybrid Prototype: A custom 70M parameter Mamba-attention hybrid model designed for high-efficiency sequence modeling. It was trained on a rigorous four-stage curriculum: general pretraining on Tinystories, domain adaptation on CHILDES, clinical knowledge injection from pubmed central, and final instruction tuning. The Deployment Model: A fine-tuned Gemma 3n E4B, which leverages the same four-stage curriculum to adapt its large-scale reasoning capabilities to the specific nuances of Speech-Language Pathology (SLP). The entire stack requires only a webcam and a microphone, which is the point — making clinical-quality articulation feedback accessible without specialized hardware or a therapist present in the room. For the demo I would show the live pipeline taking a child's speech, flagging a specific phoneme error, and generating a graded corrective prompt in real time, alongside the clinician dashboard that logs session data for remote review.

- Event context: AI Tinkerers Dubai - May Demo Day — 2026-05-23 — Dubai
- Public talk page: https://dubai.aitinkerers.org/talks/rsvp_f9s0FLsNTT0

## Related Technologies

- [Facial Landmark Detection](https://aitinkerers.org/technologies/facial-landmark-detection) ([Markdown](https://aitinkerers.org/technologies/facial-landmark-detection.md)) — 1 public demo
- [Gemma 3n E4B](https://aitinkerers.org/technologies/gemma-3n-e4b) ([Markdown](https://aitinkerers.org/technologies/gemma-3n-e4b.md)) — 1 public demo
- [LoRA](https://aitinkerers.org/technologies/lora) ([Markdown](https://aitinkerers.org/technologies/lora.md)) — 17 public demos
- [Mamba-2](https://aitinkerers.org/technologies/mamba-2) ([Markdown](https://aitinkerers.org/technologies/mamba-2.md)) — 1 public demo
- [MediaPipe FaceLandmarker](https://aitinkerers.org/technologies/mediapipe-facelandmarker) ([Markdown](https://aitinkerers.org/technologies/mediapipe-facelandmarker.md)) — 1 public demo
- [Modal](https://aitinkerers.org/technologies/modal) ([Markdown](https://aitinkerers.org/technologies/modal.md)) — 14 public demos
- [PyTorch](https://aitinkerers.org/technologies/pytorch) ([Markdown](https://aitinkerers.org/technologies/pytorch.md)) — 273 public demos
- [QLoRA](https://aitinkerers.org/technologies/qlora) ([Markdown](https://aitinkerers.org/technologies/qlora.md)) — 4 public demos
- [wav2vec 2](https://aitinkerers.org/technologies/wav2vec-2) ([Markdown](https://aitinkerers.org/technologies/wav2vec-2.md)) — 2 public demos
