Salesforce / instructblip-vicuna-7b

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

Introduction of instructblip-vicuna-7b

Model Details of instructblip-vicuna-7b

InstructBLIP model

InstructBLIP model using Vicuna-7b 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-vicuna-7b")
processor = InstructBlipProcessor.from_pretrained("Salesforce/instructblip-vicuna-7b")

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-vicuna-7b on huggingface.co

251.0K
Total runs
0
24-hour runs
-1.3K
3-day runs
6.4K
7-day runs
12.0K
30-day runs

More Information About instructblip-vicuna-7b huggingface.co Model

More instructblip-vicuna-7b license Visit here:

https://choosealicense.com/licenses/other

instructblip-vicuna-7b huggingface.co

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

instructblip-vicuna-7b huggingface.co Url

https://huggingface.co/Salesforce/instructblip-vicuna-7b

Salesforce instructblip-vicuna-7b online free

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

Salesforce instructblip-vicuna-7b online free url in huggingface.co:

https://huggingface.co/Salesforce/instructblip-vicuna-7b

instructblip-vicuna-7b install

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

instructblip-vicuna-7b install url in huggingface.co:

https://huggingface.co/Salesforce/instructblip-vicuna-7b

Url of instructblip-vicuna-7b

instructblip-vicuna-7b huggingface.co Url

Provider of instructblip-vicuna-7b huggingface.co

Salesforce
ORGANIZATIONS

Other API from Salesforce

huggingface.co

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

Total runs: 8.7K
Run Growth: 2.0K
Growth Rate: 23.13%
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