ChatGLM-Efficient-Tuning
ChatGLM-Efficient-Tuning copied to clipboard
微调后,没有效果不改变还是原来的回答
tokenizer = AutoTokenizer.from_pretrained("chatglm2-6b", trust_remote_code=True) model = AutoModel.from_pretrained("chatglm2-6b", trust_remote_code=True).cuda() model = PeftModel.from_pretrained(model, "weights").half()