-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Conversation
The documentation is not available anymore as the PR was closed or merged. |
GPT2 sentiment script: https://wandb.ai/distill-bloom/trl/runs/jvg0lxz7?workspace=user-younesbelkada |
There was a problem hiding this 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!
This PR slightly refactors the way we use / load peft models
For now I think it is important to let users pass the
PeftConfig
tofrom_pretrained
, as it is an essential component for create peft modelsI also think that we should be able to pass
prepare_int8_training
kwargs directly tofrom_pretrained
as well, since sometimes you need some tweaks to enable int8 trainingThis PR is also fully backward compatible with the previous API
cc @lvwerra