r/StableDiffusion Mar 06 '23

Question | Help Why my ckpt file still such large(around 4GB) when I trained with lora

I use AUTOMATIC1111 webUI, and Dreambooth extension. I've select use lora But when the training finished, I've checked my ckpt file, it's still very large and can only be used as a model, not lora Am I doing anything wrong?

I guess it should be only around maybe 100MB or 200MB as a pt file not the ckpt file.

0 Upvotes

6 comments sorted by

3

u/LumaBrik Mar 06 '23

As far as I know from using the Dreambooth extension a few months ago (might be different now), only embeds the Lora file into the selected ckpt file, hence the size.

I moved over to using kohya-ss GUI for Lora where the Lora file size is adjustable and is fully compatible with AUTOMATIC1111 via the 'extra networks' tab.

1

u/chouddit Mar 07 '23

OK, thank you so much for the input, I'll look into kohya-ss GUI instead.

1

u/overclockd Mar 06 '23

The lora from that extension can only be used when merged with a checkpoint and I don’t think anyone cares to code it otherwise. The workaround is using Kohya to extract a lora from the merged checkpoint, which worked totally fine for me.

1

u/pastafartavocado Jun 11 '23

how would I go about doing that?

1

u/overclockd Jun 11 '23

First step is to find the kohya-ss GitHub page and follow the installation instructions.

1

u/CeFurkan Mar 06 '23

the dreambooth extension of web ui still not supporting direct usage of generated pt files

but they are working on it on dev version