Model reference · open weights
blip-image-captioning-large is an open-weight language model from Salesforce, listed in the AxForge catalogue. AxForge can bring it up on EU-owned hardware for you on request — with the licence handled where one is required.
About
BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generation Model card for image captioning pretrained on COCO dataset - base architecture (with ViT large backbone). 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 Running the model on GPU In full precision In half precision (float16) 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. Bib
Summarised from the published model card. Read the full card on the HuggingFace links below.
Specifications
| Maker | Salesforce |
|---|---|
| Type | Language models |
| Parameters (lead) | 470M |
| Variants | 1 |
| Runs with | transformers |
| Released | 2022-12-13 |
| Popularity | 476k downloads / month |
| Likes | 1,487 |
| Licence | Open weights |
How it works
Variants
Open weights ship in several sizes and precisions. One page, all the variants — pick the one that fits your GPU. VRAM figures are estimates from model size.
| Variant | Params | Precision | VRAM | Fits 16 GB | Weights |
|---|---|---|---|---|---|
| blip-image-captioning-large | 470M | BF16 | ~1.1 GB | ✓ | Weights ↗ |
Using it via the API
Once AxForge deploys blip-image-captioning-large for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (blip-image-captioning-large below is illustrative; you get the exact model name on deployment.)
$ curl -sS https://api.axforge.ai/v1/chat/completions \
-H "Authorization: Bearer $AXFORGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"blip-image-captioning-large","messages":[{"role":"user","content":"Hello"}]}'
Licence
Open weights under bsd-3-clause — commercial use is permitted. Deploy it on AxForge EU hardware on request. Read the licence ↗