Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ processor = AutoProcessor.from_pretrained("HuggingFaceM4/idefics2-8b")
|
|
| 14 |
model = Idefics2ForConditionalGeneration.from_pretrained(
|
| 15 |
"HuggingFaceM4/idefics2-8b",
|
| 16 |
torch_dtype=torch.bfloat16,
|
| 17 |
-
_attn_implementation="flash_attention_2",
|
| 18 |
# trust_remote_code=True
|
| 19 |
).to("cuda")
|
| 20 |
|
|
|
|
| 14 |
model = Idefics2ForConditionalGeneration.from_pretrained(
|
| 15 |
"HuggingFaceM4/idefics2-8b",
|
| 16 |
torch_dtype=torch.bfloat16,
|
| 17 |
+
# _attn_implementation="flash_attention_2",
|
| 18 |
# trust_remote_code=True
|
| 19 |
).to("cuda")
|
| 20 |
|