Skip to content

LoRA unloading is broken #4263

Description

@isidentical

Describe the bug

Seems like LoRA unloading stopped working after the commit ebfe343.

Reproduction

Tested this with a Kohya-SS style LoRA

pipe = StableDiffusionPipeline.from_pretrained(
    model_name,
    torch_dtype=torch.float16,
    safety_checker=None,
)
pipe.load_lora_weights(...)
pipe.unload_lora_weights()
pipe(...)

Logs

No response

System Info

Running on the latest version of diffusers. Bisected it to PR #4259. Looking into the cause now 👀

Who can help?

@patrickvonplaten, @sayakpaul, and @williamberman

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleIssues that haven't received updates

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions