Skip to content

Weights for loading loras #3682

Closed
Closed
@pdoane

Description

@pdoane

Is your feature request related to a problem? Please describe.
LoRAs when loaded/applied to a pipeline typically include a user provided weight that scales the weights in the LoRA. E.g. see Compel's LoraWeight class.

Describe the solution you'd like

Add a parameter to load_lora_weights that scales the weights in the file.

Describe alternatives you've considered
I initially assumed network_alpha added in #3437 was for this purpose, but it looks like it must match what is in the file or there is an error. I'm not following how this is supposed to be used.

Maybe repurpose network_alpha for this?

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions