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

How to merge lora adapter with pretrained weights? #399

Open
MRQJsfhf opened this issue Apr 30, 2024 · 1 comment
Open

How to merge lora adapter with pretrained weights? #399

MRQJsfhf opened this issue Apr 30, 2024 · 1 comment

Comments

@MRQJsfhf
Copy link

No description provided.

@danielhanchen
Copy link
Contributor

Oh our Colab notebooks on the bottom have this! See https://github.com/unslothai/unsloth/wiki#saving-models-to-16bit-for-vllm

Ie:

model.save_pretrained_merged("model", tokenizer, save_method = "merged_16bit",)
model.push_to_hub_merged("hf/model", tokenizer, save_method = "merged_16bit", token = "")

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