PEFT documentation

エラー

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

エラー

クラス peft.PeftError

< >

( )

ベースPEFTエラー

クラス peft.NoMatchingPeftModuleError

< >

( )

注入されたアダプターは、ベースモデルのモジュールやパラメータに一致しませんでした。

例えば、PEFT設定のtarget_modulesが何も一致しなかった場合に発生します。これはほとんどの場合、設定ミスを示しています。以前に発生していた汎用エラーを捕捉していたコードとの後方互換性を保つため、ValueErrorをサブクラス化しています。意図的にそのようなアダプターを追加するコードは、このエラー(またはPeftError)を捕捉して処理を続行できます。

Update on GitHub