r/StableDiffusion • • 27d ago

Question - Help Current best H3 speed-up techniques?

I used H3 heavily the first two weeks and a ton of amazing improvements for improving speed at small quality trade-off came out (Sparse Attention comes to mind).

I imagine things have matured a lot since then and probably with new approaches since then!

I'm on a 4090 so that's my target, but I'm curious for all tiers.

Edit: Appreciate all the tips coming in! Lots to learn and test out. Best part of this subreddit is how much knowledge sharing and collective learning we do.

43 Upvotes

54 comments sorted by

11

u/grrinc 27d ago • Bravo

get ready for 50+ different suggestions.

4

u/BigWideBaker 27d ago edited 27d ago

Great! I'm hoping for that, always great to have many different suggestions and opinions that could apply for all kinds of setups. Great tips already.

30

u/Super_Range45 27d ago

The https://huggingface.co/Pika-Labs/Pika-H3-Flex-Turbo-LoRA Is the first lora that didn't do any obvious butchering of image/audio quality for me, though it loses some prompt adherence to the 'no free lunch' principle.

12

u/Independent-Frequent 27d ago

I'm using the workflow on their website and the results are just plain bad compared to larry600's lora which somehow is still the best lora by far even after months of new loras, and even that lora has its issues.

Haven't tried with my own workflows yet but if the official ones aren't great then i don't have much hope.

4

u/froschquark 27d ago

Same, I tried their own WF, then tried it on my own WF, never had a good result and often had "stuttering" as well.

2

u/rinkusonic 26d ago

For me, dareties lora has been my go-to. Cranking up the lora to 1.25 improves movements a lot.

0

u/J6j6 26d ago

Use comfyui workflow

1

u/J6j6 26d ago

The one provided by them in the template section

5

u/froschquark 27d ago

I really would love to know why so many people say it is good and plenty others (myself included) have bad results.

Using the lcm sampler and the official 6 manual sigmas, yet my results were never really good. (tried 3 different ranks for the ref2va lora)

I tried a few other sampler+scheduler combinations but nothing was very good, I think the best was euler/beta57 or so

Is there anything else I have to use or do, like a specific turbo lora loader like for larry? Any specific resolution it is good or bad with? Not even speaking about high motion or NSFW, just regular things like a music video etc.

It is just much worse than larry, silveroxide merge V1(forgot the name), or dmad for me.

7

u/Super_Range45 27d ago

I used the default workflow provided by comfy and it pretty much just worked.

1

u/[deleted] 26d ago

at least 0.7-1 mp and 8 steps

4

u/Alarmed_Wind_4035 27d ago

best turbo Lora imo

1

u/Sarashana 27d ago

I second that. I recently tried Pika, and while it still somewhat degrades the output, the trade-off is better than with any other turbo LoRA I have tested.

15

u/paganspam 26d ago

i tried a lot, DMAD, Pika 6 steps, a lot of 4 steps lora, veda sparse, taomate 3 steps, SMD, H3 omni fast 8 steps we re running out of speed lora name etc...

first of all the 4 steps lora are bad as soon as you need real movement, it fall appart. So you need to add more steps like 6 to 8 steps but those lora are not trained for those steps, so you might have a better movement but the image quality fall appart and become oversaturated and very bright. To be fair DMAD is the best of all 4 steps i tried but still unusable for me.

Hyperflow 8 steps however always for me stay close to 20 raw steps, the sounds is great, movement is good. It work nicely with kitchen comfy attention + sol-atn so it s quite fast for a 8 steps. It needs a special node instead of a lora loader to work nicely :

https://github.com/Saganaki22/ComfyUI-Hyperflow

So far i didnt find anything as close to it (H3 omni could come close second but the sound is bad...)

Oh and i was only talking by ref to video. I didnt really try image to video.

1

u/[deleted] 26d ago

so many loras and i wanted to try this too, however i simply forgot. thx!

0

u/J6j6 26d ago

I see you haven't tried pika

1

u/Simpsator 26d ago

How does Pika compare to Hyperflow? Hyperflow was the only turbo that ever 100% listened to framing instructions without random zooms (when prompted for fixed camera). Hearing that it reduces prompt adherence has prevented me from trying it.

1

u/paganspam 26d ago

i did as i wrote first line, it s a good 6 steps but still not good enought with movement it s on the same DMAD, just compare it to raw 20 steps you ll see the difference.

1

u/J6j6 25d ago

can you post output of both dmad and pika you tried

0

u/multikertwigo 25d ago

I tried both. Hyperflow wins.

0

u/J6j6 25d ago

post results?

0

u/multikertwigo 24d ago

no. It takes time which I don't have. And ultimately, I don't care what kind of turbo you end up using.

-1

u/J6j6 24d ago

Then you're just making things up lol

2

u/multikertwigo 23d ago

yes, I'm making things up because I want to distract you from the absolute best turbo lora of all time by suggesting inferior options

mwa ha ha

