Skip to content

DOC Add entry to solve unknown config argument#2340

Merged
BenjaminBossan merged 2 commits intohuggingface:mainfrom
BenjaminBossan:doc-troubleshooting-for-unexpected-config-argument
Jan 23, 2025
Merged

DOC Add entry to solve unknown config argument#2340
BenjaminBossan merged 2 commits intohuggingface:mainfrom
BenjaminBossan:doc-troubleshooting-for-unexpected-config-argument

Conversation

@BenjaminBossan
Copy link
Copy Markdown
Member

There have been multiple issues and forum posts in the past asking about errors like:

TypeError: LoraConfig.init() got an unexpected keyword argument ...

This error can occur when the adapter that is being loaded is trained with a more recent PEFT version than the one currently being used. I thus added a section to the Troubleshooting part of our docs to describe the solutions.

Note that we already added changes to PEFT in #2038 to make configs forward compatible. But since users who encounter this problem have, by definition, older PEFT versions, they don't benefit from this.

There have been multiple issues and forum posts in the past asking about
errors like:

TypeError: LoraConfig.__init__() got an unexpected keyword argument ...

This error can occur when the adapter that is being loaded is trained
with a more recent PEFT version than the one currently being used. I
thus added a section to the Troubleshooting part of our docs to describe
the solutions.

Note that we already added changes to PEFT in huggingface#2038 to make configs
forward compatible. But since users who encounter this problem have, by
definition, older PEFT versions, they don't benefit from this.
Copy link
Copy Markdown
Member

@stevhliu stevhliu 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 adding docs!

Comment thread docs/source/developer_guides/troubleshooting.md Outdated
Comment thread docs/source/developer_guides/troubleshooting.md Outdated
Comment thread docs/source/developer_guides/troubleshooting.md Outdated
Comment thread docs/source/developer_guides/troubleshooting.md Outdated
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
@BenjaminBossan BenjaminBossan merged commit 1b9bcb2 into huggingface:main Jan 23, 2025
@BenjaminBossan BenjaminBossan deleted the doc-troubleshooting-for-unexpected-config-argument branch January 23, 2025 11:41
Guy-Bilitski pushed a commit to Guy-Bilitski/peft that referenced this pull request May 13, 2025
There have been multiple issues and forum posts in the past asking about
errors like:

TypeError: LoraConfig.__init__() got an unexpected keyword argument ...

This error can occur when the adapter that is being loaded is trained
with a more recent PEFT version than the one currently being used. I
thus added a section to the Troubleshooting part of our docs to describe
the solutions.

Note that we already added changes to PEFT in huggingface#2038 to make configs
forward compatible. But since users who encounter this problem have, by
definition, older PEFT versions, they don't benefit from this.

---------

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
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.

2 participants