xmarre/MiniMax-H3-Pruned-Ref-Delta-Fused-r1024-ComfyUI
MiniMax-H3 Pruned Ref-Delta Fused r1024 — ComfyUI Single File
Native ComfyUI-format single-file conversion of `diffusers-modular/MiniMax-H3-Pruned-Ref-Delta-Fused-r1024`.
This repository contains the MiniMax-H3 diffusion transformer only. It does not include the text encoder, tokenizer, VAE, or the rest of the MiniMax-H3 pipeline.
The BF16 checkpoint is a state-dict/layout conversion of the immediate source checkpoint. Four native-ComfyUI INT8 derivatives are provided: full core-Linear INT8 and INT8 ConvRot variants, plus fc2-BF16 compatibility variants retained for older/problematic ComfyUI execution paths. No training, fine-tuning, additional pruning, or learned-weight adaptation was performed.
Available checkpoints
The ~21.0 GB sizes above are the rounded sizes reported by hf/Xet during upload.
SHA-256 checksums
BF16 full-file SHA-256:
78b88298e241231b3bd95d752abde711efc9dd6517669a8a934faeb70baf6a98BF16 tensor-data-region SHA-256:
d5593b33e9920d038241697e871955e6ad118dce08ff49b6bccddfb85e9c06a0Full INT8 full-file SHA-256 values:
MiniMax-H3-Pruned-Ref-Delta-Fused-r1024-comfy-int8.safetensors
b1aa96041103165fe18fffa4c6e6f9d6a23a090527762cbf6e9f607caac54321
MiniMax-H3-Pruned-Ref-Delta-Fused-r1024-comfy-int8-convrot.safetensors
00be5b0f995cc5a628921790f69cb22e138776c1e12235e3eab521941bb4b8c2Compatibility-variant full-file SHA-256 values:
MiniMax-H3-Pruned-Ref-Delta-Fused-r1024-comfy-int8-fc2bf16.safetensors
5e9bb588f8b025414121b3036b0ea39b0e88483bd90c5de645ff87449cb5fcee
MiniMax-H3-Pruned-Ref-Delta-Fused-r1024-comfy-int8-convrot-fc2bf16.safetensors
304e808416e714a91c348b7ba70ad5098d8b294783596d304c9eec602f1f609cINT8 quantization policy
All four quantized checkpoints use ComfyUI's native per-layer .comfy_quant format and TensorWiseINT8Layout. No custom quantized-model loader is required.
The following weights are quantized in every one of the 50 main transformer blocks in all INT8 variants:
blocks.N.attn.qkv_proj.weight
blocks.N.attn.out_proj.weight
blocks.N.mlp.fc1.weightThat accounts for 150 quantized core Linear layers.
The full INT8 variants additionally quantize:
blocks.N.mlp.fc2.weightThat adds another 50 layers for 200 quantized core Linear layers total.
The *-fc2bf16.safetensors compatibility variants keep those 50 fc2 weights in BF16 and therefore retain the original 150-layer INT8 policy.
All smaller/sensitive tensors remain in their source precision, including the pruned AdaLN table and projections, final-layer projections, norms, patch/text projections, and token refiner.
Regular INT8 uses tensor-wise scaling:
format: int8_tensorwise
per_channel: false
convrot: falseINT8 ConvRot uses:
format: int8_tensorwise
per_channel: true
convrot: true
convrot_groupsize: 256The two Diffusers-only auxiliaries adaln_basis and adaln_mean, which are retained in the repaired BF16 artifact but unused by native ComfyUI inference, are omitted from all quantized derivatives.
fc2 compatibility history
The first full 200-layer INT8 test also quantized blocks.N.mlp.fc2.weight.
In the ComfyUI environment used for the initial conversion work, large MiniMax-H3 sequences could fail when the fused linear_input_act(..., "swiglu") path sent quantized fc2 through comfy_kitchen.int8_linear. The observed failure involved a very large contiguous INT8 scratch allocation during dynamic activation quantization and could result in OOM or a hard WSL failure.
The fc2-BF16 variants were created to avoid that path while retaining INT8 for the other three heavy Linear weights in every transformer block.
After later ComfyUI core updates, the full INT8 ConvRot checkpoint has been running successfully in the author's current environment, including the same type of large MiniMax-H3 workloads that previously exposed the failure. The exact upstream change responsible has not been isolated here, so the fc2-BF16 files remain published as compatibility fallbacks for older or otherwise affected ComfyUI installations.
Which INT8 file should I use?
For an up-to-date ComfyUI installation, start with:
MiniMax-H3-Pruned-Ref-Delta-Fused-r1024-comfy-int8-convrot.safetensorsUse the regular full-INT8 counterpart if ConvRot is not desired:
MiniMax-H3-Pruned-Ref-Delta-Fused-r1024-comfy-int8.safetensorsIf full INT8 produces an OOM, hard process failure, or another failure specifically around quantized fc2 execution, use the corresponding fc2bf16 compatibility variant:
MiniMax-H3-Pruned-Ref-Delta-Fused-r1024-comfy-int8-fc2bf16.safetensors
MiniMax-H3-Pruned-Ref-Delta-Fused-r1024-comfy-int8-convrot-fc2bf16.safetensorsThe full INT8 ConvRot file is the variant with confirmed current-runtime use by the author. The regular full-INT8 file uses the same 200-layer quantization policy without ConvRot; it has not received the same current end-to-end runtime coverage described below.
Provenance
See `PROVENANCE.md` for the BF16 conversion record.
Pruned MiniMax-H3 timestep conditioning
This checkpoint uses MiniMax-H3's pruned AdaLN-curve representation.
The native model contains:
adaln_t_table [1025, 8] F32and intentionally does not contain the full-model timestep MLP:
time_embedder.proj_in.*
time_embedder.proj_out.*The Diffusers source stores the precomputed curve table as time_embedder.table; the native conversion restores it as adaln_t_table.
All 50 transformer-block AdaLN projections and the final-layer AdaLN projection consume the 8-wide curve basis.
Critical folded-bias conversion
The pruned Diffusers checkpoint stores required constant AdaLN modulation terms as separate folded_bias tensors. They are converted to the native ComfyUI bias parameters:
transformer_blocks.N.adaln_proj.folded_bias
-> blocks.N.adaln_proj.linear.bias N = 0..49
norm_out.folded_bias
-> final_layer.adaln_proj.linear.biasAll 51 native constant biases are F32. The learned AdaLN weights preserve their source dtype, BF16 in this checkpoint.
Other structural conversion steps
The BF16 conversion also:
- removes stale Diffusers
configsafetensors metadata; - recombines 52 Diffusers Q/K/V groups into native
qkv_projtensors; - restores the native SwiGLU half ordering for 52 feed-forward tensors;
- reconstructs the non-learned
rope.inv_freqbuffer; - preserves learned-weight dtypes.
The repaired BF16 artifact retains adaln_basis and adaln_mean; native ComfyUI does not consume them. A clean fresh conversion, and all quantized derivatives, omit those auxiliaries.
Validation
The BF16 conversion passed structural validation for the pruned H3 architecture, including:
adaln_t_table [1025, 8] F32: OK
full timestep MLP tensors: absent
all 50 block AdaLN input widths = 8: OK
final-layer AdaLN input width = 8: OK
all 51 native AdaLN biases: present / F32
Diffusers folded_bias keys: absent
stale config metadata: absent
required native MiniMax-H3 keys: present
rope.inv_freq [16] F32: OK
safetensors.safe_open: OKThe two fc2-BF16 compatibility variants were validated through full native ComfyUI execution. The tested workflow exercised:
model_type FLOW_AV detection
H3 Continuum main sampling pass 1
H3 Continuum continuation sampling pass 2
Spectrum H3 actual/forecast execution
large 3D latent refine pass
video VAE decode
audio VAE decode
final Continuum assembly
video combineBoth fc2-BF16 variants completed that tested end-to-end workflow without the failures seen in the earlier full-INT8 execution path.
Following later ComfyUI core updates, the full INT8 ConvRot variant has also been running successfully in the author's current environment. This confirms practical compatibility for the current tested setup and removes the original reason to withhold the 200-layer ConvRot file from release.
The regular full-INT8 file is published as the non-ConvRot equivalent of the same 200-layer quantization policy. The current validation statement above specifically covers the full INT8 ConvRot variant; it should not be read as a separate quantitative quality or stability benchmark for every file on every ComfyUI revision.
This is functional compatibility validation for the tested ComfyUI paths, not a quantitative image/video quality benchmark.
ComfyUI usage
Place the selected checkpoint in:
ComfyUI/models/diffusion_models/Then select that exact file in a diffusion-model loader that delegates to ComfyUI's native diffusion-model loading path. The conversion was tested around DiffusionModelLoaderKJ from `xmarre/ComfyUI-KJNodes`.
For the INT8 files:
weight_dtype: default
compute_dtype: default or bf16Do not force an additional FP8 weight cast on top of the native INT8 checkpoint.
Use the appropriate MiniMax-H3 text encoder and VAE separately.
Included conversion / repair tools
- `tools/convert_h3_diffusers_to_comfy_v3.py` — corrected Diffusers -> native ComfyUI converter.
- `tools/repair_h3_pruned_comfy_header.py` — repairs the pruned timestep-table mapping and removes stale Diffusers
configmetadata from an earlier conversion. - `tools/repair_h3_pruned_folded_biases.py` — repairs the 51 pruned AdaLN folded-bias names in an earlier converted artifact without rewriting the tensor payload.
Scope
The BF16 file is a native ComfyUI state-dict conversion and packaging of the immediate source checkpoint.
The four INT8 files are post-conversion native-ComfyUI quantized derivatives of that BF16 checkpoint. The two full variants quantize all four heavy core Linear weights per main transformer block; the two fc2-BF16 variants retain fc2 in BF16 as a compatibility fallback. They do not add trained capabilities and are not fine-tunes or additional pruning passes.
License and use restrictions
MiniMax-H3 and derivatives are governed by the MiniMax H3 Community License Agreement. A copy is provided in `LICENSE`, with the distribution notice in `NOTICE`.
The upstream license contains territorial, use, distribution, commercial, and acceptable-use restrictions. Review the complete license before using or distributing these weights. This repository does not grant rights beyond the upstream license.
Attribution
- Original MiniMax-H3: MiniMax / Nanonoble Pte. Ltd.
- ComfyUI pruned-model lineage: Comfy-Org
- Immediate Diffusers source: diffusers-modular
- Native ComfyUI conversion and quantized packaging: xmarre, 2026
Related repositories
- https://huggingface.co/MiniMaxAI/MiniMax-H3
- https://huggingface.co/Comfy-Org/MiniMax-H3
- https://huggingface.co/diffusers-modular/MiniMax-H3-Pruned-Ref-Delta-Fused-r1024
- https://github.com/xmarre/ComfyUI-KJNodes
