r/StableDiffusion • u/TensorForger • 15h ago
Resource - Update ComfyUI-Steppe 1.3.0: major optimization update
Hi, posting about this update because there were several requested to lower VRAM requirements for ComfyUI-Steppe - my node pack for generative latent upscalers and translators. It lowers the memory usage 3-4 times on average and up to 10 times in extreme video upscaling cases. The quality is same up to 1% difference from float rounding.
What was changed:
All Steppe models are local both spatially and temporally. The use local window attention for images and add causal convolution for videos.
Spatial locality allows to use tiled inference: latent tensor can be split into rows and processed sequentially. It still requires to hold residual stream tensor in memory, but it is much smaller then the temporary MLP expansion activation tensor.
For videos this is even more interesting: we can stream latent frames through the network. Activation tensors of old frames can be deleted. This makes memory complexity of video processing almost constant and independent from video length (except input and output tensors).
We also added optional compilation flag for loader nodes. First pass would take several seconds more, next ones would become faster.
These numbers are for Steppe models by there own, VAE decode memory is not included. With large output VAE decoder is main limitation: use small or tiny VAE versions and/or tiled decode for extremely large outputs.
2
u/thevegit0 14h ago
i was a bit skeptical but i'm really liking steppe when i want a bigger image, also the h3 convert latent while i don't use it that much it's really interesting, i wonder if you going to try your take of steppe for latent upscaling for h3 video
2
u/Responsible_Ad6964 10h ago
Thank you for this. I use it as my everyday upscaler.
1
u/J6j6 1h ago
so my current krea2 workflow is having two samplers using krea2, the latter having lower noise value and higher resolution. i assume thats regenerative. whats the diff with steppe or seedvr for that matter?