Instructions to use QuantFunc/Minimax-H3-Quantfunc-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use QuantFunc/Minimax-H3-Quantfunc-4bit with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("QuantFunc/Minimax-H3-Quantfunc-4bit", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
๐ Website | ๐ ComfyUI-QuantFunc | ๐ Python SDK | ๐ค Hugging Face | ๐ค ModelScope | ๐จ Civitai | ๐ฎ Discord
MiniMax-H3-QuantFunc-4bit
4x compression, quality held.
QuantFunc INT4 cuts MiniMax H3's core weight precision from 16-bit to 4-bit. Character detail, style fidelity and fast motion stay clear and coherent, while H3's native video+audio generation is fully preserved.
In our internal FL2VA evaluation, QuantFunc INT4 vs the BF16 baseline (same prompt, same seed) measures ~23.7 dB PSNR.
Showcase
All clips below were generated by MiniMax-H3-QuantFunc-4bit โ click a player to watch.
| Live-action performance | Animated chase |
|---|---|
| High-speed car chase | Stylized character |
Poster frames are the first frame of each clip. Showcase spec: 896 ร 1184, 124 frames, 24 FPS, ~5s.
Same 124 frames, up to 3.19x FP8's per-step speed
On an RTX 4090, 768 ร 768, 5s, 124 frames:
| Backend | Per-step time | Relative speed |
|---|---|---|
| QuantFunc INT4 | 3.2s | โ |
| INT8 ConvRot | 8.5s | 2.66x faster |
| FP8 | 10.2s | 3.19x faster |
Per-step core-model inference time only โ excludes text encoder, VAE, audio processing and video saving. Actual speed varies with resolution, frame count, driver and software version.
Swap one loader, keep the rest of your workflow
- Install or update ComfyUI-QuantFunc (or Quantfunc-Python-SDK for Python integration).
- Download the distilled (
r128, LoRA-baked) or base (r64, unbaked) FL2VA / Ref2VA weights from the table below. - Swap your model loader for the QuantFunc loader and pick the matching weight file.
Prompts, reference images/videos, audio assets and the rest of your workflow nodes stay unchanged.
All checkpoints include the INT4 Token Refiner, INT4 Refiner, and INT8 Conv Sidecar built in โ no extra quantized sub-components to attach.
RTX 20-series through RTX 50-series, one engine covers it all
Supports NVIDIA SM75 / SM86 / SM89 / SM120 GPUs: RTX 20/30/40/50-series, T4, A10/A40, L4/L40, and RTX 6000 Ada / PRO 6000 Blackwell.
4-bit weights significantly cut the weight-bandwidth cost of loading and inference, making MiniMax H3 much easier to run on consumer GPUs. Actual VRAM needs depend on resolution, frame count, reference-asset count and the rest of your workflow.
Choose a model
| Variant | File | Size | SVDQuant Rank | Acceleration LoRA | Recommended use |
|---|---|---|---|---|---|
| FL2VA (4-step) | minimax_h3_fl2va_4step_quantfunc_int4_r128.safetensors |
12.37 GB | r128 | Baked in (4 steps) | Fastest out-of-the-box text-to-A/V, first/last-frame control โ no extra LoRA needed |
| Ref2VA (8-step) | minimax_h3_ref2va_8steps_quantfunc_int4_r128.safetensors |
12.37 GB | r128 | Baked in (8 steps) | Fastest out-of-the-box multimodal image/video/audio reference โ no extra LoRA needed |
| FL2VA Base | minimax_h3_fl2va_quantfunc_int4_r64_base.safetensors |
11.95 GB | r64 | Unbaked (base) | Native multi-step sampling, or dynamically attaching custom / Flex 6-step LoRAs without double-LoRA conflicts |
| Ref2VA Base | minimax_h3_ref2va_quantfunc_int4_r64_base.safetensors |
11.95 GB | r64 | Unbaked (base) | Native multi-step multimodal reference sampling, or dynamically attaching custom / Flex 6-step LoRAs |
Companion Flex 6-Step Acceleration LoRAs (QuantFunc BF16)
These two Flex acceleration LoRAs are pre-converted to QuantFunc's native slot layout (BF16). Place them in ComfyUI/models/loras/ and attach via QuantFuncNativeLoRA (strength = 1.0) on top of the matching r64 Base checkpoint (do not stack onto the r128 distilled checkpoints):
| LoRA File | Size | Matching Base Model | Example Workflows (ComfyUI-QuantFunc) |
|---|---|---|---|
flex_fl2av_adapter-qf-bf16.safetensors |
1.96 GB | minimax_h3_fl2va_quantfunc_int4_r64_base.safetensors |
Single-stage 6 steps (sol_enabled=False): QuantFunc-MiniMaxH3-fl2va-flex-6step.jsonTwo-stage 2+4 ( sol_enabled=True): QuantFunc-MiniMaxH3-fl2va-flex-6step-double-sampling.json |
flex_ref2av_adapter-qf-bf16.safetensors |
1.96 GB | minimax_h3_ref2va_quantfunc_int4_r64_base.safetensors |
Single-stage 6 steps (sol_enabled=False): QuantFunc-MiniMaxH3-ref2va-flex-6step.jsonTwo-stage 2+4 ( sol_enabled=True): QuantFunc-MiniMaxH3-ref2va-flex-6step-double-sampling.json |
- Distilled (
r128) vs Base (r64):- Pick
r128(4step/8steps) if you want the fastest out-of-the-box generation โ the official acceleration LoRA is already fused into the weights, so do not stack the acceleration LoRA again. - Pick
r64(base) if you want the unbaked base checkpoint (smaller 11.95 GB footprint) for standard multi-step sampling or hot-swapping your own LoRAs via ComfyUI-QuantFunc / Quantfunc-Python-SDK.
- Pick
- FL2VA vs Ref2VA: FL2VA supports zero, one or two input images; Ref2VA targets more complex multimodal reference scenarios (images, video, and audio). See the official MiniMax H3 repo for details on both modes.
Use the matching scheduler for your chosen variant.
Loading
Weights use QuantFunc's own sealed safetensors format (quantization parameters and metadata are sealed).
Load with ComfyUI-QuantFunc or Quantfunc-Python-SDK (QuantFunc PC Engine >= 0.0.18) โ this is not a drop-in Diffusers checkpoint. (This repo declares library_name: diffusers purely so Hugging Face counts real downloads of the flat .safetensors files above โ see HF's download-stats docs โ not because the files load via the diffusers package.)
If the model isn't recognized or fails to load, update ComfyUI-QuantFunc to the latest version and restart ComfyUI.
Technical details
- INT4 weights ร INT4 activations (W4A4)
- SVDQuant rank 128 (
4step/8stepsdistilled) or rank 64 (baseunbaked), group size 64 - INT4 Token Refiner + INT4 Refiner
- INT8 Conv Sidecar
- Measured max relative output error from fp16 adaLN folding: FL2VA ~7.58e-4, Ref2VA ~9.22e-4
- Supported GPU architectures: NVIDIA SM75 / SM86 / SM89 / SM120
Source & license
This repository distributes derived quantized weights produced from MiniMax H3.
MiniMax H3 and its derivative weights follow the MiniMax H3 Community License Agreement. QuantFunc's quantization tooling and implementation follow their own respective licenses. Please read and comply with the original model's license terms before use.
Community
- ๐ QuantFunc website
- ๐ ComfyUI-QuantFunc on GitHub
- ๐ Quantfunc-Python-SDK on GitHub
- ๐ฎ Discord
- Downloads last month
- 7,605
Model tree for QuantFunc/Minimax-H3-Quantfunc-4bit
Base model
MiniMaxAI/MiniMax-H3