Salesforce / instructblip-flan-t5-xl

huggingface.co
Total runs: 8.7K
24-hour runs: 0
7-day runs: 1.3K
30-day runs: 523
Model's Last Updated: November 22 2024
image-text-to-text

Introduction of instructblip-flan-t5-xl

Model Details of instructblip-flan-t5-xl

InstructBLIP model

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.

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

For code examples, we refer to the documentation .

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

8.7K
Total runs
0
24-hour runs
352
3-day runs
1.3K
7-day runs
523
30-day runs

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

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

https://choosealicense.com/licenses/mit

instructblip-flan-t5-xl huggingface.co

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

instructblip-flan-t5-xl huggingface.co Url

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

Salesforce instructblip-flan-t5-xl online free

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

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

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

instructblip-flan-t5-xl install

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

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

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

Url of instructblip-flan-t5-xl

instructblip-flan-t5-xl huggingface.co Url

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

Salesforce
ORGANIZATIONS

Other API from Salesforce

huggingface.co

Total runs: 37.7K
Run Growth: -16.9K
Growth Rate: -44.71%
Updated: January 21 2025
huggingface.co

Total runs: 8.7K
Run Growth: 1.8K
Growth Rate: 20.76%
Updated: February 19 2024
huggingface.co

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

Total runs: 688
Run Growth: 605
Growth Rate: 90.03%
Updated: January 21 2025
huggingface.co

Total runs: 564
Run Growth: 224
Growth Rate: 39.79%
Updated: January 21 2025
huggingface.co

Total runs: 290
Run Growth: 1
Growth Rate: 0.34%
Updated: January 15 2025
huggingface.co

Total runs: 49
Run Growth: -56
Growth Rate: -114.29%
Updated: January 15 2025