Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -121,7 +121,7 @@ MODEL_PATH = 'tencent/POINTS-Reader'
|
|
| 121 |
print(f"Loading model: {MODEL_PATH}")
|
| 122 |
model = AutoModelForCausalLM.from_pretrained(
|
| 123 |
MODEL_PATH,
|
| 124 |
-
attn_implementation="flash_attention_2",
|
| 125 |
trust_remote_code=True,
|
| 126 |
torch_dtype=torch.float16,
|
| 127 |
device_map='auto'
|
|
|
|
| 121 |
print(f"Loading model: {MODEL_PATH}")
|
| 122 |
model = AutoModelForCausalLM.from_pretrained(
|
| 123 |
MODEL_PATH,
|
| 124 |
+
#attn_implementation="flash_attention_2",
|
| 125 |
trust_remote_code=True,
|
| 126 |
torch_dtype=torch.float16,
|
| 127 |
device_map='auto'
|