Skip to content

add is_trainable in kwargs - #363

Merged
younesbelkada merged 1 commit into
huggingface:mainfrom
Opdoop:add-is-trainable
May 15, 2023
Merged

younesbelkada merged 1 commit into
huggingface:mainfrom
Opdoop:add-is-trainable

Conversation

@Opdoop

@Opdoop Opdoop commented May 12, 2023 •

Copy link
Copy Markdown
Contributor

What does this PR do?

This PR enables continue training of peft model by add is_trainable as a kwarg on from_pretained of PreTrainedWrapper. (ref. #342 (comment))

is_trainable is a parameter of PeftModel.from_pretrained() which enable continue training. LoraConfig do not have is_trainable parameter.

Use case example: huggingface/peft#282 (comment)
Source: https://github.com/huggingface/peft/blob/main/src/peft/peft_model.py#L145

cc @lvwerra @younesbelkada

Add is_trainable in kwargs to enable continue training of peft model.
@HuggingFaceDocBuilderDev

HuggingFaceDocBuilderDev commented May 12, 2023 •

Copy link
Copy Markdown

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

@younesbelkada younesbelkada left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks a lot for the clean work!
This looks great to me!

@younesbelkada
younesbelkada requested a review from lvwerra May 12, 2023 08:41
@younesbelkada
younesbelkada merged commit a31bad8 into huggingface:main May 15, 2023
yxliu-TAMU pushed a commit to mincheolseong/ECEN743-GRPO-Project-Proposal that referenced this pull request Apr 20, 2025
Add is_trainable in kwargs to enable continue training of peft model.
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.

4 participants