MiniMax H3 recipes
Compare H3 modes and options
Supported modes
CUDA covers T2VA, FL2VA, and Ref2VA on the full checkpoint, plus FastH3
V1 and FastH3 V2, plus CompactH3 NVFP4 on one Blackwell GPU. FastH3 V1 also has a DGX Spark runtime with
a 1-Spark or 2-Spark device row. MLX is T2VA only: V1 and V2.
Temporal –fast, spatial –fast-spatial, and opt-in VSA are flags on the same
MLX script, not extra recipes.
| Mode | CUDA | MLX FastH3 |
|---|---|---|
| T2VA | Full H3, FastH3 V1, FastH3 LoRA, FastH3 V2, CompactH3 NVFP4 | FastH3 V1 or FastH3 V2 after a local DiT conversion |
| FL2VA | Full H3 | Not wired |
| Ref2VA | Full H3 | Not wired |
Temporal –fast | No cookbook recipe | Shorter video denoise, MLX RIFE back to –num-frames, full-duration audio |
| VSA | Trained sparse attention on FastH3 CUDA | Opt-in. Convert with –include-vsa into a new directory such as ./FastH3-MLX-vsa, then pass –vsa. Do not overwrite an existing dense export. |
Spatial –fast-spatial | No cookbook recipe | Denoise and decode at height/width divided by –fast-spatial-scale, then resample. Composes with –fast. |
| Two-pass refine | No cookbook recipe | Not wired |
| DGX Spark | FastH3 V1 on one GB10. Two Sparks run one clip faster over QSFP RoCE (sp_size=2), but this page configures one Spark. | Not wired |
| CompactH3 NVFP4 | 42-block 20B checkpoint on one RTX 5090 (32 GB, sequential encoder offload) or one RTX PRO 6000 Blackwell (96 GB, encoder+DiT+VAE resident). SageAttention3 FP4, packed NVFP4 DiT, Comfy int8-convrot VAE. | Not wired |
Pika H3 Flex
Pika H3 Flex is Pika’s post-trained MiniMax-H3: the H3 components plus a rank-128 adapter that FastVideo applies automatically, sampled with a fixed six-forward re-noise ladder. One recipe page covers T2VA, the keyframe tasks (I2VA, L2VA, FL2VA), and Ref2VA. Its builder selects the resolution tier (480p or 768p), the aspect bucket, the duration (5, 10, or 15 s), and the optional Blackwell NVFP4 decoder and text encoder. The Pika H3 Flex runbook has the full sampling and geometry contract.
FASTVIDEO_ATTENTION_BACKEND=FLASH_ATTN FASTVIDEO_FA4=1
python examples/inference/basic/basic_pika_h3_flex.py –task t2va –offload resident
–resolution 768p –aspect 16:9 –duration 5
–prompt “A paper boat drifts down a rainy city street at night.”| T2VA on one GB200, 768p 16:9, 5 s, warm, all resident | Time |
|---|---|
Official pika-h3-pro CLI | 59.7 s |
| FastVideo BF16 | 26.2 s |
+ NVFP4 quality-36L decoder (40.5 dB PSNR vs BF16 decoder) | 18.0 s |
+ NVFP4 fast-8L decoder | 17.4 s |
The BF16 run peaked at about 129 GiB resident on GB200; the official CLI’s sampling peak was 71.7 GiB. With the NVFP4 text encoder, I2VA took 27.37 s, FL2VA 28.95 s, and Ref2VA with two image references 51.17 s, at 104.9 to 108.5 GiB peak. The example’s default –offload lazy fits smaller devices but reloads components per request (48.06 s for the same T2VA request on GB200). FlashAttention-4 needs FASTVIDEO_FA4=1 even when it is installed. Without it, attention uses FA3 or FA2 if one is installed and otherwise falls back to SDPA, which is slow and can run out of memory at 768p. GB10 has no FA4, so drop the prefix on DGX Spark.
Setup
The generated commands expect a local clone:
git clone https://github.com/hao-ai-lab/FastVideo.git
cd FastVideoUse Configuration for supported Python and CLI settings, Optimizations for attention and memory tradeoffs, and the support matrix for the supported model and optimization surface.
CUDA
UV_TORCH_BACKEND=cu130 uv pip install -e “.[fasth3]”Apple Silicon
uv pip install -e “.[mlx]”Follow the MLX install guide for the extra, ffmpeg, and a clone. Then pick FastH3 V1 or V2 in the builder above.
NVIDIA DGX Spark
UV_TORCH_BACKEND=cu130 uv pip install -e .Follow the DGX Spark install guide for ARM64 CUDA 13. One Spark is a local process. Two Sparks need Ray on the QSFP link:
uv pip install rayBring up the cluster from pairing two Sparks before selecting 2 Sparks in the builder.
Troubleshooting
- The full CUDA H3 examples request four GPUs by default. Their sources do not claim a GPU model or memory minimum.
- The FastH3 CUDA performance profile was measured on four GB200 GPUs. Use its strict profile when exact operation order matters more than the measured performance configuration.
- The MLX source runtime supports T2VA, optional temporal
–fast, optional spatial–fast-spatial, and opt-in VSA on–include-vsacheckpoints. FastH3 V2 MLX converts with–include-vsaand runs eight forwards. FL2VA, Ref2VA, and two-pass refinement are not wired. - GPU count and VAE decode backend are configurable in the builder above for FastH3 CUDA recipes. Only the value shown by default has a recorded run; other supported values are unmeasured here.
- DGX Spark is a runtime on FastH3 V1, not a separate family card. This page configures one Spark. For two Sparks, run
examples/inference/basic/basic_fasth3_spark_pair.yaml; there is no serving baseline. The CUDA GPU-count knob does not apply to Spark. - CompactH3 NVFP4 is one Blackwell GPU. RTX 5090 (32 GB) parks the encoder in pinned host RAM. RTX PRO 6000 Blackwell (96 GB) keeps encoder, DiT, and VAE resident. Keep
FASTVIDEO_ATTENTION_BACKEND=ATTN_QAT_INFER,FASTVIDEO_FA4=0,FASTVIDEO_VSA_PTX_BLACKWELL=0, andFLASHINFER_CUDA_ARCH_LIST=12.0a. On PRO 6000 enable VAE compile and leave DiTinference_torch_compileoff. CompactH3 is a dense prune; do not enableVIDEO_SPARSE_ATTN_H3until a VSA-trained student exists. - GB10 has no FA4 / ptx_blackwell VSA kernel. Keep
FASTVIDEO_FA4=0andFASTVIDEO_VSA_PTX_BLACKWELL=0. Legalnum_framesvalues are17n+5, capped at 362 (15.08 s). A 345-frame request on one Spark can OOM. Native 16:9 sizes include 832×480 and 1344×768. - Gated or missing checkpoints: run
huggingface-cli loginand confirm you accepted the model’s license on Hugging Face.
Evidence status
Every command, model ID, and flag on this page maps to a checked-in FastVideo source. No recipe here carries a recorded run for a specific device, so the editor does not claim one. The full H3 CUDA examples remain Source-backed where the source records a GPU count but no GPU model or memory requirement. Unlisted hardware is unknown, not unsupported.