Downloads · 30 days
171
3% of all-time downloads
Salesforce/xgen-mm-phi3-mini-base-r-v1.5
xgen-mm-phi3-mini-base-r-v1.5 is a image-text-to-text model from Salesforce. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
xGen-MM is a series of the latest foundational Large Multimodal Models (LMMs) developed by Salesforce AI Research. This series advances upon the successful designs of the BLIP series, incorporating fundamental enhance…
Downloads · 30 days
171
3% of all-time downloads
All-time downloads
5.2K
Public
Parameters
4.4B
17.4 GB on disk
Likes
21
Public
Click a slice to open those files.
.safetensors17.4 GB · 100%
From the Hugging Face model README
xGen-MM is a series of the latest foundational Large Multimodal Models (LMMs) developed by Salesforce AI Research. This series advances upon the successful designs of the BLIP series, incorporating fundamental enhancements that ensure a more robust and superior foundation. These models have been trained at scale on high-quality image caption datasets and interleaved image-text data.
In the v1.5 (08/2024) release, we present a series of XGen-MM models including:
xgen-mm-phi3-mini-instruct-interleave-r-v1.5
xgen-mm-phi3-mini-base-r-v1.5xgen-mm-phi3-mini-instruct-singleimg-r-v1.5xgen-mm-phi3-mini-instruct-dpo-r-v1.5For more details, check out our tech report, fine-tuning code, and project page (coming soon).
| Model | Shot | VQAv2 | TextVQA | OKVQA | COCO | NoCaps | TextCaps |
|---|---|---|---|---|---|---|---|
| Flamingo-3B | 0 | 49.2 | 30.1 | 41.2 | 73.0 | - | - |
| 4 | 53.2 | 32.7 | 43.3 | 85.0 | - | - | |
| 8 | 55.4 | 32.4 | 44.6 | 90.6 | - | - | |
| MM1-3B | 0 | 46.2 | 29.4 | 26.1 | 73.5 | 55.6 | 63.3 |
| 4 | 57.9 | 45.3 | 44.6 | 112.3 | 99.7 | 84.1 | |
| 8 | 63.6 | 44.6 | 48.4 | 114.6 | 104.7 | 88.8 | |
| xGen-MM-base | 0 | 43.1 | 34.0 | 28.0 | 67.2 | 82.6 | 69.5 |
| 4 | 66.3 | 54.2 | 48.9 | 107.6 | 100.8 | 89.9 | |
| 8 | 66.9 | 55.3 | 50.1 | 109.8 | 104.6 | 94.0 |
Below are some qualitative examples of the multi-modal in-context learning capacity of our base model.
<img src="icl_examples/art.png" alt="Art" width=500> <img src="icl_examples/animal.png" alt="Animal" width=500> <img src="icl_examples/street.png" alt="Street" width=500>Please check out our inference notebook for example code to use our model.
The pretraining evaluation is implemented based on OpenFlamingo: An open-source framework for training large multimodal models.. Few-shot examples are randomly drawn so there will be some variance with different random seeds.
The main data sources are from the internet, including webpages, image stock sites, and curated datasets released by the research community. We have excluded certain data, such as LAION, due to known CSAM concerns. The model may be subject to bias from the original data source, as well as bias from LLMs and commercial APIs. We strongly recommend users assess safety and fairness before applying to downstream applications.
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.
Our code and weights are released under the Apache 2.0 license.
Our training code is based on OpenFlamingo: An open-source framework for training large multimodal models., and part of our data preprocessing code is adapted from LLaVA. Our evaluation code is based on VLMEvalKit: Open-source evaluation toolkit of large vision-language models (LVLMs).
We thank the authors for their open-source implementations.
@misc{blip3-xgenmm,
author = {Le Xue, Manli Shu, Anas Awadalla, Jun Wang, An Yan, Senthil Purushwalkam, Honglu Zhou, Viraj Prabhu, Yutong Dai, Michael S Ryoo, Shrikant Kendre, Jieyu Zhang, Can Qin, Shu Zhang, Chia-Chih Chen, Ning Yu, Juntao Tan, Tulika Manoj Awalgaonkar, Shelby Heinecke, Huan Wang, Yejin Choi, Ludwig Schmidt, Zeyuan Chen, Silvio Savarese, Juan Carlos Niebles, Caiming Xiong, Ran Xu},
title = {xGen-MM (BLIP-3): A Family of Open Large Multimodal Models},
year = {2024},
eprint = {2408.08872},
archivePrefix = {arXiv},
primaryClass = {cs.CV},
url = {https://arxiv.org/abs/2408.08872},
}
pip install torch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1 --index-url https://download.pytorch.org/whl/cu121
pip install open_clip_torch==2.24.0
pip install einops
pip install einops-exts
pip install transformers==4.41.1