Four steps beat fifty: NVIDIA's AnyFlow 2.0 distills image, video and world models with one recipe
On December 3, NVIDIA's NVlabs posted AnyFlow 2.0 to arXiv and released the code together with five four-step LoRA checkpoints. The headline number sits on Wan2.1-T2V-14B: the teacher needs 50×2 forward passes to score 83.58, while the student takes 4 passes and reaches 85.02.
TL;DR
In one sentence: it teaches a large diffusion model to take fewer steps without losing the picture. Three of the five tasks end up ahead of a teacher that runs 32 to 100 passes.
This is not a new base model. It is a distillation framework. The backbones still belong to someone else: FLUX.1-Dev, FLUX.3-Base, Wan2.1-T2V-14B, and MiniMax-H3 at 33B. AnyFlow 2.0 trains a small LoRA that lets each of them produce a result in four forward passes.
| Backbone | Task | Teacher (steps) | AnyFlow 2.0 (4 steps) |
|---|---|---|---|
| Wan2.1-T2V-14B | Text to video | 83.58 (50×2) | 85.02 |
| FLUX.1-Dev 12B | Text to image | 65.69 (32) | 71.06 |
| FLUX.3-Base 5.6B | Text to image | 89.46 (32×2) | 88.39 |
| H3-T2VA-33B | Text to audio-video | 84.95 (32) | 85.45 |
| H3-Ref2VA-33B | Reference to audio-video | 65.95 (32) | 65.90 |
Read the units carefully: the two video rows are VBench Overall, the image rows are GenEval, and the last row is OmniVBench Overall. They cannot be compared across benchmarks, only against their own teacher.
Going from roughly 100 passes down to 4 is a 25× cut. That is the real weight of the story. What gets saved is not a bit of electricity, it is the line between rendering a clip and rendering it while someone waits.
Do not only look at the three winning rows. On FLUX.3-Base and H3-Ref2VA the student trails the teacher by 1.07 and 0.05 points. That gap sits inside benchmark noise, but the paper never claims a clean sweep.
What actually changed
The previous AnyFlow could already generate in four steps. The problem was diversity: run the same prompt a few times and the outputs started to look alike. The paper attributes this to trajectory supervision and distribution supervision being applied to different student states.
AnyFlow 2.0 puts both on the same state and calls it DTR, short for distributional trajectory regression. Three concrete changes follow:
- When a single step covers a large interval, the student no longer learns one average velocity. The trajectory is parameterized as a combination of K basis functions, so intermediate states get supervised too.
- A curvature head lets the student's velocity field bend inside a step instead of staying a straight line.
- The fake-score model is parameterized with the source interval and re-noises locally, so samples from different step budgets stop mixing.
The ablations back this up. At four steps with a linear head, plain velocity regression shows an intermediate-state MMD of 10.46; DTR brings that to 7.81; the curvature head takes it to 7.24 and lifts VBench from 85.38 to 85.72.
The fake-score track moves the same way: standard estimation 84.13, local re-noising 84.63, parameterized version 85.02. Three numbers climbing in order means each change is doing work.
How to use
The repository is Apache-2.0 and the five four-step LoRAs are already on HuggingFace (dc-ai/AnyFlow2-LoRA-Collections, created December 4). This is the official path:
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
# download one backbone for your task; text-to-video shown here
hf download Wan-AI/Wan2.1-T2V-14B-Diffusers \
--local-dir experiments/pretrained_models/Wan2.1-T2V-14B-Diffusers
hf download dc-ai/AnyFlow2-LoRA-Collections \
--local-dir experiments/pretrained_models/AnyFlow2-LoRA-Collections
python demo.py task=wan_t2v save_dir=results/demoThere are five values for task: flux1_t2i, flux3_t2i, wan_t2v, h3_t2va, h3_ref2va. Prompts live in assets/validation/; swap in your own images or video references there.
Remember the chain is backbone plus LoRA, not a single download. The five LoRA files run from 1.0 GB to 2.8 GB on HuggingFace. The backbone is the heavy part.
Who it's for
Three groups should look at this now:
- Teams running their own inference and paying for GPU time by the second: four passes against a hundred lands directly on the bill.
- Anyone fine-tuning an open backbone into a house style: LoRA rank is 256, and the training configs ship with the repo.
- Researchers working on world models or streaming rendering: the last two sections distill SolarWM-H3 and SolarRenderer-H3 as well, and the four-step streaming renderer reaches 1404 Gemini Elo against 1382 for its 50-step bidirectional teacher.
That third group is easy to overlook and it is the most interesting part. Video models are moving from "generate a clip" to "step through frames from a state." In that setting the gap between 4 and 50 steps is not a user-experience detail, it is whether the thing runs at all.
Not a good fit
Not for people who just want a finished tool. There is no web UI, no API key. You configure the environment, pull tens of gigabytes of weights, and live in a terminal.
Not for a single consumer GPU either. The 33B H3 backbone is roughly 66 GB in bf16, which is tight even on one 80 GB card. Every experiment in the paper ran on 16 GB200s.
And not for a team that wants to ship commercially tomorrow. Apache-2.0 covers the code only. The weights follow each backbone's own license, and both FLUX.1-Dev and MiniMax-H3 are tagged license: other on HuggingFace, meaning custom terms rather than a standard open-source grant. Clear that up first or the output cannot go live.
Pitfalls
Pitfall one: reading "data-free" as "no data". In this paper data-free means the teacher does not have to generate paired samples online. Training data is still required: 250K text-to-image prompts, 248K VidProM video prompts, and 20K reference samples. Reproducing it means downloading the dataset.
Pitfall two: pairing a 1.0 LoRA with the 2.0 scripts. The objectives differ between generations and so do the filenames; every 2.0 checkpoint ends in -4step.pt. Mismatched directory layout makes demo.py fail immediately with a missing-file error.
Pitfall three: changing the inference step count. The training config pins Inference NFE at 4 because the LoRA was distilled for exactly that. Raising it to 8 or 16 buys you slower generation, not better pictures.
Pitfall four: reading a leaderboard without its error bars. In the paper's own table, PDMD scores 85.72 VBench Overall on H3-T2VA, above AnyFlow 2.0 at 85.45. AnyFlow 2.0 wins on audio alignment instead, with IB-AV at 0.2427 against 0.1916. Pick on the metric you actually need, not the total.
Cost and time
The training budget is public, all on 16 GB200 GPUs:
| Backbone | Iterations | Training time |
|---|---|---|
| FLUX.1-Dev | 3,000 | about 3.4 hours |
| FLUX.3-Base | 3,000 | about 4.3 hours |
| Wan2.1-T2V-14B | 1,000 | about 8.0 hours |
| H3-T2VA-33B | 1,000 | about 14.0 hours |
| H3-Ref2VA-33B | 1,000 | about 53.6 hours |
The paper gives hardware and wall-clock, not dollars, so multiply by your local GB200 hourly rate for a training figure. If you would rather skip that step, download the released LoRAs and skip training entirely.
Inference seconds per clip are not published. What is known: four forward passes, and these resolutions. Wan runs 480×832 at 81 frames and 16 fps; H3 runs 768×1344 at 124 frames and 24 fps. Size your memory and throughput from those numbers rather than from marketing copy.
Next step
Start with wan_t2v alone. It avoids the 33B H3 backbone, needs one 14B base plus one LoRA, and has the lowest barrier. Get that working before touching the other four tasks.
Before you run anything, spend ten minutes reading the license of the backbone you plan to use. That ten minutes can save weeks of rework later.
Sources
- AnyFlow 2.0 paper (arXiv 2612.05524, submitted 2026-12-03): https://arxiv.org/abs/2612.05524
- Official repository (Apache-2.0, README lists the 2026.12.03 release): https://github.com/NVlabs/AnyFlow
- Project page with sample outputs for each task: https://nvlabs.github.io/AnyFlow/2.0
- Four-step LoRA weights (HuggingFace, created 2026-12-04): https://huggingface.co/dc-ai/AnyFlow2-LoRA-Collections
Every figure here comes from the paper's tables or the official README. No local reproduction was performed.