samdeniyi commited on
Commit
f6153b4
·
1 Parent(s): 369b113

fixing layer_replication error

Browse files
Files changed (2) hide show
  1. handler.py +1 -1
  2. requirements.txt +1 -1
handler.py CHANGED
@@ -18,7 +18,7 @@ class EndpointHandler:
18
  bnb_4bit_compute_dtype=torch.float16,
19
  )
20
 
21
- # Load the model with quantization
22
  self.model = AutoModelForCausalLM.from_pretrained(
23
  config.base_model_name_or_path,
24
  return_dict=True,
 
18
  bnb_4bit_compute_dtype=torch.float16,
19
  )
20
 
21
+ # Load the model without extra arguments like `layer_replication`
22
  self.model = AutoModelForCausalLM.from_pretrained(
23
  config.base_model_name_or_path,
24
  return_dict=True,
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
  torch
2
  transformers
3
  optimum
4
- peft
 
1
  torch
2
  transformers
3
  optimum
4
+ peft>=0.3.0