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

Update run_clm_sft_with_peft.py #578

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update run_clm_sft_with_peft.py #578

wants to merge 1 commit into from

Conversation

dshwei
Copy link

@dshwei dshwei commented Oct 17, 2024

PeftModel.from_pretrained parameter should set is_trainable=True, otherwise all model parameters will be setted requires_grad = False

PeftModel.from_pretrained parameter should set is_trainable=True,
otherwise all model parameters will be setted requires_grad = False
@dshwei
Copy link
Author

dshwei commented Oct 17, 2024

When you want to use peft checkpoints as a continuing fine-tuning ,,PeftModel.from_pretrained's parameter is_trainable=True is required

@dshwei dshwei marked this pull request as ready for review October 17, 2024 05:28
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.

1 participant