How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
# Warning: Pipeline type "visual-question-answering" is no longer supported in transformers v5.
# You must load the model directly (see below) or downgrade to v4.x with:
# pip install "transformers<5.0.0"
from transformers import pipeline

pipe = pipeline("visual-question-answering", model="trieutm/blip-vqa-finetuned")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoProcessor, AutoModelForVisualQuestionAnswering

processor = AutoProcessor.from_pretrained("trieutm/blip-vqa-finetuned")
model = AutoModelForVisualQuestionAnswering.from_pretrained("trieutm/blip-vqa-finetuned", device_map="auto")
Quick Links

How to use:

For inference

Load model directly

from transformers import BlipForQuestionAnswering, BlipProcessor

model = BlipForQuestionAnswering.from_pretrained("trieutm/blip-vqa-finetuned")
processor = BlipProcessor.from_pretrained("trieutm/blip-vqa-finetuned")
Downloads last month
13
Safetensors
Model size
0.4B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for trieutm/blip-vqa-finetuned

Finetuned
(20)
this model

Dataset used to train trieutm/blip-vqa-finetuned