SAVRN
Search Contact SAVRN

Open-weight model · Image and text to text

blip2-opt-2.7b

by Salesforce AI Research Salesforce/blip2-opt-2.7b

BLIP-2 model, leveraging OPT-2.7b (a large language model with 2.7 billion parameters). It was introduced in the paper BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models by Li et al.

Parameters3.7B
Context
Weights30.5 GB
Licensemit
AccessOpen weights
Monthly Downloads662.5k

Runs On

What it takes to serve blip2-opt-2.7b (3.7B parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 7.5 GB 9.0 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 3.7 GB 4.5 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 1.9 GB 2.2 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Sep 18, 2026.

SAVRN's Notes on blip2-opt-2.7b

Nine gigabytes of memory is the number to plan around, which is what the 16-bit run needs with 7.5 GB of weights loaded. That puts captioning and image question answering on one 192 GB MI300X at $1.85 per hour on demand, the cheapest setup we track, with most of the card still free. Mind the gap between that figure and the download: the files total 30.5 GB because the weights are stored in float32, so size storage to the larger number.

MIT is about as light as a license gets. Commercial use, modification and redistribution are permitted, and the only obligation is keeping the copyright and permission notices with the files. Two checks: the release date is 2023-02-06 and the last update 2025-02-03, so weigh it against newer image-and-text models, and our file lists no context length, so test your own prompt and image sizes.

Model Card

By Salesforce AI Research, published under mit, revision 59a1ef6c1e51.

BLIP-2, OPT-2.7b, pre-trained only

BLIP-2 model, leveraging OPT-2.7b (a large language model with 2.7 billion parameters). It was introduced in the paper BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models by Li et al. and first released in this repository.

Disclaimer: The team releasing BLIP-2 did not write a model card for this model so this model card has been written by the Hugging Face team.

Model description

BLIP-2 consists of 3 models: a CLIP-like image encoder, a Querying Transformer (Q-Former) and a large language model.

The authors initialize the weights of the image encoder and large language model from pre-trained checkpoints and keep them frozen while training the Querying Transformer, which is a BERT-like Transformer encoder that maps a set of "query tokens" to query embeddings, which bridge the gap between the embedding space of the image encoder and the large language model.

Read the full model card (812 words)

Configuration

Architecture
Blip2ForConditionalGeneration
Layers
32
Hidden size
2,560
Attention heads
32
Vocabulary size
50,304
Stored precision
float32
Model type
blip-2

Identity and Version

Repository
Salesforce/blip2-opt-2.7b
Publisher
Salesforce AI Research
Task
Image and text to text
Modality
Image and text
Library
transformers
Parameters
3.7B parameters
Languages
en
Revision
59a1ef6c1e5117b3f65523d1c6066825bcf315e3
First published
2023-02-06
Last updated
2025-02-03

Files and Weights

18 files, 30.5 GB in total. The weights are 4 files totalling 30.5 GB in bin, safetensors.

Weights4 files · 30.5 GB
Configuration8 files · 245.6 KB
Tokenizer4 files · 4.8 MB
Documentation1 file · 8.1 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
model-00001-of-00002.safetensorsWeights10.0 GB b81228c9ac1b
model-00002-of-00002.safetensorsWeights5.0 GB 536bd73b8f1d
pytorch_model-00001-of-00002.binWeights10.0 GB 83f4604e9f2c
pytorch_model-00002-of-00002.binWeights5.5 GB b224ac0c148b
added_tokens.jsonConfiguration23 B
config.jsonConfiguration1.0 KB
generation_config.jsonConfiguration141 B
model.safetensors.index.jsonConfiguration121.7 KB
preprocessor_config.jsonConfiguration432 B
processor_config.jsonConfiguration68 B
pytorch_model.bin.index.jsonConfiguration121.7 KB
special_tokens_map.jsonConfiguration548 B
README.mdDocumentation8.1 KB
.gitattributesRepository1.5 KB
merges.txtTokenizer456.3 KB
tokenizer.jsonTokenizer3.6 MB
tokenizer_config.jsonTokenizer882 B
vocab.jsonTokenizer798.3 KB

License and Download

License
mit
Access
Open weights, no gate
Download size
30.5 GB
Download from Salesforce AI Research

Released by Salesforce AI Research through its official repository on Hugging Face. Read the license.

Built From

Memory Requirements

PrecisionWeights in memory
As published30.5 GB
16-bit7.5 GB
8-bit3.7 GB
4-bit1.9 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Compare blip2-opt-2.7b

Questions About blip2-opt-2.7b

How much GPU memory does blip2-opt-2.7b need?

About 9 GB at 16-bit and 2.2 GB at 4-bit: the weights (3.7B parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run blip2-opt-2.7b on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use blip2-opt-2.7b commercially?

Yes. blip2-opt-2.7b is released under MIT License. The MIT License is a short permissive license. It permits commercial use, modification and redistribution, provided the copyright notice and permission notice are included.

Similar Models

Model · Image and text to text

Qwen2.5-VL-3B-Instruct

Qwen

licensename: qwen-research licenselink: https://huggingface.co/Qwen/Qwen2.5-VL-3B-Instruct/blob/main/LICENSE pipelinetag: image-text-to-text - multimodal libraryname: transformers In the past five months since Qwen2-VL’s release, numerous developers have built new models on the Qwen2-VL vision-language models, providing us with valuable feedback. During this period, we focused on building more useful vision-language models. Today, we are excited to introduce the latest addition to the Qwen family: Qwen2.5-VL. Understanding long videos and capturing events: Qwen2.5-VL can comprehend videos of over 1 hour, and this time it has a new ability of cpaturing event by pinpointing the relevant video…

Open weights 3.8B parameters 128,000 tokens transformers

Model · Image and text to text

Nanonets-OCR2-3B

Nanonets

Nanonets-OCR2: A model for transforming documents into structured markdown with intelligent content recognition and semantic tagging Nanonets-OCR2 by Nanonets is a family of powerful, state-of-the-art image-to-markdown OCR models that go far beyond traditional text extraction. It transforms documents into structured markdown with intelligent content recognition and semantic tagging, making it ideal for downstream processing by Large Language Models (LLMs). Nanonets-OCR2 is packed with features designed to handle complex documents with ease: 1. Start the vLLM server. Check out Docstrange for more details. 1. Increasing the image resolution will improve model's performance. 2. For complex…

Open weights 3.8B parameters 128,000 tokens transformers

SwiftVLN: training and evaluation code for these checkpoints. - SatNav: satellite-image navigation environments, datasets, and evaluation tools. This checkpoint is designed for SwiftVLN on SatNav, the continuous-state vision-and-language navigation benchmark over satellite imagery. It predicts short navigation-action sequences from an instruction, the current RGB window, and sampled visual memory. - swiftvln-satnav: SwiftVLN trained and evaluated on SatNav - 3b: Qwen2.5-VL 3B backbone - 1ep: trained for one epoch - f32s4: uses a 32-frame window and predicts four actions - overlap0: uses non-overlapping training windows - pf-h8: uses per-frame memory with up to eight history frames…

Open weights 3.8B parameters 128,000 tokens transformers

Model · Image and text to text

LocateAnything-3B

NVIDIA

LocateAnything is a vision-language model for fast and high-quality visual grounding, enabling precise object localization, dense detection, and point-based localization across diverse domains in both Enterprise Intelligence and Physical AI. The model adopts a generalist design, supporting tasks such as referring expression grounding, multi-object detection, GUI element grounding, and text localization, with strong performance in complex and cluttered scenes. Its core innovation, Parallel Box Decoding (PBD), predicts complete bounding box coordinates in a single parallel step rather than autoregressive token-by-token decoding, improving efficiency while preserving geometric consistency.…

Open weights other 3.8B parameters 32,768 tokens transformers

Model · Image and text to text

blip2-flan-t5-xl

Salesforce AI Research

BLIP-2 model, leveraging Flan T5-xl (a large language model). It was introduced in the paper BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models by Li et al. and first released in this repository. Disclaimer: The team releasing BLIP-2 did not write a model card for this model so this model card has been written by the Hugging Face team. BLIP-2 consists of 3 models: a CLIP-like image encoder, a Querying Transformer (Q-Former) and a large language model. The authors initialize the weights of the image encoder and large language model from pre-trained checkpoints and keep them frozen while training the Querying Transformer, which is a…

Open weights mit 3.9B parameters transformers

Model · Image and text to text

Rex-Omni

IDEA-Research

This model is Rex-Omni, a 3B-parameter Multimodal Large Language Model (MLLM) presented in the paper "Detect Anything via Next Point Prediction". It is compatible with the Hugging Face transformers library and is licensed under the IDEA License 1.0. src="https://img.shields.io/badge/RexOmni-Website-BADFDB?style=flat-square&logo=deno&logoColor=violet&color=BADFDB" alt="RexThinker Website" src="https://img.shields.io/badge/RexOmni-Paper-Red%25red?logo=arxiv&logoColor=red&color=yellow" alt="RexThinker Paper on arXiv" src="https://img.shields.io/badge/RexOmni-Weight-orange?logo=huggingface&logoColor=yellow" alt="RexThinker weight on Hugging Face"…

Open weights other 4.1B parameters 128,000 tokens transformers