Spaces:
Running
on
Zero
Running
on
Zero
update app
Browse files
app.py
CHANGED
|
@@ -117,12 +117,11 @@ print("Using device:", device)
|
|
| 117 |
|
| 118 |
|
| 119 |
# --- Model Loading: tencent/POINTS-Reader ---
|
| 120 |
-
MODEL_PATH = '
|
| 121 |
|
| 122 |
print(f"Loading model: {MODEL_PATH}")
|
| 123 |
model = AutoModelForCausalLM.from_pretrained(
|
| 124 |
MODEL_PATH,
|
| 125 |
-
#attn_implementation="eager",
|
| 126 |
trust_remote_code=True,
|
| 127 |
torch_dtype=torch.bfloat16,
|
| 128 |
device_map='auto'
|
|
|
|
| 117 |
|
| 118 |
|
| 119 |
# --- Model Loading: tencent/POINTS-Reader ---
|
| 120 |
+
MODEL_PATH = 'tencent/POINTS-Reader'
|
| 121 |
|
| 122 |
print(f"Loading model: {MODEL_PATH}")
|
| 123 |
model = AutoModelForCausalLM.from_pretrained(
|
| 124 |
MODEL_PATH,
|
|
|
|
| 125 |
trust_remote_code=True,
|
| 126 |
torch_dtype=torch.bfloat16,
|
| 127 |
device_map='auto'
|