YAPPERTAR-ai-1.0
Collection
Модели искусственного интелекта для генерации текста. Серия 1.0. • 5 items • Updated • 1
# Load model directly
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("Fantominsight/YAPPERTAR-ai-VL-1.0", trust_remote_code=True, dtype="auto")
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Fantominsight/YAPPERTAR-ai-VL-1.0", trust_remote_code=True) messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)