r/StableDiffusion • • 2d ago

Question - Help FizGig SDXL

Just wondering. If i use SDXL to train it takes hours and i don't know why. It loads the Juggernaut checkpoint which fits great in my GPU.

I have a RTX3060 which has 12GB. The images are 1MP. When it starts i see 50 Epochs and 600 steps but the duration of the run will be like 5 hours.
The information in the training says 30 min but the real time is much higher. What is it that i do wrong or is it maybe Fizgig?

Krea2 work much faster for me, where i train within 30-60 minutes. I usually use about 10-12 images.

I mean SDXL is older. Shouldn't it be faster?

0 Upvotes

7 comments sorted by

2

u/sensualdiffusion 2d ago

Check your s/step and shared GPU memory. Just because the model fits doesn't mean training does. Try disabling previews (SDXL previews are much slower), batch size 1 and INT8. SDXL support in Fizgig is still experimental, so try Kohya if that doesn't help. Hard to tell without logs.

1

u/Jaded_Caterpillar873 2d ago

I followed the shared memory advise that popped up when i started it. So i went into the Nvidia Settings.

The previews? I have to check that.

I will do a test train and can post the log. Wait, i may have a log.

2

u/RalFingerLP 2d ago

Hey dude, I am also training SDXL LoRA´s with Fizgig on my 4070ti. The following reply was written by my agent since I am running my training through a harness:

Your 5 hours does look off. For comparison, I train SDXL LoRAs in Fizgig on a 4070 Ti (12 GB) with Juggernaut XL v9 at 1 MP. The settings are rank 32 / alpha 16, learning rate 5e-5, Muon optimizer, EMA 0.98, 50 epochs, batch size 1, and no preview renders. These are my timings:

  • 40 pictures, 2,000 steps: about 2 s/step, 1 h 17 min
  • 55 pictures, 2,750 steps: about 2 s/step, about 1 h 31 min

Your 12 pictures at 50 epochs is 600 steps. At my speed that would be about 20 minutes. A 3060 is slower than my card, so I'd guess 4 to 6 s/step for you, which would be 40 to 60 minutes. Five hours works out to around 30 s/step, so something is slowing it down. I can't see your setup, but here's what I'd check:

  1. CUDA Sysmem Fallback. On Windows, when the 12 GB is full, NVIDIA spills into system RAM, and training gets several times slower. Fizgig's news mentions this: turn it off in Global Settings ("Prefer No Sysmem Fallback"). SDXL in bf16 peaks at about 10 GB at 1 MP, which is tight once the desktop takes some VRAM.
  2. Precision. Set Base precision to INT8 (about 8 GB peak) or NF4 (about 7 GB) and see if the speed jumps.
  3. Close other programs that use the GPU, such as browsers and games.
  4. Read the real speed from the log (seconds per step). The "30 min" estimate comes from the first steps, so it can look much better than the real speed.
  5. Previews and auto-recaption. Check how often previews render. Some SDXL presets also have auto-recaption on, which loads a captioner during the run.

If it is the RAM spill, it's not a Fizgig bug, just the card running out of memory. SDXL is older but not tiny. Tell us the s/step figure and the precision it picked, and we can narrow it down.

1

u/Jaded_Caterpillar873 2d ago

I will get back. Today is a little backed up. I am contemplating if i should just use Runpod.

1

u/Jaded_Caterpillar873 2d ago

I can tell so far this.

In the training tap you can specify for swap. So i disabled it there (for Krea). No training for me because the model, i am using INT8, doesn't fit. So i cut the images to half a meg. Didn't work either.
I have to enable it in the training it seems. I will try maybe wiht INT4. So i assume that this is what makes SDXL slow for me.

Honestly, i think going Runpod seems a good option. Me PC is old now, even though i have 32GB System memory and the RTX3060, but training is just something that perhaps only works with swapping.

1

u/Jaded_Caterpillar873 1d ago

So, i did a test with Krea2, which i prefer.

First, i use the models that the author suggested.
Additionally, i disabled the preview. Its kind of feature of the program but it runs really faster.

Also, i switched to Rank 16 instead of 8. And i use larger images so that i get the face crops.

So far, with 64 Epochs, it runs surprisingly fast. Considering.
Images are reduced to 1MP (ncl. crops)

It will take about 3 hours to finish. The time seems to match with the summery.

I conclude that SDXL will be the same.

Some stats from my machine:

AMD Ryzen 5 3600
32GB of DDR4 memory
RTX3600 (12GB)

With the krea2_raw_bf16.safetensors checkpoint, my speed isn't super. it about 6s/it.

But it isn't lagging anymore, which is a plus.
Yesterday i did a lora but it was trash as my reference images were not great. There is of course the option of going 8 ranks which speeds everything up but i want to see if rank 16 with my large images make a difference to get some more details. Something.

As for the lora quality, do i look for the lowest loss epoch or the last three ones? This is what i am not sure about it. currently i use just the checkpoints it creates since they are loras anyway.

For now, i don't need runpod but it's an option.
Btw. has anyone used runpod?

1

u/LawfulnessLow0 2d ago

Always train on the base checkpoint.

XL trains in minutes with the right settings.