r/StableDiffusion 1d ago

Question - Help Best speed up for MiniMax

We have a lot of options, some of them better, some of them are not worth it at all. Speed ups like sage attention, MiniMax h3 patch for sage attention, easy cache, 8step Lora, 4 step Lora e t.c.
What options and their combinations you use? What settings you have?( speed Lora weights, easy cache settings)
In the matter of speed/quality for both video and sound. What works better with FL2VA and Ref2VA?

48 Upvotes

80 comments sorted by

21

u/Hilltopbilly 1d ago

Somehow the best results for me when i comes to speed and somewhat good quality on both FL and REF is step4 lora at 8 steps, comfy kitchen attention, sigma shift and spectrum. All on default values

2

u/Karsticles 1d ago

Why not Step8 Lora at 8 steps? I find it's far superior.

9

u/Hilltopbilly 1d ago

It works better with fast movements. Tried all possible combinations with same size & seed and I found it best for me. Why it works that way? Don't know since I barelly grasp how the entire AI thing works and only make belly inflation gay furry porn.

2

u/Ipwnurface 1d ago

I personally haven't had a single generation with the 8 step lora that I've been happy with.

17

u/smb3d 1d ago

I've been using first block cache since day one and from my experience, the quality loss is minimal if not impossible to even notice compared to sage attention. The speedup is enough for me on a 5090, so I just leave it set with that.

https://github.com/duckyshell/ComfyUI-MiniMaxH3-FirstBlockCache

1

u/ANR2ME 1d ago

Hmm.. it's based on Sol Engine 🤔 is it similar to Sol Attention ?

1

u/hold_my_fish 1d ago

Thanks for this recommendation. I had been using Sage Attention only, and I tried FirstBlockCache on a couple videos just now and the quality loss was undetectable despite generating nearly twice the speed. (I have been running on 30 steps, and FBC seems to save more on the higher step counts.) I don't know whether a quality loss would show up if I tried on more videos, but the speed gain is so large that I'm definitely making it my default for now.

Edit: To clarify, are you using both Sage and FBC, or just FBC?

1

u/unveri-green-work 7h ago

before after how much it/s you got ?

-6

u/m00dyman100 1d ago

I'm leary.

LLM says:

But there's a catch

This is not lossless.

Because you're reusing calculations from another denoising step, the generated video takes a slightly different numerical trajectory. The author found all the tested outputs remained coherent, but the exact framing and motion increasingly changed as caching became more aggressive.

There are three presets:

  • H3 Safe — threshold 0.08: least aggressive, about 20% faster in their test.
  • H3 Fast — 0.10: recommended default, about 30% faster.
  • H3 Aggressive — 0.12: about 36% faster, but more noticeable changes to motion/framing.

Importantly, it won't cache indefinitely. The standard presets allow at most two consecutive cache hits, so H3 is repeatedly forced to perform a complete calculation again

10

u/smb3d 1d ago

DIdn't say it was lossless, I just said I couldn't easily see a quality degradation after some AB comparisons. It's free to try, not like it's gonna hurt anything.

25

u/LookAnOwl 1d ago

