Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -4,7 +4,7 @@ import json
|
|
4 |
|
5 |
class EndpointHandler():
|
6 |
def __init__(self, path="ceiteach/chart-no-pretrain-llama31-unsloth"):
|
7 |
-
model_name =
|
8 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
9 |
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype = torch.float16, device_map="auto")
|
10 |
self.model = model
|
|
|
4 |
|
5 |
class EndpointHandler():
|
6 |
def __init__(self, path="ceiteach/chart-no-pretrain-llama31-unsloth"):
|
7 |
+
model_name = "ceiteach/chart-no-pretrain-llama31-unsloth"
|
8 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
9 |
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype = torch.float16, device_map="auto")
|
10 |
self.model = model
|