taprosoft commited on
Commit
73d7517
·
verified ·
1 Parent(s): 1e92b0d

Update backends/smoldocling.py

Browse files
Files changed (1) hide show
  1. 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="flash_attention_2",
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