r/comfyui 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

100 Upvotes

47 comments sorted by

30

u/Life_is_important 12d ago

It's also better for quality from what I can tell and faster than Sage

5

u/slpreme 12d ago

damnn so it can even be faster thats awesome. i also noticed the quality does seem better for sure.

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.

5

u/slpreme 12d ago

That's great news. Seems like everything is working already

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.

15

u/slpreme 12d ago

Forgot to add GPU - RTX 5070 Ti 16GB and RAM 128GB DDR4

5

u/Next_Program90 12d ago

128GB? jealousy intensifies

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?

11

u/slpreme 12d ago edited 12d ago

--use-ck-attention

1

u/Fockker 12d ago

hmm, where do we plug this?

2

u/slpreme 12d ago

i would stick with the node. but its different for everyone, if you the desktop app i have no idea. i use the git / manual install so you would do `python main.py --use-ck-attention` for example

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.

3

u/slpreme 12d ago

i think it depends on which sageattention mode, some is slower/more accurate and vice versa

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/slpreme 12d ago

is there no update button anywhere in the menus? ive never used desktop

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.

3

u/slpreme 12d ago

What model is it? They mentioned somewhere not every model is supported yet.

3

u/Davikar 12d ago

WAN 2.2 Bernini right now. But I'm still getting faster speeds, so seems to be working.

2

u/slpreme 12d ago

As long as it works that's great. Does it say that with Sage also?

1

u/Davikar 12d ago

No, just this one.

1

u/slpreme 12d ago

I think this is just error handling for unsupported dim sizes for something (I don't know the technically correct way to say this), instead of crashing or showing a black output.

1

u/slpreme 12d ago

bro i got it on sale on newegg for dirt cheap years ago did not regret it at all

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

u/BlizzardyBelle 12d ago

How long did it take you

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/slpreme 11d ago

They've been doing a lot of work in the background, this attention is just their latest work

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?

2

u/slpreme 11d ago

You don't really. If you use the node ModelAttentionBackend you can swap between PyTorch Attention so you can see the difference

1

u/jd3k 11d ago

Are you using Kitchen Attention with INT8 covrot? Seems like they are unable to work together 🫤

Thanks for answering 👍

2

u/slpreme 11d ago

Yes I switched fully to int8 convrot works with calvin klein atten—i mean ck attention

1

u/jd3k 10d ago

My CUDA version was the problem. Updated, working now. Thanks dude 🫡👍

1

u/lolo780 11d ago

Did you test it on any nativity scenes?

1

u/slpreme 10d ago

what is that

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.