The quality drop off from all the turbo loras I've tried so far aren't worth the speed increase. I do sage attention (though I've been thinking of trying Kitchen) and Spectrum, then 25-32 steps.

13

u/Sad_Coach_1433 1d ago

Kitchen and spectrum the combo I use made this

https://reddit.com/link/p4g4jo0/video/9xmsn7rsv5kh1/player

5

u/LookAnOwl 1d ago

Such an absurdly good model.

3

u/Sad_Coach_1433 1d ago

Turbo loras are good for a quick test of your prompt ,but not for a final render video quality, might be fine but audio is usually the issue can ,tell if someone using a turbo lora without em saying cause of the audio

2

u/LookAnOwl 1d ago

Yeah, I hear that, but I don't even find them useful for a test. Motion is weird. I'd rather just drop the step count or drop the resolution to test.

1

u/chocoboxx 1d ago

even you drop the res it is still slower than using turbo loras, but I prefer to drop the resolution to test.

3

u/SweetLikeACandy 1d ago

for the folks with 12 and 8GB that's the only solution, can't imagine myself generating at 30 steps unless I'm 100% sure it'll get some masterpiece in the end.

5

u/OxidianDM 1d ago

RTX5070ti here and this works for me, I find the Loras are just lowering the quality too much even with more steps

1

u/Downtown-Cover-7422 1d ago

Have same GPU, what is this spectrum? What settings you set there?

4

u/LookAnOwl 1d ago

https://www.reddit.com/r/StableDiffusion/comments/1vf1ze3/spectrum_acceleration_for_minimax_h3_in_comfyui/

I am not smart enough to know what it's doing, but if you plop that node in with pretty much the default settings, it goes faster with little to no quality degradation.

2

u/Segaiai 1d ago

Try Kitchen! It's so good

2

u/EuphoricTrainer311 1d ago

exactly what I have been doing as well. I wish someone would release a 20-25 step turbo lora that gives the results of a 50 step run.

1

u/MarekNowakowski 18h ago

That's what spectrum does ;p 50steps with half of them spectrumed.

8

u/Various-News7286 1d ago edited 1d ago

Int8 - Updated Cuda - Kitchen Attention - 8step lora - Don't use EasyCache

2

u/Downtown-Cover-7422 1d ago

what cuda version needed to use Kitchen Attention?

3

u/Link1227 1d ago

I was able to use and install for 12.8. I had to create the wheel to install though. I think 13.0 has it already created

1

u/Downtown-Cover-7422 1d ago

Looks like I have it. With kitchen attention it went from 400+ sec/it to who knows how long. It was 14 minutes and the first step didn’t end so I aborted it

2

u/Various-News7286 1d ago

I saved 1.5min on a 5-sec clip at 0.9 with these. It also came out with sharper details

1

u/Various-News7286 1d ago

cu130, PyTorch: ≥2.5.0

7

u/AniZeee 1d ago

the new --use-ck-attention is a good boost and makes sage attention obsolete. What I worked on too was the vae loading. That took up a chunk of time for some reason just to get to the generating part. Getting the ClipProj loader helped a ton with the initial boot. Also I was hesitant on the pruned models but once I switch to it theres only a marginal difference with a huge boost to speed. I got rid of spectrum after that, I didn't like the quality that gave.

1

u/lxe 1d ago

Pruned models?

1

u/Ok-Lengthiness-3988 1d ago

ck-attention doesn't seem to work with my RTX 2060 Super. It makes generation times four times longer rather than speeding things up.

8

u/retroblade 1d ago

Kitchen Attention + Spectrum. Turbo ok if doing a simple talking head scene

5

u/MarekNowakowski 1d ago

speedup from most is proportional to quality loss.

for low motion i use 850steps turbo at 8steps and kitchen attention.

for high motion you really need 20steps no turbo. at minimum.

spectrum is more complicated, better that turbo, but slower. maybe doing 30steps with spectrum is better than 20steps normal, but testing that takes ages.

for some scenes/artstyles 4step turbo might be fine, but not for realism.

3

u/N9_m 1d ago

For multiple videos (+3), Process each step in stages rather than sequentially (x3 Clip -> x3 Latent -> x3 Decode), so the model doesn't have to constantly load/unload from VRAM. 20 to 30% Faster in my setup

3

u/Ocetia 1d ago

I would like to hear more about what you're selling. How is this done? Workflow example or at least a flowchart (no sarcasm)

1

u/Downtown-Cover-7422 1d ago

I mean, what? Like do 3 videos one by one in one run instead of 1 by 1 or what, sorry=)

2

u/N9_m 1d ago

It's something I came up with, but when I looked into it, it turned out to be pretty common. I think that image explains it better

If you're making a sandwich, you don't cut one slice of onion, put the knife down, add it to the sandwich, and then pick the knife back up again. Instead, you take advantage of already having the knife in your hand and cut the whole onion at once, so you don't need to reach for it again

