Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ model_id = "microsoft/Phi-3-mini-128k-instruct"
|
|
| 16 |
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
|
| 17 |
model = AutoModelForCausalLM.from_pretrained(
|
| 18 |
model_id,
|
| 19 |
-
|
| 20 |
device_map="auto",
|
| 21 |
trust_remote_code=True,
|
| 22 |
attn_implementation="flash_attention_2"
|
|
|
|
| 16 |
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
|
| 17 |
model = AutoModelForCausalLM.from_pretrained(
|
| 18 |
model_id,
|
| 19 |
+
torch_dtype=torch.bfloat16,
|
| 20 |
device_map="auto",
|
| 21 |
trust_remote_code=True,
|
| 22 |
attn_implementation="flash_attention_2"
|