AI SeedbankHelp preserve open and free AI for humanity's future

← All models

Salesforce_blip-vqa-base

Salesforce · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


pipeline_tag: 'visual-question-answering' tags:

  • visual-question-answering inference: false languages:
  • en license: bsd-3-clause

BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generation

Model card for BLIP trained on visual question answering- base architecture (with ViT base backbone).

Pull figure from BLIP official repo

TL;DR

Authors from the paper write in the abstract:

Vision-Language Pre-training (VLP) has advanced the performance for many vision-language tasks. However, most existing pre-trained models only excel in either understanding-based tasks or generation-based tasks. Furthermore, performance improvement has been largely achieved by scaling up the dataset with noisy image-text pairs collected from the web, which is a suboptimal source of supervision. In this paper, we propose BLIP, a new VLP framework which transfers flexibly to both vision-language understanding and generation tasks. BLIP effectively utilizes the noisy web data by bootstrapping the captions, where a captioner generates synthetic captions and a filter removes the noisy ones. We achieve state-of-the-art results on a wide range of vision-language tasks, such as image-text retrieval (+2.7% in average recall@1), image captioning (+2.8% in CIDEr), and VQA (+1.6% in VQA score). BLIP also demonstrates strong generalization ability when directly transferred to videolanguage tasks in a zero-shot manner. Code, models, and datasets are released.

Usage

You can use this model for conditional and un-conditional image captioning

Using the Pytorch model

Running the model on CPU

Click to expand

import requests
from PIL import Image
from transformers import BlipProcessor, BlipForQuestionAnswering

processor = BlipProcessor.from_pretrained("Salesforce/blip-vqa-base")
model = BlipForQuestionAnswering.from_pretrained("Salesforce/blip-vqa-base")

img_url = 'https://storage.googleapis.com/sfr-vision-language-research/BLIP/demo.jpg' 
raw_image = Image.open(requests.get(img_url, stream=True).raw).convert('RGB')

question = "how many dogs are in the picture?"
inputs = processor(raw_image, question, return_tensors="pt")

out = model.generate(**inputs)
print(processor.decode(out[0], skip_special_tokens=True))
>>> 1

Running the model on GPU

In full precision

Click to expand

import requests
from PIL import Image
from transformers import BlipProcessor, BlipForQuestionAnswering

processor = BlipProcessor.from_pretrained("Salesforce/blip-vqa-base")
model = BlipForQuestionAnswering.from_pretrained("Salesforce/blip-vqa-base").to("cuda")

img_url = 'https://storage.googleapis.com/sfr-vision-language-research/BLIP/demo.jpg' 
raw_image = Image.open(requests.get(img_url, stream=True).raw).convert('RGB')

question = "how many dogs are in the picture?"
inputs = processor(raw_image, question, return_tensors="pt").to("cuda")

out = model.generate(**inputs)
print(processor.decode(out[0], skip_special_tokens=True))
>>> 1
In half precision (float16)

Click to expand

import torch
import requests
from PIL import Image
from transformers import BlipProcessor, BlipForQuestionAnswering

processor = BlipProcessor.from_pretrained("ybelkada/blip-vqa-base")
model = BlipForQuestionAnswering.from_pretrained("ybelkada/blip-vqa-base", torch_dtype=torch.float16).to("cuda")

img_url = 'https://storage.googleapis.com/sfr-vision-language-research/BLIP/demo.jpg' 
raw_image = Image.open(requests.get(img_url, stream=True).raw).convert('RGB')

question = "how many dogs are in the picture?"
inputs = processor(raw_image, question, return_tensors="pt").to("cuda", torch.float16)

out = model.generate(**inputs)
print(processor.decode(out[0], skip_special_tokens=True))
>>> 1

Ethical Considerations

