Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lora tuning 出的权重,再加一个合并的功能? #37

Open
litetoooooom opened this issue Jul 7, 2023 · 1 comment
Open

lora tuning 出的权重,再加一个合并的功能? #37

litetoooooom opened this issue Jul 7, 2023 · 1 comment

Comments

@litetoooooom
Copy link

作者好

目前用 model = PeftModel.from_pretrained(model, "weights/simple_math_4op").half() 加载Lora,能否提供一个功能merge一下了

@beyondguo
Copy link
Owner

PefModel类中有一个merge_and_unload函数,可以先试试。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants