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

[PEFT + DPO] Raise value error if one passes a ref_model and a peft_config #1289

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

younesbelkada
Copy link
Contributor

Recently I have seen many tutorials that passes both the ref_model and a peft_config, this should be not allowed as it is very memory inefficient. This PR enhances the UX by raising a value error if peft_config if passed together with a ref_model and guiding the user on what should be the best practice.

cc @kashif

@younesbelkada younesbelkada requested a review from kashif January 30, 2024 06:53
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@kashif kashif merged commit aa35fec into main Jan 30, 2024
9 checks passed
@kashif kashif deleted the dpo-error-out-peft branch January 30, 2024 07:06
@younesbelkada
Copy link
Contributor Author

Oops actually this made the example tests fail for DPO + QLoRA .. will fix it now

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