Text-to-Video
Wan2.2
Diffusers
Safetensors

What is the lowest FlashAttn version necessary to run Wan2.2?

#8
by ajtakto - opened

I try to run in on Cuda 12.2 system, but currento version of FlashAttn does not compile as it requires Cuda 12.8.

On CUDA 12.2 (cu122), flash-attn==2.6.3 (and prebuilt 2.7.2.post1 wheels matching your PyTorch + Python + cxx11abi tag) build and run reliably — newer 2.7.4+ source builds expect CUDA 12.4–12.8 headers for SM90a/Blackwell kernels.

If flash-attn compilation is still painful in your CUDA 12.2 image, two drop-in alternatives run Wan 2.2 A14B cleanly with no host CUDA upgrade:

  1. PyTorch 2.4+ built-in F.scaled_dot_product_attention (SDPA FlashAttention backend) works out of the box when bypassing the strict flash_attn import guard.
  2. SageAttention (1.0.6) gives equal or faster INT8 attention speedups on Ampere/Ada GPUs under CUDA 12.2.

Sign up or log in to comment