Spaces:
Runtime error
Runtime error
Commit
·
26d5130
1
Parent(s):
8b0a71a
update
Browse files- app_high_res.py +1 -1
app_high_res.py
CHANGED
|
@@ -12,7 +12,7 @@ from transformers import AutoProcessor, Idefics2ForConditionalGeneration
|
|
| 12 |
from models.conversation import conv_templates
|
| 13 |
from typing import List
|
| 14 |
processor = AutoProcessor.from_pretrained("Mantis-VL/mantis-8b-idefics2-video-eval-high-res-35k-mantis-2epoch_4096")
|
| 15 |
-
model = Idefics2ForConditionalGeneration.from_pretrained("Mantis-VL/mantis-8b-idefics2-video-eval-high-res-35k-mantis-2epoch_4096", torch_dtype=torch.
|
| 16 |
# model = model.to("cuda")
|
| 17 |
MAX_NUM_FRAMES = 24
|
| 18 |
conv_template = conv_templates["idefics_2"]
|
|
|
|
| 12 |
from models.conversation import conv_templates
|
| 13 |
from typing import List
|
| 14 |
processor = AutoProcessor.from_pretrained("Mantis-VL/mantis-8b-idefics2-video-eval-high-res-35k-mantis-2epoch_4096")
|
| 15 |
+
model = Idefics2ForConditionalGeneration.from_pretrained("Mantis-VL/mantis-8b-idefics2-video-eval-high-res-35k-mantis-2epoch_4096", torch_dtype=torch.bfloat16)
|
| 16 |
# model = model.to("cuda")
|
| 17 |
MAX_NUM_FRAMES = 24
|
| 18 |
conv_template = conv_templates["idefics_2"]
|