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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -130,7 +130,7 @@ 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
@@ -140,7 +140,7 @@ model_d = AutoModelForCausalLM.from_pretrained(
140
  MODEL_ID_D,
141
  trust_remote_code=True,
142
  torch_dtype=torch.float16,
143
- attn_implementation="flash_attention_2"
144
  ).to(device).eval()
145
 
146
 
 
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
 
140
  MODEL_ID_D,
141
  trust_remote_code=True,
142
  torch_dtype=torch.float16,
143
+ _attn_implementation="flash_attention_2"
144
  ).to(device).eval()
145
 
146