跳到正文
DEV Community· AI-KSK·· 48 分鐘前AI 評分56

Radial Sage Attention 與 EasyCache 為 Wan 2.1 帶來額外 20-25% 加速

Radial Sage Attention plus EasyCache: another 20-25% off Wan 2.1

AI 導讀

作者在 LightX2V V2 上疊加 Radial Sage Attention 與 EasyCache,測得 Wan 2.1 額外提升 20-25% 速度。

正文

AI-KSK

Two Wan 2.1 accelerators are stacked on top of LightX2V V2: Radial Sage Attention skips redundant attention regions, while EasyCache reuses computed transformation vectors. The episode measures a further 20-25% speed gain and roughly one second per frame at 800x800.

Watch the episode: https://youtu.be/IruiclsbqsQ
Chinese original: https://www.bilibili.com/video/BV1vmgGzNEKG

Radial Sage Attention

Update KJ's plugin, switch attention mode, and add the Radial configuration node between model loaders. The three Radial values control how much standard attention remains. They must not be zero: zero disables standard attention and sharply reduces quality.

The episode notes maxima around 40, 15, and the sampler step limit. With LightX2V, the tested values are all 1, but that is a starting point rather than a universal setting.

EasyCache

EasyCache behaves like TeaCache. A higher first value accelerates more but loses more quality. The default 0.015 accelerated with almost no visible loss in the author's observation. Start and end steps were set to cover the whole sampling range.

They can be combined

The two methods do not conflict. In the 1000x1000, 81-frame I2V test, the later table reports about 76 seconds with Sage Attention 1, 72 seconds with Radial, and 68 seconds with both. An earlier narration gives slightly different numbers, so treat the exact seconds as machine-specific observations rather than fixed benchmarks.

Sage Attention version

If Sage Attention 2.2 is already installed, the gap to Radial Sage Attention is small. Most users on version 1 are the ones likely to see the larger gain.

Known limits

  • Exact speed depends on GPU, OS, memory and temperature.
  • Radial values at zero are harmful.
  • EasyCache tuning is a speed-quality trade.
  • No workflow JSON or weights are bundled with this article.

來源:DEV Community · dev.to