Commit
·
bce61ba
1
Parent(s):
68027e1
added pytest
Browse files- handler.py +1 -0
handler.py
CHANGED
|
@@ -9,6 +9,7 @@ class EndpointHandler:
|
|
| 9 |
|
| 10 |
subprocess.check_call([sys.executable, "-m", "pip", "install", "flash-attn"])
|
| 11 |
subprocess.check_call([sys.executable, "-m", "pip", "install", "tiktoken"])
|
|
|
|
| 12 |
|
| 13 |
# load the model
|
| 14 |
tokenizer = AutoTokenizer.from_pretrained(path, trust_remote_code=True)
|
|
|
|
| 9 |
|
| 10 |
subprocess.check_call([sys.executable, "-m", "pip", "install", "flash-attn"])
|
| 11 |
subprocess.check_call([sys.executable, "-m", "pip", "install", "tiktoken"])
|
| 12 |
+
subprocess.check_call([sys.executable, "-m", "pip", "install", "pytest"])
|
| 13 |
|
| 14 |
# load the model
|
| 15 |
tokenizer = AutoTokenizer.from_pretrained(path, trust_remote_code=True)
|