Spaces:
Running
Running
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).to("cuda")
|
19 |
|
20 |
@spaces.GPU(duration=180)
|
|
|
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).to("cuda")
|
19 |
|
20 |
@spaces.GPU(duration=180)
|