JimmyK300 commited on
Commit
5528772
·
verified ·
1 Parent(s): 4cf9177

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ from PIL import Image
12
  vl_model = Qwen2VLForConditionalGeneration.from_pretrained(
13
  "Qwen/Qwen2-VL-2B-Instruct",
14
  torch_dtype=torch.bfloat16,
15
- attn_implementation="flash_attention_2",
16
  device_map="auto",
17
  )
18
  vl_processor = AutoProcessor.from_pretrained("Qwen/Qwen2-VL-2B-Instruct")
 
12
  vl_model = Qwen2VLForConditionalGeneration.from_pretrained(
13
  "Qwen/Qwen2-VL-2B-Instruct",
14
  torch_dtype=torch.bfloat16,
15
+ attn_implementation="flash_attention",
16
  device_map="auto",
17
  )
18
  vl_processor = AutoProcessor.from_pretrained("Qwen/Qwen2-VL-2B-Instruct")