prithivMLmods commited on
Commit
6834506
·
verified ·
1 Parent(s): c38e3f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -167,7 +167,7 @@ MODEL_ID_S = 'deepseek-ai/DeepSeek-OCR'
167
  processor_s = AutoProcessor.from_pretrained(MODEL_ID_S, trust_remote_code=True)
168
  model_s = AutoModelForCausalLM.from_pretrained(
169
  MODEL_ID_S,
170
- _attn_implementation='eager',
171
  torch_dtype=torch.bfloat16,
172
  trust_remote_code=True,
173
  ).eval()
 
167
  processor_s = AutoProcessor.from_pretrained(MODEL_ID_S, trust_remote_code=True)
168
  model_s = AutoModelForCausalLM.from_pretrained(
169
  MODEL_ID_S,
170
+ _attn_implementation='flash_attention_2',
171
  torch_dtype=torch.bfloat16,
172
  trust_remote_code=True,
173
  ).eval()