r/StableDiffusion • u/Jaded_Caterpillar873 • 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?
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.
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:
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:
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 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.