Update README.md
Browse files
README.md
CHANGED
@@ -18,7 +18,6 @@ from peft import PeftModel
|
|
18 |
tokenizer = AutoTokenizer.from_pretrained("baichuan-inc/baichuan-7B", trust_remote_code=True)
|
19 |
model = AutoModelForCausalLM.from_pretrained("baichuan-inc/baichuan-7B", device_map="auto", trust_remote_code=True)
|
20 |
model = PeftModel.from_pretrained(model, "hiyouga/baichuan-7b-sft")
|
21 |
-
model = model.merge_and_unload()
|
22 |
|
23 |
query = "晚上睡不着怎么办"
|
24 |
|
|
|
18 |
tokenizer = AutoTokenizer.from_pretrained("baichuan-inc/baichuan-7B", trust_remote_code=True)
|
19 |
model = AutoModelForCausalLM.from_pretrained("baichuan-inc/baichuan-7B", device_map="auto", trust_remote_code=True)
|
20 |
model = PeftModel.from_pretrained(model, "hiyouga/baichuan-7b-sft")
|
|
|
21 |
|
22 |
query = "晚上睡不着怎么办"
|
23 |
|