Skip to content

Commit

Permalink
update oft check_kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeju committed Oct 1, 2024
1 parent 0fd23cc commit 64cd73f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/peft/tuners/oft/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ def check_kwargs(cls, **kwargs):
"""
if "oft_block_size" not in kwargs:
raise ValueError(
"OFT has been updated since PEFT 0.14.0. Your trained adapter weights are incompatible"
"with the latest version of OFT. Please retrain your adapter weights with newer PEFT versions."
"OFT has been updated since PEFT 0.14.0. Your trained adapter weights are incompatible "
"with the latest version of OFT. Please retrain your adapter weights with newer PEFT versions. "
"Alternatively, downgrade PEFT to version 0.13.0 to use the old adapter weights."
)
return super().check_kwargs(**kwargs)

0 comments on commit 64cd73f

Please sign in to comment.