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

Adds requires_grad to input for non-quantized peft models #1006

Merged
merged 3 commits into from
Nov 20, 2023

Conversation

younesbelkada
Copy link
Contributor

@younesbelkada younesbelkada commented Nov 16, 2023

What does this PR do?

As flagged internally by @regisss

This fixes the case where the base model is not quantized and one uses gradient checkpointing

cc @lvwerra

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Nov 16, 2023

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

@younesbelkada younesbelkada merged commit aea1da8 into main Nov 20, 2023
9 checks passed
@younesbelkada younesbelkada deleted the younesbelkada-patch-sft-trainer-gc branch November 20, 2023 14:57
lapp0 pushed a commit to lapp0/trl that referenced this pull request May 10, 2024
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