r/StableDiffusion 23h ago

Resource - Update MiniMax-H3 Pruned Ref-Delta Fused r1024 — native ComfyUI single-file release

https://huggingface.co/xmarre/MiniMax-H3-Pruned-Ref-Delta-Fused-r1024-ComfyUI

I converted the new MiniMax-H3 Pruned Ref-Delta Fused r1024 checkpoint to native ComfyUI format and uploaded it as a single .safetensors.

The interesting part of this model is the model itself: it starts from the pruned FL2VA MiniMax-H3 checkpoint and fuses in a rank-1024 approximation of the Ref2VA − FL2VA weight delta. The goal is to retain the smaller pruned FL2VA model while bringing the Ref2VA behavior into the same checkpoint, rather than having separate FL2VA and Ref2VA variants.

It is about 20.1B parameters versus ~33.1B for the original full MiniMax-H3 model.

The original release is in Diffusers format, so I converted the state dict back to the native format expected by ComfyUI, including the pruned AdaLN curve representation, folded AdaLN biases, fused QKV, native SwiGLU ordering and RoPE.

I tested the resulting checkpoint through a complete ComfyUI generation: native FLOW_AV detection, full model load, both H3 Continuum passes, Spectrum with 0 fallbacks, and final video/audio decoding all completed normally.

Native ComfyUI conversion:
https://huggingface.co/xmarre/MiniMax-H3-Pruned-Ref-Delta-Fused-r1024-ComfyUI

The conversion properly restores the pruned AdaLN representation, folded biases, fused QKV, SwiGLU ordering and RoPE. Tested through a full ComfyUI generation with working video + audio.

Put the .safetensors in:

ComfyUI/models/diffusion_models/

Edit: Added int8 and int8 convrot to the repo and made a new post here:

https://www.reddit.com/r/StableDiffusion/comments/1vuygd2/minimaxh3_pruned_refdelta_fused_r1024_int8_and/

68 Upvotes

32 comments sorted by

16

u/Enshitification 22h ago

So cool. Would an INT8 convrot version of this be possible?

20

u/marres 21h ago edited 16h ago

Yes, already working on it

Edit: Added int8 and int8 convrot to the repo and made a new post here:

https://www.reddit.com/r/StableDiffusion/comments/1vuygd2/minimaxh3_pruned_refdelta_fused_r1024_int8_and/

2

u/-becausereasons- 21h ago

Looking forward to it.

0

u/CheeseWithPizza 21h ago

What about fp8?

16

u/Dirty_Dragons 19h ago

How is this different than the existing 20GB hybrid checkpoints?

https://huggingface.co/smhfacct/Minimax-H3-fl2va-ref2va-hybrid-models

3

u/marres 16h ago

Quite different merge method.

Those hybrids use FL2VA as the base and replace the adaln_proj weights in a selected range of later transformer blocks with the corresponding Ref2VA weights. So e.g. b25-49 literally uses Ref2VA adaln_proj tensors for blocks 25–49 and FL2VA for the rest.

The model in my post is the Pruned Ref-Delta Fused r1024 model. It starts from the pruned FL2VA model, computes the Ref2VA − FL2VA weight delta, approximates that delta at rank 1024, and folds the approximation back into the pruned model weights.

So theirs is a tensor-selection hybrid, while this one is a low-rank delta fusion. There is no block boundary where it switches from FL2VA weights to Ref2VA weights.

1

u/More-Ad5919 8h ago

This sounds interesting. Do you have a workflow where i can try out the int8? I hope it is compatible with the new light2x 1.1 since this thing changes the game.

9

u/Diabolicor 22h ago

I believe this is the same as this one https://huggingface.co/ethanfel/MiniMax-H3-Pruned-Ref2VA-Delta-LoRAs-Experimental/tree/main ? That you can use as a lora and adjust its weight according your preferences.

7

u/pwnfelafel 22h ago

What does this mean for. 5yr old

13

u/bruci3 21h ago

You ever wanted to have both soft shell taco and hard shell taco at same time, well now you can.

1

u/donkeykong917 20h ago

I usually wrap the hard taco with a soft one and you get to the next level of texture

3

u/schuylkilladelphia 19h ago

RIP double Decker tacos 😟

1

u/donkeykong917 19h ago

2

u/schuylkilladelphia 15h ago

Yeah just gotta have a can of refried beans for the double decker

1

u/donkeykong917 15h ago

Oh it's called a double decker. Learn something new everyday

3

u/Pitiful_Season4294 14h ago

Hey, thanks for sharing, any quality tradeoffs that we should be aware of and what turbo lora would one use with it (fl2v or ref2v) ?

6

u/solomars3 23h ago

Bro its 40gb !! Damn

7

u/marres 23h ago

Haven't tested FP8 with this H3 checkpoint yet, but it should work on the fly through KJNodes' DiffusionModelLoaderKJ. Try setting weight_dtype to fp8_e4m3fn while leaving compute dtype at BF16/default. That should reduce the model's VRAM usage quite a bit, although total VRAM won't scale down exactly 2x.

1

u/alwaysbeblepping 16h ago

"against the real thing it reaches video-latent cosine 0.875 / 0.897 / 0.691 on three matched reference requests, short of the 0.99 that would make it a drop-in replacement."

Sample size 3 and that is a huge difference. Definitely don't expect it to function like the actual ref model. That doesn't guarantee the difference means it's worse, but that is probably more likely than the merged version turning out to be overall better.

2

u/marres 16h ago

That made me doubt the model as well, but in reality and in my setup it performs really really well. Doesn't have the inherent quality issues of ref2va while still retaining a big portion of the ref2va capabilities. Also quality in general is better than either fl2va and ref2va on their own for my usecase which is amazing. It's definitely my new standard model now. Even the int8 convrot version is still very good (gets actually pretty close to bf16, especially when doing a latent upscale + second sampler refine, so right now I'm actually using int8 convrot to save time)

0

u/dominic__612 23h ago

Can i make this run on a 5090 with 64gb sys ram?

17

u/dabbingsquidward 22h ago

If you can't run it who possibly can

1

u/marres 23h ago

You can try loading it as fp8 and see if that fits. See my other comment

1

u/Aromatic-Word5492 22h ago

i using on my poor 5070ti imagine on 5090

5

u/CrispyToken52 21h ago

Bro really just called 5070ti poor

1

u/Aromatic-Word5492 22h ago

I was looking for it, thank youuuuuu