Transformers How to use dondosss/tiny-random-idefics2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("feature-extraction", model="dondosss/tiny-random-idefics2", trust_remote_code=True) # Load model directly
from transformers import AutoProcessor, AutoModel
processor = AutoProcessor.from_pretrained("dondosss/tiny-random-idefics2", trust_remote_code=True)
model = AutoModel.from_pretrained("dondosss/tiny-random-idefics2", trust_remote_code=True)