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

StackLLaMA: correctly merge peft model #398

Merged
merged 3 commits into from
Jun 5, 2023

Conversation

mnoukhov
Copy link
Contributor

@mnoukhov mnoukhov commented Jun 1, 2023

fixes #368 #386 #297 and partially #327
correctly merge weights with peft's merge_and_unload
if merging a reward model, load sequence classification

Note that trl-lib/llama-7b-se-rm-peft does not contain the score weight so I will release my own pretrained reward model adapter weights

correctly merge weights with peft's merge_and_unload
load sequence classification model for reward models
@mnoukhov mnoukhov mentioned this pull request Jun 1, 2023
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jun 2, 2023

The documentation is not available anymore as the PR was closed or merged.

Copy link
Contributor

@younesbelkada younesbelkada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing work @mnoukhov !
Could you run the styling checks?

make style && make quality

After that we should be good for merging
Thanks!

@mnoukhov
Copy link
Contributor Author

mnoukhov commented Jun 4, 2023

Done!

@mnoukhov mnoukhov requested a review from younesbelkada June 4, 2023 03:22
Copy link
Contributor

@younesbelkada younesbelkada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

@younesbelkada younesbelkada requested a review from lvwerra June 5, 2023 08:16
@younesbelkada younesbelkada merged commit 0ddf9f6 into huggingface:main Jun 5, 2023
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

Successfully merging this pull request may close these issues.

Llama Reward Model is incorrectly merged
4 participants