fixing layer_replication error
Browse files- handler.py +1 -1
- 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
|
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
|