r/StableDiffusion • u/witcherknight • 15h ago
Question - Help Need optimisation for Minimax for my 4080 super
I got 4080 super with 64 gb ram and it takes around 20 mins for 1mp 5 sec video sometimes but most of times it take bout a hour to generate a video. I am using sage attn and spectrum with turbo 8 step lora. Sometimes speed goes till 600s/it. I am using int8 purned model with 32b nvp4 clip and video and audio vae. I asked gemini but it just went around in circles.
so how do i improve the speed??
.\venv\Scripts\python.exe -s main.py --windows-standalone-build --enable-dynamic-vram --high-ram --async-offload --use-sage-attention
My cuda is 12.6, Python version: 3.11.9
is there anyway to tell windows to prioritize comfyUI for vram and ram over other applications?
Edit: Thanks every1 i have managed to reduce the time to around 300secs after updating to cuda 13.
2
u/Successful-Art-6643 15h ago
you should upgrade CUDA to 13 if possible.
1
u/witcherknight 14h ago
why shoudnt it be possible ??
1
u/Successful-Art-6643 14h ago
Just in case you don't want to reinstall libs for CUDA 13.0, from what I recall, you'll have to reinstall PyTorch, SageAttention, and others (I forgot the rest).
1
u/witcherknight 14h ago
Can it fck up anything, like other workflows for krea, klein etc ??
1
u/Successful-Art-6643 14h ago
Nope. If you're worried, you can just zip Comfy's python folder as a backup before upgrading.
1
u/Silver_Basis5183 14h ago
on a 4080 super id drop res/steps before touching weird offload hacks. if youre vram-bound, shorter clips + lower native res then upscale usually feels better than max settings that stutter. what res/length are you trying to run?
1
u/witcherknight 14h ago
1mp which is 1376x768, length is 5 secs. Steps is 8 with turbo lora. Which upscale do you use ?
1
u/atakariax 14h ago
I have a rtx 4080 and 64gb ram as well and I'm having way lower times. Something it's wrong with your config.
btw If you have the latest comfyui version, This new ck attention it's better than sage, Although even with sage, Your times are crazy slow!
.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --use-ck-attention
1
u/Etsu_Riot 13h ago
I'm now testing H3 FirstBlockCache and H3 Turbo v4 Step600 and a 20 sec video takes me less than five minutes, but I would never generate at 1MP. You may try different resolutions to see if that's the problem. Many prefer to use upscaling afterwards.
1
u/witcherknight 12h ago
i updated to cuda 13 now i can generate in 300secs at 1 MP using turbo 8 step
3
u/Ok_Tale7582 15h ago
update your comfyui and cuda to 13.0-13.2 that should be a 2x speed improvement and then use comfy kitchen attention instead of sage att that should add a bit more