krilecy commited on
Commit
bf13ca8
1 Parent(s): bbeb214

Upload handler.py

Browse files
Files changed (1) hide show
  1. handler.py +2 -2
handler.py CHANGED
@@ -32,12 +32,12 @@ class EndpointHandler():
32
 
33
  self.model = AutoModel.from_pretrained(
34
  model_dir,
35
- quantization_config=bnb_config,
36
  device_map="auto",
37
  trust_remote_code=True,
38
  attn_implementation="eager",
39
  )
40
- self.model = PeftModel.from_pretrained(self.model, model_dir, subfolder='lora')
41
  self.model.eval()
42
 
43
 
 
32
 
33
  self.model = AutoModel.from_pretrained(
34
  model_dir,
35
+ #quantization_config=bnb_config,
36
  device_map="auto",
37
  trust_remote_code=True,
38
  attn_implementation="eager",
39
  )
40
+ #self.model = PeftModel.from_pretrained(self.model, model_dir, subfolder='lora')
41
  self.model.eval()
42
 
43