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

[help] Where are the generated adapters_name saved? Can they be downloaded and used post-training? #23

Open
LissetheGarcia opened this issue Dec 20, 2024 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@LissetheGarcia
Copy link

No description provided.

@LissetheGarcia
Copy link
Author

I just want to corraborate that after running this command:

moe_peft.trainer.save_adapter_weight(model=model, config=train_config, path="dir_to_save")

we will get the ".json" and ".bin" files in a folder which path can be used in

model, config = MixLoraModelForCausalLM.from_pretrained("adapter_name_folder")

is this correct?

@mikecovlee
Copy link
Member

Yes. The weights output by MoE-PEFT is fully compatible with this repository.

@mikecovlee mikecovlee changed the title [Quick Questions] Where are the generated adapters_named saved? can they be downloaded and used post-training? [help] Where are the generated adapters_name saved? Can they be downloaded and used post-training? Dec 21, 2024
@mikecovlee
Copy link
Member

adapter_name will not be saved. Then you can load it anywhere and any name else for any other purpose.

@mikecovlee mikecovlee added the help wanted Extra attention is needed label Dec 21, 2024
@LissetheGarcia
Copy link
Author

Thank you! this definitely helped me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants