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
-**`2026/07/14`**: Automatic attention tile-size (`block_q`/`block_kv`) search for Wan is now supported.
21
+
-**`2026/06/26`**: 2D ring (USP) attention with a custom splash kernel is now supported for Wan (`ulysses_ring_custom`), splitting context parallelism into an intra-chip Ulysses axis and a cross-chip ring axis.
20
22
-**`2026/04/16`**: Support for Tokamax Ring Attention kernel is now added.
21
23
-**`2026/03/31`**: Wan2.2 SenCache inference is now supported for T2V and I2V (up to 1.4x speedup)
22
24
-**`2026/03/25`**: Wan2.1 and Wan2.2 Magcache inference is now supported
@@ -690,6 +692,10 @@ We added ring attention support for Wan models. Below are the stats for one `720
690
692
691
693
(* There are some known stability issues for ring attention on 16 TPUs, please use `tokamax_flash` attention instead.)
692
694
695
+
### Automatic Tile-Size Search
696
+
697
+
The optimal attention tile sizes (`block_q` / `block_kv`) depend on the sequence length, VMEM, sharding, and accelerator, and the feasibility edge is a VMEM OOM with no clean closed form — so we tune them empirically. Passing `enable_tile_search=true` to `generate_wan.py` runs a fast one-DiT-block grid search before inference and injects the winning block sizes into `flash_block_sizes` (`tile_search_mode=smart` by default; the search is opt-in and off by default). The core is model-agnostic (`utils/tile_size_grid_search.py`) with a per-model plug (`utils/wan_block_benchmark.py`), which also runs standalone via `python -m maxdiffusion.utils.wan_block_benchmark ... --smart-search`.
698
+
693
699
## Flux
694
700
695
701
First make sure you have permissions to access the Flux repos in Huggingface.
0 commit comments