r/StableDiffusion • u/venusredditads • 5d ago
Question - Help Need some help optimizing moss-image-sft as MUCH as i physically can
Hey, so basically, my moss-image-sft is on q8_0 with a 8/10 step lora, and its still taking nearly 5 minutes to generate a photo. (near 240-280 seconds). On 10 steps.
Here is my system specs:
CPU - i3-12100F
RAM - 16GB DDR4-3200 at 3200Mhz
GPU - RX 6600
STORAGE - 1TB NVME (i have a little problem.. 20 gb left of one terabyte, is this what is slowing it down 🤠)
My goal is to make a photo in less than 2 minutes or even one minute, without removing the Q8_0 model.
Resolution I am using: 704x1304 (~0.92MP), i'm not running anything ludicrous for it to be genuinely slow.
Results from the Q8_0 model are amazing, its just the time to generate a single photo is like, jeez i'd much rather use chatgpt.
10
u/Occsan 5d ago •
Try int8_convrot instead of Q_8.
2
u/AltruisticList6000 5d ago
Your RAM and VRAM combo is insufficient for this. You are spilling into storage, loading/swapping the models from SSD/page file even with int8 convot, especially if you keep using int8 or BF16 TE. Try lower quant TE like gguf Q3-Q4 and INT4 quant Moss if that's still not enough (or both TE + Moss at INT4).
1
u/optimisticalish 5d ago edited 5d ago
The RX 6600 only had 8Gb of VRAM, as I understand it. So I guess that's your major constraint. But the first thing I'd do is use the WinDirStat freeware to find and delete rubbish from your PC, to free up another 20Gb of space from your SSD hard-drive. Your Swap File needs room to breath.
Does "q8_0" mean you're using the old GGUFs? If so, then the next step is probably to stop using those and get onto the latest int8 convrot stuff supported by ComfyUI Portable. Which should be faster, especially if also using Kitchen Attention, Spectrum etc in your workflow. This assumes your old card drivers can support something other than GGUFs.
After that, I'd start looking for special 8Gb VRAM workflows for Comfy, that are made for int8.
1
u/Accomplished-Ad-7435 5d ago
What's slowing it down is your limited vram, even in q8 you really should have at least a 12gb card.
1
u/fandogh5 5d ago
Use 4 step loras (akhaliq and its extensions that popped in this subreddit) out there, they are even better than 8 step dmd2s. Hope it helps but with your card, I am not sure.
1
u/GluedFingers 5d ago
You can try adding --cache-none to startup flag. Since you are using AMD and gguf, dynamic vram can be kinda strange sometimes and this might help since it might save some vram and ram.
1
u/ROBOTTTTT13 5d ago
INT8 or INT4 (smaller quant) are much faster that GGUFs, even if bigger. GGUF is quite slow on its own, especially when run in Comfyui.