jinjieyuan
commited on
Commit
•
2a64565
1
Parent(s):
e3526ec
Update README.md
Browse filesSigned-off-by: jinjieyuan <[email protected]>
README.md
CHANGED
@@ -60,7 +60,7 @@ def generate_prompt(instruction):
|
|
60 |
|
61 |
base_model_path = "shears-mpt-7b-50-gsm8k-super/base_model"
|
62 |
adapter_model_path = "shears-mpt-7b-50-gsm8k-super/adapter_model"
|
63 |
-
base_model = AutoModelForCausalLM.from_pretrained(base_model_path)
|
64 |
model = PeftModel.from_pretrained(base_model, adapter_model_path)
|
65 |
model.eval()
|
66 |
|
|
|
60 |
|
61 |
base_model_path = "shears-mpt-7b-50-gsm8k-super/base_model"
|
62 |
adapter_model_path = "shears-mpt-7b-50-gsm8k-super/adapter_model"
|
63 |
+
base_model = AutoModelForCausalLM.from_pretrained(base_model_path, trust_remote_code=True)
|
64 |
model = PeftModel.from_pretrained(base_model, adapter_model_path)
|
65 |
model.eval()
|
66 |
|