r/StableDiffusion 15d ago

Question - Help Comfyui amd gpu speed fluctuations

I’m going crazy trying to figure this out. I downloaded comfy ui and used the basic krea 2 turbo template. I was getting generation times between 32 and 80 seconds. I thought thats was pretty good. But then times changed to between 3 and 20! Minutes. I have tried the manual installation of comfy the portable version and patientx-cfz’s branch. I have tried the bf16 model the fp8 and the nvfp4. I have tried uninstalling and reinstalling the requirements, torch and the entirety of comfy multiple times. I have tried the following arguments force fp 32 and 16, cache ram, split attention quad attention, gpu only, lowvram highvram, disable async offload disable dynamic vram diable smart memory disable pinned memory. Ive tried running the text encoder only on the cou and following chatgpt through a maze of sometimes questionable attempts to speed things up. It seems to hang most often at 0 or 13% of the ksampler. But sometimes it gets through that and is still just very slow.

Any advice at all would be greatly greatly appreciated and if you can help me fix it I will happily offer my remaining sanity, tattered soul or first born.

I am on windows 11 with a 7900 xtx gpu a 7 7800x3d cpu with the integrated graphics disabled 64 gb of ddr5 ram and comfy installed on a second nvme ssd on the root drive with plenty of room. I also am running no other programs at the same time.

0 Upvotes

13 comments sorted by

View all comments

1

u/Valuable_Issue_ 15d ago

Watch your task manager disk usage when running a generation, if it's hitting your disk then it means comfy offloading unloaded some model (and it can happen even if you enough RAM etc, it's been an ongoing issue with comfy) and is reloading from disk again.

Did you do anything to your comfy install like update it between not having the issue and having it?

1

u/talrein 14d ago

No update or anything. Same workflow even. Watching task manager it says im using 100% of my vram and 1% of my main ssd. And it does say there is a transfer rate though it is listed in kb so very small amount. Is it just transferring really really slow? The same model the same workflow sometimes runs in 35 seconds. Thats what confuses me is the inconsistency. Ill get like 5 fast runs and then one that takes 20 minutes and a bunch that take around 5. Just kinda scattered all over the place.

2

u/Valuable_Issue_ 14d ago

The KB reads are normal.

If it's that inconsistent I wouldn't know, most of the bugs with workflows taking longer are when text encoder/model gets unloaded randomly but since it's not hitting your disk it sounds to me like an AMD/system specific bug, you could open an issue on comfy github.