This release is for research purposes only in support of an academic paper. Our models, datasets, and code are not specifically designed or evaluated for all downstream purposes. We strongly recommend users evaluate and address potential concerns related to accuracy, safety, and fairness before deploying this model. We encourage users to consider the common limitations of AI, comply with applicable laws, and leverage best practices when selecting use cases, particularly for high-risk scenarios where errors or misuse could significantly impact people’s lives, rights, or safety. For further guidance on use cases, refer to our AUP and AI AUP.

BibTex and citation info

@misc{https://doi.org/10.48550/arxiv.2201.12086,
  doi = {10.48550/ARXIV.2201.12086},
  
  url = {https://arxiv.org/abs/2201.12086},
  
  author = {Li, Junnan and Li, Dongxu and Xiong, Caiming and Hoi, Steven},
  
  keywords = {Computer Vision and Pattern Recognition (cs.CV), FOS: Computer and information sciences, FOS: Computer and information sciences},
  
  title = {BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generation},
  
  publisher = {arXiv},
  
  year = {2022},
  
  copyright = {Creative Commons Attribution 4.0 International}
}

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:d96c83f34f08de2b131a1e5ea8b6efe2581d251f&dn=Salesforce_blip-vqa-base

Open magnet in torrent client · infohash d96c83f34f08de2b131a1e5ea8b6efe2581d251f

Files & hashes

PathSizesha1sha256
README.md5.3 KB (5,459 B)6f58bf5d1e4f4bd36cd06ac6271aad8e070d5ea403e051ff0a0461a06892f90ac0e10bd2eebc2dd47c3ffa65092b31576aa37e4c
config.json4.5 KB (4,559 B)ec0a86bf569362b73d6d86bf2b8a225603ea09a1689a09e2a9980b7fcad329271c032254fde23b1ee7a90c67b003e1867dc9c098
model.safetensors1.43 GB (1,538,800,584 B)e7043f67db30678218082a0075b83bd992a7c4ba33786eed34def0c95fa948128cb4386be9b9219aa2c2e25f1c9c744692121bb7
preprocessor_config.json445 B (445 B)9edc3be35940faf780eb39e0191d0b8a2b13c3290aa66e2e9ac3ea3b5cd4388c35072e22db4e1cc1f96c7872bed07749c712ade1
pytorch_model.bin1.43 GB (1,538,966,629 B)9b0b34b4852477c93fdbd28ad2ba4708c698b43cd47763c493a03f5e10b6d6472b2a8d995c8cbb6d9a466eede3d033fafd94d5a4
special_tokens_map.json125 B (125 B)a8b3208c2884c4efb86e49300fdd3dc877220cdfb6d346be366a7d1d48332dbc9fdf3bf8960b5d879522b7799ddba59e76237ee3
tokenizer.json694.7 KB (711,396 B)688882a79f44442ddc1f60d70334a7ff5df0fb47d241a60d5e8f04cc1b2b3e9ef7a4921b27bf526d9f6050ab90f9267a1f9e5c66
tokenizer_config.json592 B (592 B)59e3d51f010f49c6fe6152cba9f1a1e30e1370d948d1c9120fe61c9741286050189b030e936f23797a65fd0a179078661e1c43bb
vocab.txt226.1 KB (231,508 B)fb140275c155a9c7c5a3b3e0e77a9e839594a93807eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3

Cite this release

Canonical URL
https://aiseedbank.org/models/Salesforce_blip-vqa-base/
Slug
Salesforce_blip-vqa-base
Infohash
d96c83f34f08de2b131a1e5ea8b6efe2581d251f
License
bsd-3-clause
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: Salesforce_blip-vqa-base.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorySalesforce/blip-vqa-base
Revision (pinned)787b3d35d57e49572baabd22884b3d5a05acf072
Fetched at2026-09-03T20:25:41Z
License at fetchbsd-3-clause
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-03T20:26:12Z

bsd-3-clause2.87 GB (3,078,721,297 bytes)transformerspytorchsafetensorsblipvisual-question-answering1 language (tf)paper: 2201.12086