You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@md5sum -c --quiet md5sum.saved || (printf "\nError: the version dependency table is outdated.\nPlease run 'make fixup' or 'make style' and commit the changes.\n\n"&&exit 1)
-**`2026/03/31`**: Wan2.2 SenCache inference is now supported for T2V and I2V (up to 1.4x speedup)
20
21
-**`2026/03/25`**: Wan2.1 and Wan2.2 Magcache inference is now supported
21
22
-**`2026/03/25`**: LTX-2 Video Inference is now supported
22
23
-**`2026/01/29`**: Wan LoRA for inference is now supported
@@ -571,6 +572,34 @@ To generate images, run the following command:
571
572
* For Wan2.2 T2V, use `base_wan_27b.yml`.
572
573
* For Wan2.2 I2V, use `base_wan_i2v_27b.yml`.
573
574
575
+
<<<<<<< HEAD
576
+
=======
577
+
### Caching Mechanisms
578
+
579
+
Wan 2.x pipelines support several caching strategies to accelerate inference by skipping redundant transformer forward passes. These are **mutually exclusive** — enable only one at a time.
580
+
581
+
| Cache Type | Config Flag | Supported Pipelines | Speedup | Description |
582
+
| --- | --- | --- | --- | --- |
583
+
|**CFG Cache**|`use_cfg_cache: True`| Wan 2.1 T2V, Wan 2.2 T2V/I2V |~1.2x | FasterCache-style: caches the unconditional branch and applies FFT frequency-domain compensation on skipped steps. |
584
+
|**SenCache**|`use_sen_cache: True`| Wan 2.2 T2V/I2V |~1.4x | Sensitivity-Aware Caching ([arXiv:2602.24208](https://arxiv.org/abs/2602.24208)): predicts output change via first-order sensitivity S = α_x·‖Δx‖ + α_t·\|Δt\|. Skips the full CFG forward pass when predicted change is below tolerance ε. |
585
+
586
+
To enable a caching mechanism, set the corresponding flag in your config YAML or pass it as a command-line override:
587
+
588
+
```bash
589
+
# Example: enable SenCache for Wan 2.2 T2V
590
+
python src/maxdiffusion/generate_wan.py \
591
+
src/maxdiffusion/configs/base_wan_27b.yml \
592
+
use_sen_cache=True \
593
+
...
594
+
595
+
# Example: enable CFG Cache for Wan 2.2 I2V
596
+
python src/maxdiffusion/generate_wan.py \
597
+
src/maxdiffusion/configs/base_wan_i2v_27b.yml \
598
+
use_cfg_cache=True \
599
+
...
600
+
```
601
+
602
+
>>>>>>> origin/main
574
603
## Flux
575
604
576
605
First make sure you have permissions to access the Flux repos in Huggingface.
0 commit comments