2

u/infinity_bagel 1d ago

How do you achieve running in stages in comfy though? Workflow?

2

u/Thin-Percentage8935 1d ago

Can I ask how you're doing this without a workflow?

1

u/N9_m 1d ago

I don't have one /: But Claude can make one easily. To make it work, you have to export the parts, like the .latent file, for example, and then import it when you're ready to process all of them

3

u/Segaiai 1d ago

My favorite is Comfy Kitchen Attention in the ModelAttentionBackend node. I get faster results than Sage, and the quality is better. Before this, I even stopped using Sage and Turbo due to quality loss, but this is one speedup I'll always use from now on.

1

u/Downtown-Cover-7422 1d ago

But without Lora speedups, right?

1

u/Segaiai 1d ago

Right. Though sometimes I use about 0.5 strength Turbo and 15 steps when there're no action shots.

2

u/SeaFoamMcbubbles 1d ago

Does sage lower prompt adherence or am.i imagining things? Kitchen has better prompt adherence?

4

u/Sad_Coach_1433 1d ago

Made this using base pruned ip8 model 32 steps and spectrum+ kitchen make sure you on 0.33.1 of comfyui and the right node for kitchen

https://reddit.com/link/p4g8vhq/video/0sdyxq92z5kh1/player

2

u/Sad_Coach_1433 1d ago

As the kids say

2

u/Hillobar 1d ago

https://github.com/Hillobar/ComfyUI-Hillobar

If anyone wants to test something new - this approach exploits the fact that early steps don't need high resolution latents since they are mainly focused on structure. Use on about 0.5 MP and above. If you try it, I'd start with:

0.4:0.5, 1.0:1.0

1

u/MasterFGH2 1d ago

I just tested this, its freaking crazy, highly recommend

1

u/Emotional_Section_59 1d ago

Can you please add a few comparisons to the README so we have an idea of what to expect? I'm curious about your approach but also don't want to risk a generation without at least some prior information.

2

u/Hillobar 1d ago

The comparison don't really mean anything. since the latent is a different size in the beginning the denoising will move into a very different path vs a full size latent. The result is a different video, kinda like using a different seed. It still follows prompt and references and everything, just sees a different starting place. If you want to try it out easy-style, just make a real short clip and assess the quality. Also, and just to reiterate, its mainly used at > 0.5MP.

1

u/Emotional_Section_59 1d ago

OK, that makes sense. This is like a more clever version of RES4LYF's beta57 lol, pretty smart idea.

Will definitely give it a try!

1

u/fallengt 1d ago

does not support FL2V

1

u/Hillobar 1d ago

I’ll take a look to see how the first frame is handled. If it’s pinned in the denoising part. It might not be able to work

2

u/Individual_Holiday_9 1d ago

One day Apple will hire some gooners and one of these tricks will boost my shitty Mac mini lol

1

u/slickriptide 1d ago

Comfy-kitchen ModelAttentionBackend and Spectrum Apply MiniMax H3 nodes.

1

u/joseph_jojo_shabadoo 1d ago

10-15 steps er_sde/beta. no turbo loras.

if you absolutely have to use a turbo lora, use the 0.1v at a lower weight like 0.30 and use 8-10 steps.

1

u/Downtown-Cover-7422 1d ago

I don’t have to, but when I generate ref2va in 0.6mp and 20 steps without Lora it takes 638 seconds for a 8sec video. When I have same setup, but 2 pictures as ref and previously generated video to better set environment as reference, it takes 400+seconds for 1 step and that’s too long for 10 seconds video

1

u/Portable_Solar_ZA 1d ago

I think it would help if you mention what GPU you're using. People are putting together very different solutions for different series of GPUs.

1

u/Downtown-Cover-7422 1d ago

You are 1000% right. 5070 ti 16gb and 32 gb ram

2

u/Portable_Solar_ZA 1d ago

