--- language: en datasets: - laion2b --- # OpenFlamingo-9B (CLIP ViT-L/14, MPT-7B) [Blog post]() | [Code](https://github.com/mlfoundations/open_flamingo) | [Demo]() OpenFlamingo is an open source implementation of DeepMind's [Flamingo](https://www.deepmind.com/blog/tackling-multiple-tasks-with-a-single-visual-language-model) models. This 9B-parameter model uses a [CLIP ViT-L/14](https://huggingface.co/openai/clip-vit-large-patch14) vision encoder and [MPT-7B](https://huggingface.co/mosaicml/mpt-7b) language model. ## Model Details We follow the Flamingo modeling paradigm, outfitting the layers of a pretrained, frozen language model such that they cross-attend to visual features when decoding. Following Flamingo, we freeze the vision encoder and language model but train the connecting modules on web-scraped image-text sequences. Specifically, we use a mixture of [LAION-2B](https://arxiv.org/abs/2210.08402) and [Multimodal C4](https://arxiv.org/abs/2304.06939). ## Uses OpenFlamingo models process arbitrarily interleaved sequences of images and text to output text. This allows the models to accept in-context examples and undertake tasks like captioning, visual question answering, and image classification. ### Bias, Risks, and Limitations OpenFlamingo models inherit the risks of their parent models, especially the language model. As an open-source research effort, we highly value open, accessible, reproducible multimodal model research; however, it is crucial to be aware that these models are trained on web data, have not been finetuned for safety, and thus may produce unintended, inappropriate, unreliable, and/or inaccurate outputs. Please use caution before deploying OpenFlamingo models in real applications. We also hope that OpenFlamingo enables further safety and reliability research to address these issues. In an effort to mitigate current potential biases and harms, we have deployed a text content filter on model outputs in the OpenFlamingo demo. We continue to red-team the model to understand and improve its safety. ## Evaluation
0-shot 4-shot 8-shot 16-shot 32-shot
COCO (CIDEr) 79.5 (0.2) 89.0 (0.3) 96.3 (0.1) 98.8 (0.7) 99.5 (0.1)
VQAv2 (Accuracy) 48.3 (0.1) 49.4 (0.4) 51.8 (0.4) 51.3 (0.5) 50.2 (0.6)
Flickr-30K (CIDEr) 59.5 (1.0) 65.8 (0.6) 62.9 (1.0) 62.8 (1.0) 61.3 (0.7)
OK-VQA (Accuracy) 34.7 (0.1) 34.3 (0.1) 38.4 (0.0) 39.5 (0.1) 38.1 (0.0)
TextVQA (Accuracy) 24.2 (0.5) 28.2 (0.4) 29.1 (0.1) 27.3 (0.1) 23.8 (0.2)
Vizwiz (Accuracy) 17.7 (0.7) 23.1 (0.9) 31.6 (1.5) 38.0 (1.1) 40.2 (0.7)
ImageNet (Top-1 Accuracy) - - - - -
Hateful Memes (ROC AUC) - - - - -