lucafirefox commited on
Commit
68027e1
·
1 Parent(s): e896746

added tiktoken

Browse files
Files changed (1) hide show
  1. handler.py +1 -0
handler.py CHANGED
@@ -8,6 +8,7 @@ class EndpointHandler:
8
  def __init__(self, path=""):
9
 
10
  subprocess.check_call([sys.executable, "-m", "pip", "install", "flash-attn"])
 
11
 
12
  # load the model
13
  tokenizer = AutoTokenizer.from_pretrained(path, trust_remote_code=True)
 
8
  def __init__(self, path=""):
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)