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

[core] refactor peft API #231

Merged
merged 12 commits into from
Mar 21, 2023
Merged

[core] refactor peft API #231

merged 12 commits into from
Mar 21, 2023

Conversation

younesbelkada
Copy link
Contributor

This PR slightly refactors the way we use / load peft models

For now I think it is important to let users pass the PeftConfig to from_pretrained , as it is an essential component for create peft models

I also think that we should be able to pass prepare_int8_training kwargs directly to from_pretrained as well, since sometimes you need some tweaks to enable int8 training

This PR is also fully backward compatible with the previous API

cc @lvwerra

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Mar 20, 2023

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

@younesbelkada
Copy link
Contributor Author

younesbelkada commented Mar 20, 2023

GPT2 sentiment script: https://wandb.ai/distill-bloom/trl/runs/jvg0lxz7?workspace=user-younesbelkada
will run the NPP script with the new API soon
EDIT: please ignore the above run

@younesbelkada younesbelkada requested a review from lvwerra March 20, 2023 17:28
Copy link
Member

@lvwerra lvwerra left a comment

Choose a reason for hiding this comment

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

One comment otherwise looks good to me!

@younesbelkada younesbelkada merged commit 0610711 into main Mar 21, 2023
@younesbelkada younesbelkada deleted the refactor-peft-api branch March 21, 2023 12:35
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.

3 participants