remove dtype
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -6,7 +6,7 @@ class EndpointHandler:
|
|
6 |
def __init__(self, path=""):
|
7 |
# load the model
|
8 |
tokenizer = AutoTokenizer.from_pretrained(path)
|
9 |
-
model = AutoModelForCausalLM.from_pretrained(path, device_map="auto"
|
10 |
# create inference pipeline
|
11 |
self.pipeline = pipeline("text-generation", model=model, tokenizer=tokenizer)
|
12 |
|
|
|
6 |
def __init__(self, path=""):
|
7 |
# load the model
|
8 |
tokenizer = AutoTokenizer.from_pretrained(path)
|
9 |
+
model = AutoModelForCausalLM.from_pretrained(path, device_map="auto")
|
10 |
# create inference pipeline
|
11 |
self.pipeline = pipeline("text-generation", model=model, tokenizer=tokenizer)
|
12 |
|