LCM sampler support [very fast and low step generation] #76
Replies: 12 comments 40 replies
-
that looks very impressive. 2-4 steps would be huge. |
Beta Was this translation helpful? Give feedback.
-
I just added support for the Latent Consistency Models Sampler. You can pull the latest code and try the following steps:
Here's an example:
|
Beta Was this translation helpful? Give feedback.
-
I keep got this error message: I've downloaded all the 3 folders and the |
Beta Was this translation helpful? Give feedback.
-
I just added LoRA support, now we can specify the use of LCM-LoRA through the prompt. Any SD1.x model should be adaptable. Here's a simple example:
|
Beta Was this translation helpful? Give feedback.
-
thanks guys! u rock! |
Beta Was this translation helpful? Give feedback.
-
[like] Hoi Vo reacted to your message:
…________________________________
From: Steward Garcia ***@***.***>
Sent: Tuesday, November 28, 2023 10:11:04 AM
To: leejet/stable-diffusion.cpp ***@***.***>
Cc: Hoi Vo ***@***.***>; Mention ***@***.***>
Subject: Re: [leejet/stable-diffusion.cpp] LCM sampler support [very fast and low step generation] (Discussion #76)
@HoiV<https://github.com/HoiV> you can try with my PR #88<#88>, I think I already fixed that issue with some changes I made to the converter since I also encountered a safetensor file that prevented me from converting it.
—
Reply to this email directly, view it on GitHub<#76 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIWGROEXTVIMCGEFYTD2F23YGW2DRAVCNFSM6AAAAAA6MDDXFWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TMOJQGU4TA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
i think it will be great if someone upload the converted fp16 gguf of lcm model in huggingface and put the link here for everybody |
Beta Was this translation helpful? Give feedback.
-
LCM Dreamshaper GGUF (fp16 for now): https://huggingface.co/Steward/lcm-dreamshaper-v7-gguf |
Beta Was this translation helpful? Give feedback.
-
LCM.safetensors doesn't work with the latest version of SD.cpp |
Beta Was this translation helpful? Give feedback.
-
Thank you for the answer. Where can i find the suitable LCM.safetensors? |
Beta Was this translation helpful? Give feedback.
-
These are loras. I meant standalone all-in-one safetensor or ckpt. |
Beta Was this translation helpful? Give feedback.
-
Hi John, given we can currently consume .ckpt / .safetensors directly, I used this script (https://github.com/huggingface/diffusers/blob/main/scripts/convert_diffusers_to_original_stable_diffusion.py) to reconstruct the .ckpt from the original model from https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7. From there you can go to any quantization you need from sd.cpp. |
Beta Was this translation helpful? Give feedback.
-
HI!
can someone please implement this sampler and make a script to convert its model to ggml please? @ursg @leejet
u only need 2-4 steps to generate amazing images! we won't be needing for over 20 steps anymore, it works with cpu too, it has its own model so it has to be converted alongside the sampler itself, please see this here:
https://github.com/luosiallen/latent-consistency-model
it will be amazing with cpp they get along a lot :D
kind regards
Beta Was this translation helpful? Give feedback.
All reactions