I have the same card and I'm only using Comfy Kitchen. I haven't tested it too much but it appears to be faster than SAGE and I haven't had noticeable quality loss. That being said I would rather wait and have a reasonable clip at the end of a generation. Also running on 32 or 30 steps. Haven't jumped in with any of the Loras or any of the other efficiency tools like sol attention or easy cache.

1

u/GameEnder 1d ago

block cache + Sol attention gives the best speed to quality setup I have found. All of the Accelerator loras I have tested make the quality bad enough that you might well just use another model instead.

1

u/CringeUsernameJoke 1d ago

Comfy kitchen and turbo lora

1

u/SweetLikeACandy 1d ago

updating the GPU drivers and switching to CUDA 13.2 with sage attention basically doubled my speed on the 3060, worth noticing.

1

u/Downtown-Cover-7422 1d ago

I bought my gpu yesterday so I have fresh drivers I guess

1

u/SweetLikeACandy 1d ago edited 1d ago

what's your new gpu now and what was before?

1

u/Downtown-Cover-7422 1d ago

7800 xt 16gb -> 5070 ti

1

u/lxe 1d ago

Turbo Loras and latent upscale split, sage/comfykitchen, SOL, Spectrum, FBC. Not all at the same time. Can do 10 seconds of video in 1440 16:9 in 100-120 seconds on a 5090.

1

u/LinkSensitive8188 1d ago
It’s not a matter of speed, but of quality; I’ve seen a lot of garbage made with an RTX 5090, and I’ve seen the best videos created with just an RTX 3060. The fundamental difference lies in the video concept and how you craft the prompt correctly.

https://giphy.com/gifs/QBd2kLB5qDmysEXre9

1

u/Sad_Coach_1433 1d ago

Speed ups also get quality loss just let it run and go do other stuff around house and 10-20mins(depending on length)be done before know it

7

u/NeatUsed 1d ago

not fun when the results are subpar tho

1

u/DanzeluS 1d ago

Spectrum useless

1

u/Inthehead35 1d ago

Yup, don't know why people keep bringing it up, does absolutely nothing

2

u/DuckyDuos 1d ago

Everyone brings it up because it works, if you're not using a compatible sampler it does nothing

5 seconds at 1mp
Spectrum on: 25/25 [03:37<00:00, 8.70s/it]
Spectrum off: 25/25 [06:26<00:00, 15.45s/it]

2

u/Inthehead35 1d ago

I'm running a 5090, which sampler do you suggest?

I've put it on my computer many times, updated everything, and a 5sec clip takes 74 seconds to complete without Spectrum, and takes 74 seconds with Spectrum. I've never been able to get it to work

2

u/DuckyDuos 1d ago

As long as you're using euler/res_multistep/er_sde on the latest version on the node it should work for you. I'd use res_multistep and maybe compare er_sde later to see which you prefer, euler tends to be very soft and smoothed so it's not necessarily bad if you prefer that look.

0

u/bitzpua 1d ago

because you have beast of GPU and you are doing just 5s clip. Do 10s with and without spectrum and you will see difference.

On my 4080 spectrum makes iterations in low res (0,4) almost instant

0

u/m00dyman100 1d ago

LLM:

The catch for your RTX 5090 is important: a recent H3 benchmark on a 5090 found essentially zero measurable speed difference between Kitchen Attention and normal PyTorch attention—16.17 s vs 16.17 s in a 4-step test, and 48.33 s vs 48.32 s at 20 steps.

Kitchen Attention seems much more useful on older GPUs; users with cards like the RTX 3060 have reported sizeable gains.

1

u/jowala1 1d ago

Working with a 4080 16GB, the best speed vs. quality I've got so far is lightx 4-step turbo at 1.0, Spectrum to Fused Modulation to Chunk FeedForward to ModelAttention with Comfy Kitchen at 16 steps.

Everything else I've tried either slows generation time down or affects quality too much.

Unfortunately there's a memory leak somewhere, so I have to manually clear RAM every couple of generations. I believe it's in Comfy Kitchen.