5 lines
242 B
Python
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") |