Idefics2 🐶
Collection
Idefics2-8B is a foundation vision-language model. In this collection, you will find the models, datasets and demo related to its creation. • 11 items • Updated • 92
# Load model directly
from transformers import AutoProcessor, AutoModelForImageTextToText
processor = AutoProcessor.from_pretrained("HuggingFaceM4/idefics2-8b-AWQ")
model = AutoModelForImageTextToText.from_pretrained("HuggingFaceM4/idefics2-8b-AWQ")4-bit AWQ-quantized version of HuggingFaceM4/idefics2-8b. Refer to the original model's card for more information (including inference snippet).
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="HuggingFaceM4/idefics2-8b-AWQ")