/s (in case you don't get it)

8

u/jworm0624 27d ago

Veda sparse attention has worked well for me cut down my generation time from almost 400s to around 220s

2

u/Oograr 27d ago

Is that something that can be used with Kitchen Attention or is it a replacement?

9

u/Apprehensive_Sky892 27d ago edited 27d ago

AFAIK, they can work together: https://www.reddit.com/r/StableDiffusion/comments/1wzskwy/comment/peh6aka/?screen_view_count=1

(I cannot test it out since Veda does not work on AMD).

Edit 1: apparently there is now a implementation that works on AMD: https://github.com/veda-sparse/Veda-on-ComfyUI

Edit 2: this the usage instruction about mixing Veda with other attention mechanisms: https://github.com/veda-sparse/Veda-on-ComfyUI?utm_source=chatgpt.com#usage

To add Veda to an existing H3 workflow, put Veda Sparse Attention (MiniMax H3) on the MODEL wire after the model and any LoRA loaders, last before the guider or sampler. Select it and press Ctrl+B to bypass it and render the same seed with full attention.

Do not combine it with ComfyUI's own "Model Sparse Attention" node on H3: that one replaces the attention blocks outright, so Veda would never be called. The node says so when it sees both.

Other attention nodes can stay. Veda runs on top of "Patch Sage Attention KJ" (the calls it does not take go to sage), and KJNodes' "MiniMax H3 Low VRAM Attention" keeps working. A node that swaps out the whole H3 attention, such as "MiniMax H3 Mem Eff Sage Attention Patch", must come before Veda: Veda then runs the sparse layers and leaves that node the full-attention ones, and says so on its node. Placed after Veda it would hide every call from Veda; the node warns about that too

1

u/Oograr 26d ago

Thank you for that info, I'll try it out

1

u/Apprehensive_Sky892 26d ago

You are welcome.

1

u/jworm0624 27d ago

I use it instead of comfy kitchen

1

u/[deleted] 26d ago

how do you set that fucker up? i choose the right resolution and setup the node but i gain nothing.

7

u/RiverSide71h 27d ago

I’ve found the perfect solution for speed..just don’t generate at 1+ mp.. you’ll be waiting forever regardless of speedup used.

6

u/liimonadaa 27d ago

I've cut back my usage of turbo loras in favor of latent upscaling lately.

3

u/Trebonde 27d ago

Mind me asking you to elaborate a bit with a sample workflow? New to all this and always looking for examples

3

u/liimonadaa 27d ago

I originally tweaked this one. You can probably find simpler examples if you search for latent upscale. I asked to Claude to help me reason about what tweaks I needed to make to un-turbo the 2nd pass, but you can keep that in and try.

https://www.reddit.com/r/StableDiffusion/s/7BEpxEUBwo

That said, the newest comfyui added native support for latent upscale, so I want to experiment with that. Id try finding a recent example that supports that. That is my homework tn. I'll update this if I find anything good.

1

u/Trebonde 26d ago

Makes sense, and appreciate it

4

u/froschquark 27d ago

https://tryingsomestuff.com/turbotest <- has a "blind test" feature

https://plox-1.github.io/h3-speedups/

a bit of ranking, some slightly outdated (aka 2-4 weeks old info lol), but a nice overview and most importantly: examples, details and settings AND links :O

2

u/Beneficial_Fish_7509 2d ago

Wow this is genuinely insanely valuable data https://plox-1.github.io/h3-speedups/ thank you so much

4

u/Inevitable_Set_9232 26d ago

Tried them all and my current personal favorites are DMAD and Pika.

DMAD is the best 4 step lora that doesn't overcook the image and doesn't override reference style. It has a lot of flexibility to use references with natural style and good prompt adherence.
Quality can have some pixelation and too much movement will have a lot of pixelation.

Pika 6 steps is stunning visually. A 0.4 megapixel generation with Pika looks better and sharper than a 0.6 megapixel generation of other turbo loras.
It's also really good with movement and fast action.

Downside is that it's less flexible than DMAD, so references can sometimes be stubborn to properly insert in a scene and it may subtly override the natural style of the reference towards a 'cleaner' AI look

I'm using both, sometimes generating the same clip with each one to pick the best for the situation.

3

u/douchebanner 27d ago

i like taomate, only 3 steps and it seems to create a lot of motion without prompting too much. if you suck at prompting like i do, it can be helpful.

1

u/Obvious-Leg-5604 27d ago

I remember taomate doesn't have lora for ref2VA, right?

1

u/Ken-g6 26d ago

It seems to work anyway in many cases.

1

u/douchebanner 26d ago

not yet, the t2v knda work-ish

3

u/SpaceNinjaDino 26d ago

My setup is H3 Prism Pika merged checkpoint plus DMAD LoRA @0.25, shift 12+(9-15), euler/beta57, 8 steps. I use the full size MiniMax vaes.

2

u/Comrade_Derpsky 27d ago

I use spectrum for this.

2

u/SackManFamilyFriend 26d ago

Still use the H3 cache (recoded without the hook issue). I'll take 2x faster for no speed or audio issues even though it's not as fast as the turbo Lora.

2

u/Muted-Celebration-47 25d ago

I prefer to use them together as strategy. Split into 3 level.
The first: 3-4 step lora for simple motion.
The second: If the first level cannot handle the motion, then swap to 8 steps lora.
The last: no-lora at all if above cannot fix motion or quality problems

1

u/jmbbao 26d ago

The 5090 technique

1

u/[deleted] 26d ago

😭

1

u/Neocki 23d ago

Well, even on 5090 people want it faster

0

u/Automatic-Building84 25d ago

Just use peka h3 turbo with singularity v2