davanstrien HF staff commited on
Commit
4011b8e
β€’
1 Parent(s): 3f53d8e
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
22
  model = Qwen2VLForConditionalGeneration.from_pretrained(
23
  "Qwen/Qwen2-VL-7B-Instruct",
24
  torch_dtype=torch.bfloat16,
25
- # attn_implementation="flash_attention_2",
26
  device_map="auto",
27
  )
28
  processor = AutoProcessor.from_pretrained("Qwen/Qwen2-VL-7B-Instruct")
 
22
  model = Qwen2VLForConditionalGeneration.from_pretrained(
23
  "Qwen/Qwen2-VL-7B-Instruct",
24
  torch_dtype=torch.bfloat16,
25
+ attn_implementation="flash_attention_2",
26
  device_map="auto",
27
  )
28
  processor = AutoProcessor.from_pretrained("Qwen/Qwen2-VL-7B-Instruct")