Spaces:
Running
on
Zero
Running
on
Zero
update app
Browse files
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="
|
| 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()
|