Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ from PIL import Image
|
|
31 |
|
32 |
# Load the model and processor
|
33 |
model = Qwen2VLForConditionalGeneration.from_pretrained(
|
34 |
-
"Qwen/QVQ-72B-Preview", torch_dtype="
|
35 |
)
|
36 |
processor = AutoProcessor.from_pretrained("Qwen/QVQ-72B-Preview")
|
37 |
|
|
|
31 |
|
32 |
# Load the model and processor
|
33 |
model = Qwen2VLForConditionalGeneration.from_pretrained(
|
34 |
+
"Qwen/QVQ-72B-Preview", torch_dtype="torch.float16", device_map="auto", load_in_4bit=True,
|
35 |
)
|
36 |
processor = AutoProcessor.from_pretrained("Qwen/QVQ-72B-Preview")
|
37 |
|