Skip to content

Why loading a lora weights so low? #8953

Closed
@zengjie617789

Description

I used diffusers to load lora weights but it much slow to finish.
diffusers version: 0.29.2

I test another version of diffusers 0.23.0 without peft installation, and the time is decent.

t1 = time.time()
pipe.load_lora_weights("/data/**/lora_weights/lcm-lora-sdxl/", weight_name="pytorch_lora_weights.safetensors")
print(f"load lcm lora weights cost: {time.time()- t1}")

image
image

And If I use low version of diffusers, much of code need to be modified which cost much work.
Anyone who can help me will be appreciate.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions