AnyFlow 2.0: 4-step LoRAs for MiniMax H3, Wan 2.1 and FLUX
NVIDIA AnyFlow 2.0 distills MiniMax H3 T2VA and Ref2VA, Wan 2.1 T2V and FLUX from 32 steps to 4, with LoRA weights, code and side-by-side demo clips.
AnyFlow 2.0 is NVIDIA's distillation release that turns five diffusion models into 4-step versions through a LoRA, and two of them are MiniMax H3: text to video with audio, and reference to video with audio. The H3 teacher runs 32 steps. The distilled adapters run 4, stereo audio included.
What ships
| Base model | Task | Adapter |
|---|---|---|
| FLUX.1-Dev | Text to image | 1.3 GB |
| FLUX.3-Klein-Base | Text to image | 1.0 GB |
| Wan 2.1 T2V 14B | Text to video | 2.5 GB |
| MiniMax H3 T2VA 33B | Text to video with audio | 2.8 GB |
| MiniMax H3 Ref2VA 33B | Reference to video with audio | 2.8 GB |
All five are BF16 EMA LoRAs trained with distributional trajectory regression, and each ships with an inference config that samples at 4 steps. The repo also carries a matching distillation recipe, so the same code can post-train other models.
How the H3 output holds up
| Model | Steps | VBench overall | Audio aesthetics | JavisScore |
|---|---|---|---|---|
| H3-T2VA-33B teacher | 32 | 84.95 | 3.5153 | 0.1871 |
| PDMD | 4 | 85.72 | 3.4540 | 0.1542 |
| AnyFlow 2.0 | 4 | 85.45 | 3.4563 | 0.1980 |
The video score lands within half a point of the teacher; PDMD still edges it there, while AnyFlow keeps the best audio quality and sync score of the four-step group. On H3 Ref2VA the 4-step model scores 65.90 against 65.95 for the 32-step teacher, and its outputs stay closer to the teacher's than SMD's.
![]() | ![]() |
|---|---|
| Teacher, 32 steps | AnyFlow 2.0, 4 steps |
![]() | ![]() |
| PDMD, 4 steps | SMD, 4 steps |
The same jeep shot at 4 steps, with the audio track H3 generates alongside the picture.
Run it
conda create -n anyflow2 python=3.11 && conda activate anyflow2
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128
pip install -r requirements.txt --no-build-isolation
hf download dc-ai/AnyFlow2-LoRA-Collections --local-dir experiments/pretrained_models/AnyFlow2-LoRA-Collections
python demo.py task=h3_t2va save_dir=results/demoThe H3 configs in the collection sample 768x1344, 124 frames at 24 fps and 4 steps, with a rank-256 LoRA on attention, feed-forward and output projection, video shift 12 and audio shift 3. Two more tasks, h3_ref2va and wan_t2v, are in the same demo.py.
ComfyUI status
There is no ComfyUI node, no Comfy-Org repack and no safetensors build yet. The adapters are .pt files that load through AnyFlow 2.0's own transformer classes and pipelines, so a ComfyUI conversion has to be written first. The project page pairs every H3 demo with the 32-step teacher and with PDMD, SMD and PTD, which makes it a useful quality reference before that conversion lands.
Project page · Code · LoRA collection · Paper




Comments
Sign in with GitHub to join the discussion.