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