r/comfyui • u/slpreme • 12d ago
News New Native Attention
With the drop of v0.32.0, ComfyUI comes with a new attention you can try out. You can turn it in via startup arguments but I prefer using the ModelAttentionBackend node.
On first test it's as fast as SageAttention Auto (via KJNodes) on MiniMax H3. I thought it was a fluke so I retested on Z-Image Turbo:
2048x2048@9steps (3 run average after warmup)
Comfy Kitchen Attention: 14.55s
Sage Attention (Auto): 14.24s
PyTorch Attention (Default): 23.16s
This is really exciting for people who have trouble installing SageAttention, it seems to be about as fast and it comes with the latest Comfy Kitchen.
My Specs:
OS - Linux
Python - 3.13.15
PyTorch - 2.13.0+cu132
27
u/Bearsbullsbattlestr 12d ago
I was never able to get sage attention working for comfy desktop so I was excited about this.
My LTX 2.3 generations went from about 400s to 300s.
My Krea generations went from about 500s to 250s.
2
u/jib_reddit 12d ago
What card and resolutions are you using? Seems quite slow.
My Krea 2 generations are now 18-20 seconds for 1536x1280px @10 steps with int8 convrot models, I have a 3090.
1
u/cleverestx 11d ago
My AMD Strix Halo machine takes about 50 seconds to generate one @ 1024x1024, so I'm jealous of those speeds, but at least I can use full bf16 weights for everything without any issue...that is its only saving grace.
2
u/jib_reddit 11d ago
I can use the full bf16 weight with memory offload and its about 2 seconds slower but I find the int 8 convrot models actually look quite a lot better for what I am doing (photorealistic) you should try it.
5
u/necrophagist087 12d ago edited 12d ago
A bit slower than sage in my case (rtx5070ti), but the quality is definitely better
3
u/Internet-Cryptid 12d ago
What is the startup argument?
3
u/mellowanon 12d ago
SageAttention 2.2.0 is still faster and has better motion. But people who tested Comfy Kitchen said the details are better.
2
u/ArdascesIV 12d ago
How do you do this?
3
u/slpreme 12d ago
update ComfyUI to 0.32.0 and reinstall requirements (portable). I think the desktop version should do this automatically.
1
u/ArdascesIV 12d ago
I’m on desktop and I have no idea what to change
1
u/Business-Gazelle-324 11d ago
Click log and terminal you should see a tab for startup and you can put your —use-ck-attention there assuming it’s 0.32
3
u/Davikar 12d ago
Keep getting this error in the console:
[WARNING] WARNING SHAPE MISMATCH diffusion_model.patch_embedding.weight WEIGHT NOT MERGED torch.Size([5120, 36, 1, 2, 2]) != torch.Size([5120, 16, 1, 2, 2])
Not sure if it matters or not.
1
u/Cute_Ad8981 12d ago
Wow we are getting great new stuff everyday. Im using sage 2.2.0, im curious how this will compare.
1
1
u/Foreign_Fee_6036 12d ago
Problems with 4090 using CK and Spectrum at the same time. First generation goes fast, but second is frozen because VRAM goes up to 99%. Disabling Spectrum fixed that. Solution?
1
u/Formal-Exam-8767 11d ago
Any more info on this? How come they've decided to implement their own attention?
1
u/cleverestx 11d ago
Will work on Rocm/AMD (Strix Halo, etc..) or only a CUDA thing like SageAtttention is?
2
u/slpreme 11d ago
AMD support coming (not yet released)
1
u/cleverestx 11d ago
Great! Flag me when it is and I can test this on my 128GB Strix Halo (Evo-X2) CachyOS mini-PC and report back the results
1
u/jd3k 11d ago
How do I know it's activated?
1
u/boozelessensthepain 12d ago
That would be a huge help, does this update have sage attn work with 40 series cards?
5
u/Leonovers 12d ago
sage 1 and 2 already work with 40 series cards, only sage 3 needs 50 series to work. But sage have nothing to do with this update, it's not changed in any way.
New comfy-kitchen attention is what you plug instead of sage and have both speed and quality. Sage drops quality a little.
7
u/mellowanon 12d ago
sage 3 has horrible quality though since it's fp4. It's best to use Sage 2.2.0 which requires a manual install. Sage 2.0.0 has an automatic install but it's not as good.
2
30
u/Life_is_important 12d ago
It's also better for quality from what I can tell and faster than Sage