Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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='
|
| 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()
|