Image-Text-to-Video
MiniMax H3
Diffusers
Safetensors
GGUF
English
Chinese
hyperflow-h3
audio-video-generation
text-to-video
image-to-video
reference-to-video
few-step
int8
bf16
comfyui
stable-diffusion.cpp
unsloth
Instructions to use VideoRebirthAI/hyperflow-h3-flash with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Local Apps Settings
- Unsloth Desktop
Update model card, NOTICE, and Hub model code
Browse files
NOTICE
CHANGED
|
@@ -8,6 +8,8 @@ copy of the Agreement is included in this repository as LICENSE.
|
|
| 8 |
Modifications from MiniMax H3 (Section III.2):
|
| 9 |
- fl2va_int8_convrot/ and ref2va_int8_convrot/: The transformer weights are pruned, low-rank factored, and quantized to
|
| 10 |
rotated W8A8 INT8.
|
|
|
|
|
|
|
| 11 |
- fl2va_gguf/ and ref2va_gguf/: The compressed transformer weights are converted to the stable-diffusion.cpp tensor
|
| 12 |
layout and quantized to GGUF.
|
| 13 |
- fl2va_int8_convrot_comfyui/ and ref2va_int8_convrot_comfyui/: The INT8 convrot transformers are converted to the
|
|
|
|
| 8 |
Modifications from MiniMax H3 (Section III.2):
|
| 9 |
- fl2va_int8_convrot/ and ref2va_int8_convrot/: The transformer weights are pruned, low-rank factored, and quantized to
|
| 10 |
rotated W8A8 INT8.
|
| 11 |
+
- fl2va_bf16/ and ref2va_bf16/: The transformer weights are pruned and low-rank factored, and are stored in bfloat16
|
| 12 |
+
without quantization.
|
| 13 |
- fl2va_gguf/ and ref2va_gguf/: The compressed transformer weights are converted to the stable-diffusion.cpp tensor
|
| 14 |
layout and quantized to GGUF.
|
| 15 |
- fl2va_int8_convrot_comfyui/ and ref2va_int8_convrot_comfyui/: The INT8 convrot transformers are converted to the
|
README.md
CHANGED
|
@@ -18,6 +18,7 @@ tags:
|
|
| 18 |
- reference-to-video
|
| 19 |
- few-step
|
| 20 |
- int8
|
|
|
|
| 21 |
- gguf
|
| 22 |
- comfyui
|
| 23 |
- stable-diffusion.cpp
|
|
@@ -66,6 +67,8 @@ Each ComfyUI template also comes as `*_int8` with the INT8 safetensors.
|
|
| 66 |
| **System RAM** | **16 GB+** | **16 GB+** in ComfyUI. Python package: **~16 GiB** without offload; **≥ 69 GiB** (`fp8` text encoder) or **≥ 91 GiB** (`bf16`) with offload |
|
| 67 |
| **`ref2va` inputs** | Images | Images, videos, and audio |
|
| 68 |
|
|
|
|
|
|
|
| 69 |
---
|
| 70 |
|
| 71 |
## Repository Layout and Companion Files
|
|
@@ -77,6 +80,8 @@ fl2va_int8_convrot_comfyui/ minimax_h3_fl2va_hyperflow_flash_14b-int8_convrot
|
|
| 77 |
ref2va_int8_convrot_comfyui/ minimax_h3_ref2va_hyperflow_flash_14b-int8_convrot.safetensors (ComfyUI, 16.4 GB)
|
| 78 |
fl2va_gguf/ minimax_h3_fl2va_hyperflow_flash_14b-<QUANT>.gguf (6 quant levels)
|
| 79 |
ref2va_gguf/ minimax_h3_ref2va_hyperflow_flash_14b-<QUANT>.gguf (6 quant levels)
|
|
|
|
|
|
|
| 80 |
```
|
| 81 |
|
| 82 |
This repository stores only the compressed transformers (`transformer` for `fl2va`, `transformer_ref` for `ref2va`). Each runtime loads the shared text encoder, video VAE, audio VAE, tokenizer, and processor from their upstream repositories:
|
|
@@ -223,6 +228,35 @@ model.set_attention_backend("_flash_3_hub")
|
|
| 223 |
3. Start ComfyUI with `--enable-triton-backend`, or use a PyTorch built for CUDA 13.0 or newer; ComfyUI's PyTorch INT8 fallback is about 50% slower. See [timings](#comfyui-int8-benchmarks).
|
| 224 |
4. It runs on PCs with 16 GB of system RAM: measured with 12 GiB left to ComfyUI 0.44.0 on the RTX 5090 and 4090.
|
| 225 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 226 |
---
|
| 227 |
|
| 228 |
## Benchmarks and Memory
|
|
@@ -272,7 +306,7 @@ The table measures the `hyperflow-h3-flash` package. For real time on 4× B-seri
|
|
| 272 |
|
| 273 |
### Step Grids
|
| 274 |
|
| 275 |
-
Both partitions and
|
| 276 |
|
| 277 |
| Steps | Mode | Raw sigmas |
|
| 278 |
|---:|---|---|
|
|
@@ -307,7 +341,7 @@ Thanks to the MiniMax team for releasing [MiniMax-H3](https://huggingface.co/Min
|
|
| 307 |
|
| 308 |
## License
|
| 309 |
|
| 310 |
-
The transformer weights in this repository (
|
| 311 |
|
| 312 |
- **Territory:** Licensed worldwide **excluding the European Union, the United Kingdom, the Republic of Korea, and the United States of America**. Individuals and organizations in those jurisdictions must obtain MiniMax's prior authorization before downloading ([application form](https://platform.minimax.io/h3-license); [License Q&A](https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/main/docs/QA-about-License.md)).
|
| 313 |
- **Redistribution:** Include a copy of the Agreement and the [`NOTICE`](NOTICE) file, clearly mark modified files, and do not impose additional or different terms (Section III).
|
|
|
|
| 18 |
- reference-to-video
|
| 19 |
- few-step
|
| 20 |
- int8
|
| 21 |
+
- bf16
|
| 22 |
- gguf
|
| 23 |
- comfyui
|
| 24 |
- stable-diffusion.cpp
|
|
|
|
| 67 |
| **System RAM** | **16 GB+** | **16 GB+** in ComfyUI. Python package: **~16 GiB** without offload; **≥ 69 GiB** (`fp8` text encoder) or **≥ 91 GiB** (`bf16`) with offload |
|
| 68 |
| **`ref2va` inputs** | Images | Images, videos, and audio |
|
| 69 |
|
| 70 |
+
To re-quantize, start from the unquantized [BF16 weights](#bf16-unquantized-weights) (`fl2va_bf16/`, `ref2va_bf16/`). They are not a format for generation.
|
| 71 |
+
|
| 72 |
---
|
| 73 |
|
| 74 |
## Repository Layout and Companion Files
|
|
|
|
| 80 |
ref2va_int8_convrot_comfyui/ minimax_h3_ref2va_hyperflow_flash_14b-int8_convrot.safetensors (ComfyUI, 16.4 GB)
|
| 81 |
fl2va_gguf/ minimax_h3_fl2va_hyperflow_flash_14b-<QUANT>.gguf (6 quant levels)
|
| 82 |
ref2va_gguf/ minimax_h3_ref2va_hyperflow_flash_14b-<QUANT>.gguf (6 quant levels)
|
| 83 |
+
fl2va_bf16/ config.json, diffusion_pytorch_model-0000{1..6}-of-00006.safetensors (+ index), model code (unquantized, 27.4 GB)
|
| 84 |
+
ref2va_bf16/ config.json, diffusion_pytorch_model-0000{1..6}-of-00006.safetensors (+ index), model code (unquantized, 27.9 GB)
|
| 85 |
```
|
| 86 |
|
| 87 |
This repository stores only the compressed transformers (`transformer` for `fl2va`, `transformer_ref` for `ref2va`). Each runtime loads the shared text encoder, video VAE, audio VAE, tokenizer, and processor from their upstream repositories:
|
|
|
|
| 228 |
3. Start ComfyUI with `--enable-triton-backend`, or use a PyTorch built for CUDA 13.0 or newer; ComfyUI's PyTorch INT8 fallback is about 50% slower. See [timings](#comfyui-int8-benchmarks).
|
| 229 |
4. It runs on PCs with 16 GB of system RAM: measured with 12 GiB left to ComfyUI 0.44.0 on the RTX 5090 and 4090.
|
| 230 |
|
| 231 |
+
## BF16 (Unquantized) Weights
|
| 232 |
+
|
| 233 |
+
`fl2va_bf16/` (27.4 GB, serves `t2va` and `fl2va`) and `ref2va_bf16/` (27.9 GB) hold the transformers before INT8 quantization. Use them to re-quantize or to convert to other formats. For generation, use INT8 or GGUF: they are smaller, and all benchmarks in this card measure them.
|
| 234 |
+
|
| 235 |
+
- **Same model:** These are the pruned, low-rank factored, few-step transformers that `*_int8_convrot/` was quantized from. `config.json` differs from the INT8 one only by the absent `quantization` entry. Every tensor that the two folders share is byte-identical.
|
| 236 |
+
- **Quantized layers:** `quantization.linears` in `*_int8_convrot/config.json` names the 180 linear layers that our INT8 release quantizes. Here they are `<name>.weight`; in INT8 they are `<name>.qweight` + `<name>.wscale`. They do not overlap with the low-rank layers (`<name>.down.weight`, `<name>.up.weight`).
|
| 237 |
+
- **Precision:** All weights are `bfloat16`, except `time_embedder`, `endpoint_time_embedder`, `proj_in`, `audio_proj_in`, `proj_out`, and `audio_proj_out` (`float32`, 0.004B parameters). Keep these in `float32`.
|
| 238 |
+
- **Scope:** This is a weights release. The transformer has no single-time mode: every forward pass needs `endpoint_timestep` for the two-time `(t, r)` conditioning. The training code and the conversion scripts are not released.
|
| 239 |
+
- **Runtimes:** The `hyperflow-h3-flash` package and `AutoModel` load these folders with the same model code as INT8. The ComfyUI nodes read `.gguf` files and the single-file `*_comfyui/` safetensors, not these folders.
|
| 240 |
+
|
| 241 |
+
```bash
|
| 242 |
+
hyperflow-h3-flash --prompt "..." --subfolder fl2va_bf16 --offload model --output clip.mp4
|
| 243 |
+
hyperflow-h3-flash --prompt "<Picture 1> ..." --reference person.png --subfolder ref2va_bf16 --offload model --output clip.mp4
|
| 244 |
+
```
|
| 245 |
+
|
| 246 |
+
```python
|
| 247 |
+
import torch
|
| 248 |
+
from diffusers import AutoModel
|
| 249 |
+
from hyperflow_h3_flash import load_pipeline
|
| 250 |
+
|
| 251 |
+
pipe = load_pipeline("t2va", subfolder="fl2va_bf16", offload="model") # "ref2va": subfolder="ref2va_bf16"
|
| 252 |
+
|
| 253 |
+
model = AutoModel.from_pretrained( # the transformer alone, without the package
|
| 254 |
+
"VideoRebirthAI/hyperflow-h3-flash", subfolder="fl2va_bf16", trust_remote_code=True, torch_dtype=torch.bfloat16
|
| 255 |
+
)
|
| 256 |
+
```
|
| 257 |
+
|
| 258 |
+
- **Derived weights:** The [License](#license) terms on redistribution also apply to weights that you derive from these.
|
| 259 |
+
|
| 260 |
---
|
| 261 |
|
| 262 |
## Benchmarks and Memory
|
|
|
|
| 306 |
|
| 307 |
### Step Grids
|
| 308 |
|
| 309 |
+
Both partitions and all weight formats share three unshifted sigma grids (`video_shift = 12`, `audio_shift = 3`):
|
| 310 |
|
| 311 |
| Steps | Mode | Raw sigmas |
|
| 312 |
|---:|---|---|
|
|
|
|
| 341 |
|
| 342 |
## License
|
| 343 |
|
| 344 |
+
The transformer weights in this repository (INT8 convrot, GGUF, and BF16) are a Model Derivative of MiniMax-H3 and are distributed under the [MiniMax H3 Community License Agreement](LICENSE) with no additional terms. By downloading or using them, you accept that Agreement:
|
| 345 |
|
| 346 |
- **Territory:** Licensed worldwide **excluding the European Union, the United Kingdom, the Republic of Korea, and the United States of America**. Individuals and organizations in those jurisdictions must obtain MiniMax's prior authorization before downloading ([application form](https://platform.minimax.io/h3-license); [License Q&A](https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/main/docs/QA-about-License.md)).
|
| 347 |
- **Redistribution:** Include a copy of the Agreement and the [`NOTICE`](NOTICE) file, clearly mark modified files, and do not impose additional or different terms (Section III).
|