# Demo: Mistral Large 4 – transformers pipeline (image-text-to-text) import torch from transformers import pipeline REPO = "mistralai/Mistral-Large-4-1T-A52B" pipe = pipeline("image-text-to-text", model=REPO, device_map="auto", torch_dtype="auto", trust_remote_code=True) result = pipe(text=[{"role": "user", "content": [{"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/bee.jpg"}, {"type": "text", "text": "Describe the image in English."}]}], max_new_tokens=200) print(result)