ssaroya commited on
Commit
3d6aa6f
·
1 Parent(s): 7302c2d

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +3 -1
handler.py CHANGED
@@ -13,10 +13,12 @@ os.environ["CUDA_VISIBLE_DEVICES"] = "0"
13
  class EndpointHandler:
14
  def __init__(self, path=""):
15
  model_bin_path = os.path.join(path, "model.bin")
 
 
16
  with open(model_bin_path, "rb") as f: # "rb" because we want to read in binary mode
17
  self.model = pickle.load(f)
18
 
19
- self.tokenizer = AutoTokenizer.from_pretrained("Wizard-Vicuna-13B-Uncensored-GPTQ", use_fast=False)
20
 
21
 
22
 
 
13
  class EndpointHandler:
14
  def __init__(self, path=""):
15
  model_bin_path = os.path.join(path, "model.bin")
16
+ model_folder_path = model_name = os.path.join(path, "Wizard-Vicuna-13B-Uncensored-GPTQ")
17
+
18
  with open(model_bin_path, "rb") as f: # "rb" because we want to read in binary mode
19
  self.model = pickle.load(f)
20
 
21
+ self.tokenizer = AutoTokenizer.from_pretrained(model_folder_path, use_fast=False)
22
 
23
 
24