update device map
Browse files- handler.py +0 -1
handler.py
CHANGED
@@ -9,7 +9,6 @@ class EndpointHandler:
|
|
9 |
tokenizer = AutoTokenizer.from_pretrained("microsoft/Phi-3-mini-128k-instruct", trust_remote_code=True)
|
10 |
model = AutoModelForCausalLM.from_pretrained(
|
11 |
"microsoft/Phi-3-mini-128k-instruct",
|
12 |
-
device_map="auto",
|
13 |
torch_dtype=torch.bfloat16,
|
14 |
device_map="cuda",
|
15 |
trust_remote_code=True
|
|
|
9 |
tokenizer = AutoTokenizer.from_pretrained("microsoft/Phi-3-mini-128k-instruct", trust_remote_code=True)
|
10 |
model = AutoModelForCausalLM.from_pretrained(
|
11 |
"microsoft/Phi-3-mini-128k-instruct",
|
|
|
12 |
torch_dtype=torch.bfloat16,
|
13 |
device_map="cuda",
|
14 |
trust_remote_code=True
|