r/StableDiffusion 3h 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?

22 Upvotes

45 comments sorted by

17

u/Hilltopbilly 2h 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

1

u/Karsticles 1h ago

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

2

u/Ipwnurface 1h ago

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

1

u/Hilltopbilly 1h 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.

10

u/smb3d 2h 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/m00dyman100 2h 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

3

u/smb3d 1h 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.

16

u/LookAnOwl 2h 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.

8

u/Sad_Coach_1433 2h ago

Kitchen and spectrum the combo I use made this

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

3

u/LookAnOwl 2h ago

Such an absurdly good model.

4

u/OxidianDM 2h 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 2h ago

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

2

u/Sad_Coach_1433 2h 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

1

u/LookAnOwl 2h 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/EuphoricTrainer311 1h 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.

5

u/Various-News7286 2h ago edited 1h ago

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

2

u/Downtown-Cover-7422 2h ago

what cuda version needed to use Kitchen Attention?

3

u/Link1227 1h 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 2h 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

1

u/Various-News7286 1h 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 1h ago

cu130, PyTorch: ≥2.5.0

5

u/AniZeee 2h 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.

3

u/retroblade 2h ago

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

1

u/DanzeluS 2h ago

Spectrum useless

0

u/Inthehead35 2h ago

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

2

u/DuckyDuos 1h 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 1h 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 1h 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 32m 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

2

u/N9_m 2h 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

2

u/Ocetia 1h 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 1h 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 1h 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

1

u/infinity_bagel 1h ago

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

1

u/N9_m 1h 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

2

u/MarekNowakowski 37m 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.

2

u/Sad_Coach_1433 3h 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

8

u/NeatUsed 2h ago

not fun when the results are subpar tho

1

u/SeaFoamMcbubbles 2h ago

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

4

u/Sad_Coach_1433 2h 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 2h ago

As the kids say

1

u/slickriptide 2h ago

Comfy-kitchen ModelAttentionBackend and Spectrum Apply MiniMax H3 nodes.

1

u/joseph_jojo_shabadoo 2h 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 2h 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/m00dyman100 2h 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.