Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -134,7 +134,7 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
| 134 |
MODEL_PATH,
|
| 135 |
#attn_implementation="flash_attention_2",
|
| 136 |
trust_remote_code=True,
|
| 137 |
-
torch_dtype=torch.
|
| 138 |
device_map='auto'
|
| 139 |
)
|
| 140 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_PATH, trust_remote_code=True)
|
|
|
|
| 134 |
MODEL_PATH,
|
| 135 |
#attn_implementation="flash_attention_2",
|
| 136 |
trust_remote_code=True,
|
| 137 |
+
torch_dtype=torch.bfloat16,
|
| 138 |
device_map='auto'
|
| 139 |
)
|
| 140 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_PATH, trust_remote_code=True)
|