prithivMLmods commited on
Commit
e27521f
·
verified ·
1 Parent(s): 4d60d58

update app

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -129,7 +129,8 @@ processor_v = AutoProcessor.from_pretrained(MODEL_ID_V, trust_remote_code=True)
129
  model_v = Qwen2_5_VLForConditionalGeneration.from_pretrained(
130
  MODEL_ID_V,
131
  trust_remote_code=True,
132
- torch_dtype=torch.float16
 
133
  ).to(device).eval()
134
 
135
  # Load Dots.OCR
 
129
  model_v = Qwen2_5_VLForConditionalGeneration.from_pretrained(
130
  MODEL_ID_V,
131
  trust_remote_code=True,
132
+ torch_dtype=torch.float16,
133
+ attn_implementation="flash_attention_2"
134
  ).to(device).eval()
135
 
136
  # Load Dots.OCR