diffusers icon indicating copy to clipboard operation
diffusers copied to clipboard

[LCM-LoRA] unexpected keys while loading LCM LoRA with `peft`

Open sayakpaul opened this issue 2 years ago • 5 comments

Code to reproduce:

from diffusers import LCMScheduler, StableDiffusionXLPipeline
import torch

pipeline = StableDiffusionXLPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16).to("cuda")
pipeline.load_lora_weights("latent-consistency/lcm-lora-sdxl")
pipeline.fuse_lora()
pipeline.scheduler = LCMScheduler.from_config(pipeline.scheduler.config)

_ = pipe(
    prompt="a dog",
    num_inference_steps=4,
    guidance_scale=1.0,
)

Unexpected keys can be found here: https://github.com/huggingface/diffusers/actions/runs/8105285148/job/22153378360#step:8:45.

Cc: @younesbelkada @pacman100

sayakpaul avatar Mar 01 '24 02:03 sayakpaul

thanks for reproting @sayakpaul what are the unexpected keys you get?

younesbelkada avatar Mar 01 '24 02:03 younesbelkada

@younesbelkada sorry. Just updated the PR description.

sayakpaul avatar Mar 01 '24 02:03 sayakpaul

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

github-actions[bot] avatar Mar 31 '24 15:03 github-actions[bot]

@younesbelkada a gentle ping here.

sayakpaul avatar Apr 01 '24 01:04 sayakpaul

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

github-actions[bot] avatar Apr 25 '24 15:04 github-actions[bot]