prithivMLmods commited on
Commit
a2b245a
·
verified ·
1 Parent(s): e314c56

update app

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -183,7 +183,7 @@ MODEL_ID_L = "lightonai/LightOnOCR-1B-1025"
183
  processor_l = AutoProcessor.from_pretrained(MODEL_ID_L, trust_remote_code=True)
184
  model_l = LightOnOCRForConditionalGeneration.from_pretrained(
185
  MODEL_ID_L,
186
- attn_implementation="flash_attention_2",
187
  trust_remote_code=True,
188
  torch_dtype=torch.float16
189
  ).to(device).eval()
 
183
  processor_l = AutoProcessor.from_pretrained(MODEL_ID_L, trust_remote_code=True)
184
  model_l = LightOnOCRForConditionalGeneration.from_pretrained(
185
  MODEL_ID_L,
186
+ attn_implementation="sdpa",
187
  trust_remote_code=True,
188
  torch_dtype=torch.float16
189
  ).to(device).eval()