KevinQHLin commited on
Commit
6f9f673
·
verified ·
1 Parent(s): 96fbf04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -50,7 +50,8 @@ for file in files:
50
  model = Qwen2VLForConditionalGeneration.from_pretrained(
51
  destination_folder,
52
  torch_dtype=torch.bfloat16,
53
- device_map="cpu",
 
54
  )
55
 
56
  # Load the processor
 
50
  model = Qwen2VLForConditionalGeneration.from_pretrained(
51
  destination_folder,
52
  torch_dtype=torch.bfloat16,
53
+ # device_map="cpu",
54
+ attn_implementation = "flash_attention_2",
55
  )
56
 
57
  # Load the processor