oleksandrfluxon
commited on
Commit
•
b0064e6
1
Parent(s):
9cdc9a6
Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -7,7 +7,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer, AutoConfig
|
|
7 |
class EndpointHandler:
|
8 |
def __init__(self, path=""):
|
9 |
# load model and tokenizer from path
|
10 |
-
self.tokenizer = AutoTokenizer.from_pretrained(
|
11 |
|
12 |
config = AutoConfig.from_pretrained(path, trust_remote_code=True)
|
13 |
# config.attn_config['attn_impl'] = 'triton'
|
|
|
7 |
class EndpointHandler:
|
8 |
def __init__(self, path=""):
|
9 |
# load model and tokenizer from path
|
10 |
+
self.tokenizer = AutoTokenizer.from_pretrained("EleutherAI/gpt-neox-20b")
|
11 |
|
12 |
config = AutoConfig.from_pretrained(path, trust_remote_code=True)
|
13 |
# config.attn_config['attn_impl'] = 'triton'
|