Update backends/smoldocling.py
Browse files- backends/smoldocling.py +1 -1
backends/smoldocling.py
CHANGED
@@ -19,7 +19,7 @@ processor = AutoProcessor.from_pretrained("ds4sd/SmolDocling-256M-preview")
|
|
19 |
model = AutoModelForVision2Seq.from_pretrained(
|
20 |
"ds4sd/SmolDocling-256M-preview",
|
21 |
torch_dtype=torch.bfloat16,
|
22 |
-
_attn_implementation="
|
23 |
).to(DEVICE)
|
24 |
|
25 |
# Create input messages
|
|
|
19 |
model = AutoModelForVision2Seq.from_pretrained(
|
20 |
"ds4sd/SmolDocling-256M-preview",
|
21 |
torch_dtype=torch.bfloat16,
|
22 |
+
_attn_implementation="eager",
|
23 |
).to(DEVICE)
|
24 |
|
25 |
# Create input messages
|