leejet / stable-diffusion.cpp

Stable Diffusion in pure C/C++
MIT License
2.91k stars 233 forks source link

[Question] Can I convert a sd model with lora converting and merging into it? #199

Open mzwing opened 3 months ago

mzwing commented 3 months ago
./sd -M convert -m Anything/anything_v30.ckpt --lora-model-dir lcm-lora-sdv1-5 -o Anything-GGUF/anything_v30_LCM.Q4_0.gguf -v --type q4_0

If I run the command above, it will neither merge the lora into the converted model nor convert it into gguf.

I want to merge the lora into the model and then convert the new model. Are there any ways to do that?

idk whether it is a good way to use LCM-LoRA :(

Env:

(Sorry for my poor English.)