Skip to content

Conversation

@d-kleine
Copy link
Contributor

@d-kleine d-kleine commented Jan 8, 2025

closes #2295 along with FIX #2306

Updates documentation for get_peft_model() that the base model will be modified in-place:

  • tutorial/peft_model_config
  • get_peft_model() docstring

@d-kleine d-kleine marked this pull request as ready for review January 8, 2025 13:02
Copy link
Member

@BenjaminBossan BenjaminBossan left a comment

Choose a reason for hiding this comment

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

Thanks for creating this PR to make it very clear in the docs that get_peft_model modifies the base model in place. I made a few suggestions which should hopefully better clarify what's going, please check.

@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.

Copy link
Member

@BenjaminBossan BenjaminBossan left a comment

Choose a reason for hiding this comment

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

Thanks for improving the docs for get_peft_model, this should help avoid confusion in the future.

Failing CI is unrelated, so merging is fine.

@BenjaminBossan BenjaminBossan merged commit af637ac into huggingface:main Jan 9, 2025
12 of 14 checks passed
@d-kleine
Copy link
Contributor Author

d-kleine commented Jan 9, 2025

Alright, thanks for merging!

@d-kleine d-kleine deleted the peft_inplace_info_doc branch January 9, 2025 15:03
Guy-Bilitski pushed a commit to Guy-Bilitski/peft that referenced this pull request May 13, 2025
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.

PEFT model doesn't update params when having changed LoRA config

3 participants