merve HF staff commited on
Commit
7062ece
1 Parent(s): e57a9e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)