Spaces:
Running
on
Zero
Running
on
Zero
update app
Browse files
app.py
CHANGED
|
@@ -129,7 +129,8 @@ processor_v = AutoProcessor.from_pretrained(MODEL_ID_V, trust_remote_code=True)
|
|
| 129 |
model_v = Qwen2_5_VLForConditionalGeneration.from_pretrained(
|
| 130 |
MODEL_ID_V,
|
| 131 |
trust_remote_code=True,
|
| 132 |
-
torch_dtype=torch.float16
|
|
|
|
| 133 |
).to(device).eval()
|
| 134 |
|
| 135 |
# Load Dots.OCR
|
|
|
|
| 129 |
model_v = Qwen2_5_VLForConditionalGeneration.from_pretrained(
|
| 130 |
MODEL_ID_V,
|
| 131 |
trust_remote_code=True,
|
| 132 |
+
torch_dtype=torch.float16,
|
| 133 |
+
attn_implementation="flash_attention_2"
|
| 134 |
).to(device).eval()
|
| 135 |
|
| 136 |
# Load Dots.OCR
|