Diffusers
Safetensors
MiniMax H3
video-generation
reference-to-video
text-to-audio-video
fastvideo
fasth3-omni
nvfp4
qad
Run this model with HF Jobs
Run FastVideo/FastH3-Omni-NVFP4-QAD on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/FastVideo/FastH3-Omni-NVFP4-QAD. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/FastVideo/FastH3-Omni-NVFP4-QAD on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use FastVideo/FastH3-Omni-NVFP4-QAD with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use FastVideo/FastH3-Omni-NVFP4-QAD with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("FastVideo/FastH3-Omni-NVFP4-QAD", 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
[docs]: production-ready NVFP4 QAD model card
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869704 unmodified lines757677787980818283848586878889909192939495---license: othertags: [video-generation, text-to-audio-video, reference-to-video, minimax-h3, fastvideo, nvfp4]---# FastH3 OmniRef NVFP4 QAD v2FastH3 OmniRef is a reference-conditioned MiniMax-H3 student: a prompt plus ordered image,video and audio references become one video and audio clip in eight fused PDD transformerforwards. This is the second quantization-aware distillation (QAD v2) of the OmniRef student,exported as a **complete, self-contained NVFP4 inference stack** for Blackwell GPUs(B200/B300/GB200, RTX 5090 / PRO 6000, DGX Spark).## What v2 changes| | First QAD release | **QAD v2 (this repo)** ||---|---|---|| NVFP4 blocks | 42 of 50 (blocks 42-49 kept bf16) | **all 50** (`skip_blocks` empty) || DiT size | 44.5 GB | **37 GB** || VSA gates (`attn.to_gate_compress`) | trained | **frozen** at the original OmniRef values || Q/K norms and all other norms | trained | **frozen**, byte-identical to the original OmniRef || Trained tensors | q/k/v/out, gate, norms, fc_in/fc_out | q/k/v/out, fc_in/fc_out only || Teacher-forced score (lower is better) | 0.362 | **0.303** (video 0.198, audio 0.409) |v2 was selected at step 120 of 200 and evaluated on the same held-out OmniRef rows as thefirst release (480p and 768p). The visual comparison against the first release is pending;the teacher-forced metric is the only measured comparison so far.## Contents| Component | Files | Notes ||---|---|---|| `transformer/`, `transformer_ref/` | packed NVFP4 linears (`nvfp4_weights.safetensors`, 350 linears across all 50 blocks) + dense bf16 shards for norms, embeddings and modulation | identical copies; `transformer_ref` is the Ref2VA component || `text_encoder/` | Qwen3-VL NVFP4 encoder (4 shards) | unchanged from the first release || `tokenizer/`, `processor/` | Qwen3-VL tokenizer and processor | unchanged || `scheduler/`, `audio_scheduler/` | MiniMax-H3 schedulers | unchanged || `vae/` | full 36-block video VAE | needed for reference encoding and by the 36L decoder || `audio_vae/` | audio VAE | unchanged || `vae_decoder_nvfp4/` | `decoder-nvfp4.safetensors` | 36-layer quality decoder || `vae_decoder_nvfp4_fast/` | `decoder-nvfp4.safetensors` | 8-layer fast decoder || `fastvideo_inference.json` | inference contract | 8 fused forwards, 32-interval PDD grid, VSA sparsity 0.9, tile 128, reference keep 0.1 |The two decoders share the same latent space. The 36L decoder costs about 5 s more decodethan the 8L at 480p/5 s (about 24 s at 768p/10 s) and is the quality choice; the 8L is thespeed choice.## Attention- VSA sparse attention at sparsity 0.9, 128-token tiles, reference keep 0.1.- FP4 sparse attention was part of QAD training.- The FP8 prefix split (`FASTVIDEO_H3_VSA_FP4_PREFIX=fp8`) is the validated-quality mode:text, reference and audio query rows run densely at 8-bit Q/K with bf16 P.V. It is thedefault in the Spark / RTX PRO 6000 / RTX 5090 profiles and costs about 35 s per480p/5 s clip on one Spark.- The all-FP4 fast mode (`--attention-prefix fast`, or an empty`FASTVIDEO_H3_VSA_FP4_PREFIX`) keeps every row on the FP4 kernel. On a matched 480p/5 sclip it stays the same scene and motion but is 4.3 dB farther from the bf16 attentionreference on every frame (20.96 vs 25.26 dB PSNR, SSIM 0.785 vs 0.852). Use quality modefor release comparisons; fast mode is the speed option.- At `sp_size > 1` the single-rank prefix split is not yet applied; the sequence-parallelpath currently runs every row on the FP4 kernel.## Running with FastVideoRequires a FastVideo build with OmniRef NVFP4 support (the `basic_fasth3_omniref_*` recipesand the packed NVFP4 DiT loader).```bashpython examples/inference/basic/basic_fasth3_omniref_pdd.py \--model-path FastVideo/FastH3-OmniRef-NVFP4-QAD \4 unmodified lines--attention-prefix fp8```For the fastest clip, use `--attention-prefix fast` and the 8L decoder(`vae_decoder_nvfp4_fast/decoder-nvfp4.safetensors`). For the best-quality clip, keep theFP8 default and the 36L decoder.## Verification done at export- Packed weights, block scales and alpha of sampled linears (blocks 0, 25, 49, all sevenlinear types) are byte-identical to the QAD harness's quantization of the bf16 masters;the deployed NVFP4 linear output equals the harness `nvfp4_gemm` bit for bit.- Gate weights of all 50 blocks and every dense tensor (all norms) are byte-identical tothe original OmniRef.- The text encoder, VAE, audio VAE, schedulers and tokenizer are unchanged from the firstQAD release.## StatusPrivate internal release candidate. Not for redistribution. The DiT is the all-NVFP4 QAD v2export; the surrounding components are the first-release stack.1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253544 unmodified lines596061626364656667686970717273---license: otherlicense_name: minimax-h3-community-license-agreementlicense_link: https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/main/LICENSEbase_model: FastVideo/FastVideo-FastH3-Omni-8-Step-V1tags:- video-generation- text-to-audio-video- reference-to-video- minimax-h3- fastvideo- nvfp4- qad---# FastH3 OmniRef NVFP4 QADFastH3 OmniRef generates a video with synchronized audio from a prompt and ordered image, video, and audio references. It runs as an eight-forward PDD student.This repository contains an **NVFP4 quantization-aware distillation (QAD) of the BF16 OmniRef model** [`FastVideo/FastVideo-FastH3-Omni-8-Step-V1`](https://huggingface.co/FastVideo/FastVideo-FastH3-Omni-8-Step-V1). QAD trains a 4-bit student against the frozen BF16 teacher, so the weights are optimized for the deployed NVFP4 forward pass rather than rounded after training.## Quantization- All 50 transformer blocks use NVFP4 W4A4 for the attention q/k/v/out and MLP `fc_in`/`fc_out` linears.- The VSA compression gates and all normalization layers stay in BF16. Changing the gates changes which video tiles the model attends to, so they are kept at the BF16 values.- The text encoder is NVFP4 Qwen3-VL. The video and audio VAEs, schedulers, tokenizer, and processor are unchanged from the BF16 release.- The checkpoint includes a 36-layer quality decoder and an 8-layer fast decoder. They share the same latent space.## Contents| Component | Files | Notes ||---|---|---|| `transformer/`, `transformer_ref/` | Packed NVFP4 linears across all 50 blocks plus dense BF16 norms, embeddings, and modulation | Identical copies; `transformer_ref` is the Ref2VA component || `text_encoder/` | NVFP4 Qwen3-VL encoder | Reference conditioning || `tokenizer/`, `processor/` | Qwen3-VL tokenizer and processor | Unchanged || `scheduler/`, `audio_scheduler/` | MiniMax-H3 schedulers | Unchanged || `vae/` | Full video VAE | Reference encoding and 36L decoder || `audio_vae/` | Audio VAE | Unchanged || `vae_decoder_nvfp4/` | 36-layer quality decoder | Best quality || `vae_decoder_nvfp4_fast/` | 8-layer fast decoder | Lower decode cost || `fastvideo_inference.json` | Inference contract | Eight fused forwards, 32-interval PDD grid, VSA sparsity 0.9, 128-token tiles, reference keep 0.1 |## Attention- VSA sparse attention uses 128-token tiles, sparsity 0.9, and reference keep 0.1.- FP4 sparse attention was part of QAD training.- The FP8 prefix split is the quality mode: text, reference, and audio query rows run densely at 8-bit Q/K with BF16 P.V, while video rows stay on the FP4 kernel.- The all-FP4 fast mode keeps every row on the FP4 kernel. It is the lowest-latency option but changes the output relative to the quality mode.## Running with FastVideo```bashpython examples/inference/basic/basic_fasth3_omniref_pdd.py \--model-path FastVideo/FastH3-OmniRef-NVFP4-QAD \4 unmodified lines--attention-prefix fp8```Use `vae_decoder_nvfp4_fast/decoder-nvfp4.safetensors` for lower decode cost. Use the 36-layer decoder when detail matters.## Verification- Packed linears, block scales, and per-linear alpha match the QAD export for sampled blocks and all linear types.- VSA gate weights and dense normalization tensors match the BF16 OmniRef values.- The text encoder, VAEs, schedulers, and tokenizer match the BF16 release.- The model card reports the deployment contract, not a claim of bit-identical BF16 output.## LicenseMiniMax-H3 and this derivative are governed by the MiniMax-H3 Community License Agreement. See the linked license for terms.
README.md+39-61