https://github.com/huggingface/transformers/blob/dd360ad2364382e7ef3c19d1011cb0a4e9b418ff/src/transformers/integrations/peft.py#L303 Please have a look. There's another similar typo in this file on line 264