AdrienB134 commited on
Commit
20f229d
1 Parent(s): 597a940
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ def model_inference(
47
  #We recommend enabling flash_attention_2 for better acceleration and memory saving, especially in multi-image and video scenarios.
48
  model = Qwen2VLForConditionalGeneration.from_pretrained(
49
  "Qwen/Qwen2-VL-2B-Instruct",
50
- #attn_implementation="flash_attention_2",
51
  trust_remote_code=True,
52
  torch_dtype="auto").cuda().eval()
53
 
 
47
  #We recommend enabling flash_attention_2 for better acceleration and memory saving, especially in multi-image and video scenarios.
48
  model = Qwen2VLForConditionalGeneration.from_pretrained(
49
  "Qwen/Qwen2-VL-2B-Instruct",
50
+ attn_implementation="flash_attention_2",
51
  trust_remote_code=True,
52
  torch_dtype="auto").cuda().eval()
53