# HyperFlow H3 Flash [![Hacker News](assets/hacker-news-badge.svg)](https://news.ycombinator.com/item?id=50405263) HyperFlow H3 Flash is [Video Rebirth](https://www.videorebirth.com/)'s compressed, few-step version of [MiniMax-H3](https://huggingface.co/MiniMaxAI/MiniMax-H3). It generates video and synchronized stereo audio together. **[Showcase](https://www.videorebirth.com/lp/hyperflow-flash)** · **[Weights (Hugging Face)](https://huggingface.co/VideoRebirthAI/hyperflow-h3-flash)** · **[ComfyUI nodes](https://github.com/Video-Rebirth/ComfyUI-HyperFlow-Flash)** · **[GGUF setup guide](integrations/README.md)** · **[8-step LoRA for full-size MiniMax-H3](https://github.com/Video-Rebirth/hyperflow)** - **Output:** 5.2–15 s of video at 24 fps (1344×768 by default) with a 32 kHz stereo soundtrack. - **Sampling:** 4, 6 (default), or 8 steps, without classifier-free guidance (CFG). - **Speed (5.2 s clip, 6 steps):** 8.7 s on 4× B200, 36 s on 1× H200, 92 s on 1× RTX 5090. - **Real time on 4× Blackwell GPUs:** [NVIDIA SOL-H3](https://github.com/NVlabs/Sana/tree/sol-engine/models/minimax_h3/HyperFlow-Flash) runs HyperFlow H3 Flash in real time on 4× B-series GPUs. SOL-H3 is our inference-acceleration partner and supports this model from day 0. - **Model size:** 13.7B (`fl2va`) or 13.9B (`ref2va`) parameters, less than half of the ~31B MiniMax-H3 transformer. - **Minimum footprint:** `Q4_K_M` is **9.1 GB** (`Q8_0` is 14.9 GB). It runs on 24 GB and 32 GB GPUs in PCs with **16 GB of system RAM**. 16 GB GPUs are not measured yet. ## Supported Tasks | Task | Input | ComfyUI template | GGUF | Python INT8 | |---|---|---|---|---| | `t2va` | Text prompt | `hyperflow_t2v` | Yes | Yes | | `fl2va` | Prompt + first keyframe, or first and last keyframes | `hyperflow_i2v`, `hyperflow_flf2v` | Yes | Yes | | `ref2va` | Prompt + up to 12 references | `hyperflow_ref2v` | Images only | Images, videos, and audio | --- ## Choose a Runtime **Decision rule:** In ComfyUI on 24 GB+ RTX GPUs, use the **INT8 safetensors** (16 GB+ of system RAM; a PyTorch built for CUDA 13.0 or newer, or `--enable-triton-backend`). Use **GGUF** on smaller GPUs and in stable-diffusion.cpp or Unsloth Studio. Use the **INT8 convrot** Python package on data-center GPUs, or on 24 GB+ RTX GPUs with at least 69 GiB of system RAM. All weights are in [`VideoRebirthAI/hyperflow-h3-flash`](https://huggingface.co/VideoRebirthAI/hyperflow-h3-flash). | | GGUF | INT8 convrot | |---|---|---| | **Runtime** | [ComfyUI, Unsloth Studio, stable-diffusion.cpp](#comfyui-unsloth-studio--stable-diffusioncpp-gguf) ([setup guide](integrations/README.md)) | [This Python package](#python-package-int8-convrot) (`hyperflow-h3-flash` CLI and `diffusers`); [ComfyUI](integrations/README.md#comfyui-int8) (`*_int8` templates) | | **Precision & size** | `Q3_K_M` to `Q8_0` (7.2–15.2 GB) | W8A8 INT8 + low-rank (~16 GB) | | **Hub folders** | `fl2va_gguf/`, `ref2va_gguf/` | `fl2va_int8_convrot/`, `ref2va_int8_convrot/`; single-file ComfyUI copies in `fl2va_int8_convrot_comfyui/`, `ref2va_int8_convrot_comfyui/` | | **`ref2va` inputs** | Images | Images, videos, and audio | | **Target GPU** | Consumer RTX GPUs (measured on 24 GB and 32 GB) | H100 / H200 / B200 / B300 (1–8 GPUs), or 24 GB+ RTX GPUs | | **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 | --- ## GGUF Runtimes (ComfyUI, Unsloth Studio, stable-diffusion.cpp) | Quant | `fl2va_gguf/` | `ref2va_gguf/` | When to use | |---|---:|---:|---| | **`Q4_K_M`** | **9.1 GB** | **9.2 GB** | **Recommended GGUF quant** | | `Q8_0` | 14.9 GB | 15.2 GB | Closest to full precision when VRAM and system RAM fit | | `Q3_K_M` | 7.2 GB | 7.4 GB | Smallest footprint (`Q4_K_S`, `Q5_K_M`, and `Q6_K` are also available) | **Full setup guide: [`integrations/README.md`](integrations/README.md).** Quick start: - **ComfyUI ([`Video-Rebirth/ComfyUI-HyperFlow-Flash`](https://github.com/Video-Rebirth/ComfyUI-HyperFlow-Flash)):** 1. Clone [ComfyUI-GGUF](https://github.com/city96/ComfyUI-GGUF) and [ComfyUI-HyperFlow-Flash](https://github.com/Video-Rebirth/ComfyUI-HyperFlow-Flash) into `ComfyUI/custom_nodes/`. 2. Download the 15.7 GB `qwen3vl_32b_minimax_h3_nvfp4_awq` text encoder. 3. On 16 GB or 32 GB PCs, start ComfyUI with `python main.py --fast-disk`. 4. Open **Workflow > Browse Templates > ComfyUI-HyperFlow-Flash** and select `hyperflow_t2v`, `hyperflow_i2v`, `hyperflow_flf2v`, or `hyperflow_ref2v`. 5. On 24 GB+ GPUs, use the INT8 safetensors from `fl2va_int8_convrot_comfyui/` or `ref2va_int8_convrot_comfyui/` with the `*_int8` templates instead (ComfyUI-GGUF is not needed). Start ComfyUI with `--enable-triton-backend`, or use a PyTorch built for CUDA 13.0 or newer ([INT8 safetensors](integrations/README.md#comfyui-int8)). - **Unsloth Studio ([setup guide](integrations/README.md#unsloth-studio)):** 1. Point `SD_CLI_PATH` at the patched `sd-cli` binary and run `unsloth studio`. 2. Load `VideoRebirthAI/hyperflow-h3-flash` (`fl2va_gguf/` or `ref2va_gguf/`). 3. Studio downloads the companion text encoder and VAEs automatically. It runs the built-in 6-step schedule at `CFG = 1`. - **stable-diffusion.cpp ([`integrations/stable-diffusion.cpp/`](integrations/stable-diffusion.cpp)):** Apply `hyperflow-two-time.patch` to upstream commit `3be2378`. The patch adds the two-time `(t, r)` embedder, low-rank linear layers, the default 6-step schedule from GGUF metadata, and 32-bit matmul token splitting for long clips. --- ## Python Package (INT8 convrot) ### Install ```bash pip install git+https://github.com/Video-Rebirth/hyperflow-h3-flash pip install "hyperflow-h3-flash[hopper] @ git+https://github.com/Video-Rebirth/hyperflow-h3-flash" # H100 / H200: FlashAttention-3 pip install "hyperflow-h3-flash[fp8] @ git+https://github.com/Video-Rebirth/hyperflow-h3-flash" # --text-encoder-precision fp8 ``` - **Requirements:** Python 3.10+, PyTorch 2.6+ with CUDA and Triton (`pip install triton-windows` on native Windows), an Ampere or newer NVIDIA GPU, and `diffusers >= 0.40`. Multi-GPU (`--gpus` > 1) requires Linux or WSL2 (raise `memory=` in `%UserProfile%\.wslconfig` on WSL2). - **First-run download:** ~90 GB, or ~68 GB with `--text-encoder-precision fp8`. This includes the MiniMax-H3 text encoder, VAEs, and the 16 GB HyperFlow INT8 transformer for the selected task. The 62 GB base transformer is never downloaded. - **First-run compilation:** Triton INT8 kernels compile on first use (~1 min). ### Command Line Run `hyperflow-h3-flash` or `python -m hyperflow_h3_flash`: ```bash # Text to video + audio (t2va) hyperflow-h3-flash --prompt "A chef slides a steaming bowl of ramen across a wooden counter; rain taps on the window." \ --output ramen.mp4 # First keyframe, or first + last keyframe (fl2va) hyperflow-h3-flash --prompt "..." --image first.png --output clip.mp4 hyperflow-h3-flash --prompt "..." --image first.png --last-image last.png --output clip.mp4 # Reference images, videos (with soundtrack), and audio clips in prompt order (ref2va) hyperflow-h3-flash --prompt " walks through the scene of ..." \ --reference person.png --reference scene.png --output clip.mp4 # 15 s clip, context-parallel across 4 GPUs (or --gpus auto for up to 4 visible GPUs) hyperflow-h3-flash --prompt "..." --num-frames 360 --gpus 4 # 4 steps (speed), 6 steps (default), or 8 steps (quality) hyperflow-h3-flash --prompt "..." --steps 4 ``` | Option | Values / Default | Description | |---|---|---| | `--steps` | `4`, `6` (default), `8` | Sampling steps: `4` for speed, `6` balanced, `8` for quality. Sigma grids are in [`schedule.py`](src/hyperflow_h3_flash/schedule.py). | | `--num-frames` | `124`–`362` (default `124`) | Frame count at 24 fps (`5.2` to `15 s`). Rounds up to `17n + 5` (`360` becomes `362`). | | `--height`, `--width` | Multiples of 32 | Default: 768 on the short edge. Follows the `--image` aspect ratio, or 16:9 for `t2va`. | | `--reference` | Repeatable path | `ref2va` inputs matching ``, `