Update handler.py
Browse files- handler.py +2 -2
handler.py
CHANGED
|
@@ -23,9 +23,9 @@ Alice Gate: *Alice strides into the room with a smile, her eyes lighting up when
|
|
| 23 |
class EndpointHandler():
|
| 24 |
|
| 25 |
def __init__(self, path = ""):
|
| 26 |
-
self.tokenizer = AutoTokenizer.from_pretrained(
|
| 27 |
self.model = AutoModelForCausalLM.from_pretrained(
|
| 28 |
-
|
| 29 |
device_map = "auto",
|
| 30 |
load_in_8bit = True,
|
| 31 |
)
|
|
|
|
| 23 |
class EndpointHandler():
|
| 24 |
|
| 25 |
def __init__(self, path = ""):
|
| 26 |
+
self.tokenizer = AutoTokenizer.from_pretrained(path)
|
| 27 |
self.model = AutoModelForCausalLM.from_pretrained(
|
| 28 |
+
path,
|
| 29 |
device_map = "auto",
|
| 30 |
load_in_8bit = True,
|
| 31 |
)
|