AnyFlow 2.0: 4-step LoRAs for MiniMax H3, Wan 2.1 and FLUX

ComfyUI Wikinews

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 modelTaskAdapter
FLUX.1-DevText to image1.3 GB
FLUX.3-Klein-BaseText to image1.0 GB
Wan 2.1 T2V 14BText to video2.5 GB
MiniMax H3 T2VA 33BText to video with audio2.8 GB
MiniMax H3 Ref2VA 33BReference to video with audio2.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

ModelStepsVBench overallAudio aestheticsJavisScore
H3-T2VA-33B teacher3284.953.51530.1871
PDMD485.723.45400.1542
AnyFlow 2.0485.453.45630.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 at 32 stepsAnyFlow 2.0 at 4 steps
Teacher, 32 stepsAnyFlow 2.0, 4 steps
PDMD at 4 stepsSMD at 4 steps
PDMD, 4 stepsSMD, 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/demo

The 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.

Loading comments…
AnyFlow 2.0: 4-step LoRAs for MiniMax H3, Wan 2.1 and FLUX | ComfyUI Wiki