Salesforce / instructblip-flan-t5-xxl

huggingface.co
Total runs: 1.0K
24-hour runs: 0
7-day runs: 39
30-day runs: 279
Model's Last Updated: February 03 2025
image-text-to-text

Introduction of instructblip-flan-t5-xxl

Model Details of instructblip-flan-t5-xxl

InstructBLIP model

InstructBLIP model using Flan-T5-xxl 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.

Model description

InstructBLIP is a visual instruction tuned version of BLIP-2 . Refer to the paper for details.

InstructBLIP architecture

Intended uses & limitations

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-xxl")
processor = InstructBlipProcessor.from_pretrained("Salesforce/instructblip-flan-t5-xxl")

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)
How to use

For code examples, we refer to the documentation .

Runs of Salesforce instructblip-flan-t5-xxl on huggingface.co

1.0K
Total runs
0
24-hour runs
67
3-day runs
39
7-day runs
279
30-day runs

More Information About instructblip-flan-t5-xxl huggingface.co Model

More instructblip-flan-t5-xxl license Visit here:

https://choosealicense.com/licenses/mit

instructblip-flan-t5-xxl huggingface.co

instructblip-flan-t5-xxl huggingface.co is an AI model on huggingface.co that provides instructblip-flan-t5-xxl's model effect (), which can be used instantly with this Salesforce instructblip-flan-t5-xxl model. huggingface.co supports a free trial of the instructblip-flan-t5-xxl model, and also provides paid use of the instructblip-flan-t5-xxl. Support call instructblip-flan-t5-xxl model through api, including Node.js, Python, http.

instructblip-flan-t5-xxl huggingface.co Url

https://huggingface.co/Salesforce/instructblip-flan-t5-xxl

Salesforce instructblip-flan-t5-xxl online free

instructblip-flan-t5-xxl huggingface.co is an online trial and call api platform, which integrates instructblip-flan-t5-xxl's modeling effects, including api services, and provides a free online trial of instructblip-flan-t5-xxl, you can try instructblip-flan-t5-xxl online for free by clicking the link below.

Salesforce instructblip-flan-t5-xxl online free url in huggingface.co:

https://huggingface.co/Salesforce/instructblip-flan-t5-xxl

instructblip-flan-t5-xxl install

instructblip-flan-t5-xxl is an open source model from GitHub that offers a free installation service, and any user can find instructblip-flan-t5-xxl on GitHub to install. At the same time, huggingface.co provides the effect of instructblip-flan-t5-xxl install, users can directly use instructblip-flan-t5-xxl installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

instructblip-flan-t5-xxl install url in huggingface.co:

https://huggingface.co/Salesforce/instructblip-flan-t5-xxl

Url of instructblip-flan-t5-xxl

instructblip-flan-t5-xxl huggingface.co Url

Provider of instructblip-flan-t5-xxl huggingface.co

Salesforce
ORGANIZATIONS

Other API from Salesforce

huggingface.co

Total runs: 24.5K
Run Growth: -18.6K
Growth Rate: -75.38%
Updated: January 21 2025
huggingface.co

Total runs: 9.2K
Run Growth: 3.3K
Growth Rate: 37.12%
Updated: February 03 2025
huggingface.co

Total runs: 2.7K
Run Growth: 768
Growth Rate: 28.59%
Updated: January 25 2025
huggingface.co

Total runs: 657
Run Growth: 578
Growth Rate: 86.01%
Updated: January 21 2025
huggingface.co

Total runs: 508
Run Growth: 106
Growth Rate: 21.12%
Updated: January 21 2025
huggingface.co

Total runs: 486
Run Growth: 197
Growth Rate: 40.53%
Updated: January 15 2025