Skip to content

TypeError: PeftAdapterMixin.load_adapter() got an unexpected keyword argument 'adapter_state_dict' #5522

@tin2tin

Description

@tin2tin

Describe the bug

When loading LoRAs with the new multiple LoRAs adapter, some SDXL LoRAs fail loading with this error:
TypeError: PeftAdapterMixin.load_adapter() got an unexpected keyword argument 'adapter_state_dict'
Ex.
https://civitai.com/models/57437/andrei-tarkovsky-style
https://civitai.com/models/107140/weegee-style

However, this one works without that error:
https://civitai.com/models/133900/lora-marvin-the-martian-looney-tunes

Reproduction

Load some of the LoRA models from above with the multiple LoRAs adapter.

Logs

`TypeError: PeftAdapterMixin.load_adapter() got an unexpected keyword argument 'adapter_state_dict'`

System Info

Win 11

Who can help?

@younesbelkada @sayakpaul

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions