whatisgithub

What is blip?

salesforce/blip — explained in plain English

Analysis updated 2026-06-26

5,707Jupyter NotebookAudience · researcherComplexity · 4/5Setup · hard

In one sentence

BLIP is a deprecated Salesforce AI research model that handles image captioning, visual question answering, and image-text retrieval, trained with a novel data-cleaning technique on up to 129 million image-text pairs.

Mindmap

mindmap
  root((BLIP))
    What it does
      Image captioning
      Visual QA
      Image-text retrieval
    Training method
      CapFilt technique
      Web data cleaning
      Pre-trained weights
    Tech stack
      PyTorch
      Python
      Multi-GPU training
    Audience
      AI researchers
      Vision ML teams
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Generate automatic written captions for images using pre-trained BLIP model weights without training from scratch.

USE CASE 2

Build a visual question answering system that takes a photo and a typed question and returns a natural language answer.

USE CASE 3

Retrieve the most relevant image from a dataset given a text query using BLIP's image-text matching capability.

What is it built with?

PythonPyTorchJupyter NotebookCUDA

How does it compare?

salesforce/blippyportfolio/pyportfoliooptbentrevett/pytorch-seq2seq
Stars5,7075,7165,689
LanguageJupyter NotebookJupyter NotebookJupyter Notebook
Setup difficultyhardeasymoderate
Complexity4/53/53/5
Audienceresearcherdatadeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Training requires 8-16 A100 GPUs, inference can be tested via the provided Colab notebook without local GPU setup.

So what is it?

BLIP (Bootstrapping Language-Image Pre-training) is a research project from Salesforce AI Research that produced a model capable of understanding and generating language about images. The README marks the repository as deprecated and no longer supported, and recommends using LAVIS, a newer library from the same team that incorporates BLIP and other models in one place. The model was trained to handle several tasks that require both reading an image and producing or understanding text about it. Image captioning produces a written description of a photo automatically. Visual question answering takes an image and a typed question, then returns an answer. Image-text retrieval finds the most relevant image for a given text query, or the most relevant text for a given image. Natural language visual reasoning judges whether a statement about an image is true. All four tasks are covered by the code in this repository. The key idea behind BLIP is a training technique called CapFilt, which stands for Captioning and Filtering. The researchers collected large quantities of image-text pairs from the web, generated their own captions for the images using an initial model, and then used a separate filtering model to remove low-quality or incorrect captions from both the web-sourced and generated text. This cleaned dataset was used to train the final model. Pre-trained weights trained on 14 million and 129 million image-text pairs are available for download. Running the code requires PyTorch and multiple GPUs for training: the README examples use 8 to 16 A100 GPUs for fine-tuning. For people who only want to try the model without setting up hardware, a Colab notebook demo is available that runs without a GPU, and a web interface was hosted on Hugging Face Spaces. Fine-tuned model weights for each supported task are also provided as direct downloads so researchers can evaluate without training from scratch.

Copy-paste prompts

Prompt 1
Using the BLIP model from this repository, show me how to load the pre-trained image captioning weights and generate a caption for a local image file.
Prompt 2
How do I fine-tune BLIP for visual question answering on my own dataset using the provided training script on multiple GPUs?
Prompt 3
Set up BLIP for image-text retrieval: show me how to compute similarity scores between a text query and a collection of images and return the top matches.
Prompt 4
Walk me through running the BLIP Colab notebook demo for image captioning without needing to set up a local GPU environment.

Frequently asked questions

What is blip?

BLIP is a deprecated Salesforce AI research model that handles image captioning, visual question answering, and image-text retrieval, trained with a novel data-cleaning technique on up to 129 million image-text pairs.

What language is blip written in?

Mainly Jupyter Notebook. The stack also includes Python, PyTorch, Jupyter Notebook.

How hard is blip to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is blip for?

Mainly researcher.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.