How to speed up Wan 2.2?

last edited

The biggest speedup for Wan 2.2 is the Lightning 4-step LoRA with CFG off. It replaces the default 40 steps and two guidance passes (step distillation). Caching and attention kernels add smaller gains.

40 steps, cond + uncond pass4 steps, cfg 1

Which Lightning settings does Wan 2.2 use?

high_noise_modellow_noise_modelsteps 0-2, lora 1.0steps 2-4, lora 1.0euler, simple, shift 5, cfg 1

The README says generation needs 4 steps and no CFG trick. The ComfyUI I2V workflow loads one LoRA per expert, high_noise_model and low_noise_model, both at strength 1.0. Two samplers run at CFG 1 with euler and simple. Each takes 2 of the 4 steps. Other strengths are undocumented.

Newest T2V file: Seko V2.0. The image-to-video LoRA remains on V1. The 5B model has no 4-step LoRA.

Which speedups can be combined?

stock 40 stepslightning+ sageattentionrelative time per clip
methodsteps and CFGspeedupquality cost
default Wan2.2 A14B40 steps, CFG 3.0 to 4.01xnone
Lightning LoRA4 steps, CFG 1README claims 20xslight motion artifacts
MagCachenormal steps1.5x to 2xsmall, set by threshold
SageAttentionunchangedkernel-level onlynear lossless
TorchCompileModelunchangednot measurednone expected

Lightning and SageAttention stack, since one cuts steps and the other speeds each step. Caching suits the 40-step default. Mixing it with 4 steps is untested here.

What about MagCache, TeaCache and torch compile?

retention 0.2threshold 0.06filled = computed, dashed = reused

MagCache lists a speedup of 1.5x to 2x. Its threshold is 0.06. The TeaCache README names only Wan2.1. See diffusion caching.

SageAttention reports 2.7x over FlashAttention on RTX 5090 at kernel level. ComfyUI enables it with --use-sage-attention. Its experimental TorchCompileModel node offers inductor and cudagraphs. For memory, see quantization and open weight video models.

Sources