Upload handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -6,7 +6,7 @@ from typing import Dict, List, Any
|
|
6 |
class EndpointHandler():
|
7 |
def __init__(self, path=""):
|
8 |
self.model = AutoModelForCausalLM.from_pretrained(path,
|
9 |
-
torch_dtype=torch.
|
10 |
device_map="auto",
|
11 |
trust_remote_code=True)
|
12 |
self.tokenizer = AutoTokenizer.from_pretrained(path)
|
|
|
6 |
class EndpointHandler():
|
7 |
def __init__(self, path=""):
|
8 |
self.model = AutoModelForCausalLM.from_pretrained(path,
|
9 |
+
torch_dtype=torch.bfloat16,
|
10 |
device_map="auto",
|
11 |
trust_remote_code=True)
|
12 |
self.tokenizer = AutoTokenizer.from_pretrained(path)
|