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. |
|
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: |
|
I keep got this error message: I've downloaded all the 3 folders and the |
|
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: |
|
thanks guys! u rock! |
|
[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: ***@***.***>
|
|
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 |
|
LCM Dreamshaper GGUF (fp16 for now): https://huggingface.co/Steward/lcm-dreamshaper-v7-gguf |
LCM.safetensors doesn't work with the latest version of SD.cpp |
Thank you for the answer. Where can i find the suitable LCM.safetensors? |
These are loras. I meant standalone all-in-one safetensor or ckpt. |
|
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. |




Uh oh!
There was an error while loading. Please reload this page.
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
All reactions