Model reference · open weights
instructblip-flan-t5-xl is an open-weight language model from Salesforce. instructblip-flan-t5-xl (FP32) weighs 8.0 GB; the smallest configuration that runs it is RTX 3060 12 GB.
Summary of the Salesforce/instructblip-flan-t5-xl model card, 2026-10-01
What it is
| Released by | Salesforce |
|---|---|
| Released | 2023-05-28 |
| Parameters | 4.0B |
| VRAM | 8.0 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory | |
|---|---|---|---|---|
| 8K each | 32K each | |||
| RTX 3060 12 GB | 1 | — | 8K | 11.6 GB |
| RTX 4060 Ti 16 GB | 3 | — | 27K | 15.4 GB |
| RTX 3090 24 GB | 8 | 2 | 67K | 23.4 GB |
| RTX 4090 24 GB | 8 | 2 | 66K | 23.4 GB |
| RTX 5090 32 GB | 13 | 3 | 104K | 31.0 GB |
| L40S 48 GB | 21 | 5 | 128K | 44.0 GB |
| A100 80 GB | 42 | 10 | 128K | 78.2 GB |
| H100 80 GB | 40 | 10 | 128K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 50 | 12 | 128K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 58 | 14 | 128K | 107 GB |
| H200 141 GB | 77 | 19 | 128K | 138 GB |
| B200 180 GB | 101 | 25 | 128K | 176 GB |
| Requests at once | 8K tokens each | 32K tokens each |
|---|---|---|
| 1 | 11.5 GB | 16.3 GB |
| 5 | 18.0 GB | 42.1 GB |
| 8 | 22.8 GB | 61.4 GB |
| 16 | 35.7 GB | 113 GB |
| 32 | 61.4 GB | 216 GB |
| 64 | 113 GB | 422 GB |
One card, with vLLM's small-card settings.
From the model card
InstructBLIP model using Flan-T5-xl as language model. InstructBLIP was introduced in the paper InstructBLIP: Towards General-purpose Vision-Language Models with Instruction Tuning by Dai et al.
Disclaimer: The team releasing InstructBLIP did not write a model card for this model so this model card has been written by the Hugging Face team.
InstructBLIP is a visual instruction tuned version of BLIP-2. Refer to the paper for details.
Usage is as follows:
from transformers import InstructBlipProcessor, InstructBlipForConditionalGeneration
import torch
from PIL import Image
import requests
model = InstructBlipForConditionalGeneration.from_pretrained("Salesforce/instructblip-flan-t5-xl")
processor = InstructBlipProcessor.from_pretrained("Salesforce/instructblip-flan-t5-xl")
device = "cuda" if torch.cuda.is_available() else "cpu"
model.to(device)
url = "https://raw.githubusercontent.com/salesforce/LAVIS/main/docs/_static/Confusing-Pictures.jpg"
image = Image.open(requests.get(url, stream=True).raw).convert("RGB")
prompt = "What is unusual about this image?"
inputs = processor(images=image, text=prompt, return_tensors="pt").to(device)
outputs = model.generate(
**inputs,
do_sample=False,
num_beams=5,
max_length=256,
min_length=1,
top_p=0.9,
repetition_penalty=1.5,
length_penalty=1.0,
temperature=1,
)
generated_text = processor.batch_decode(outputs, skip_special_tokens=True)[0].strip()
print(generated_text)
For code examples, we refer to the documentation.
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.
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.