PEFT
Safetensors
English
jinjieyuan commited on
Commit
2a64565
1 Parent(s): e3526ec

Update README.md

Browse files

Signed-off-by: jinjieyuan <[email protected]>

Files changed (1) hide show
  1. README.md +1 -1
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