Files
ieemoo-ai-review/utils/load_model.py
2025-01-22 11:47:02 +08:00

5 lines
242 B
Python

# Load model directly
from transformers import AutoProcessor, AutoModelForImageTextToText
processor = AutoProcessor.from_pretrained("Qwen/Qwen2-VL-7B-Instruct")
model = AutoModelForImageTextToText.from_pretrained("Qwen/Qwen2-VL-7B-Instruct")