Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -16,6 +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 |
device_map="auto",
|
20 |
trust_remote_code=True,
|
21 |
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 |
+
dtype=torch.bfloat16,
|
20 |
device_map="auto",
|
21 |
trust_remote_code=True,
|
22 |
attn_implementation="flash_attention_2"
|