SLA
SLA copied to clipboard
SLA: Beyond Sparsity in Diffusion Transformers via Fine-Tunable Sparse–Linear Attention
Since there is a seperate SLA1 branch, is the main branch SLA2?
I plan to use the SLA operator to replace the attention operator in the original model (e.g., wan2.1). The paper says finetuning is required, and there is a linear layer...
I gave the SLA code a try, plugged it into the self attention code for Wan 2.1, but in comparison to Flash attention 3 the speed is on Hopper Architecture...
Hi. I found that the evaluate/bench_kernel.py could not run directly. How could I run this code correctly? And I wonder how to benchmark the kernel with SageSLA.
Great work! I noticed that in the appendix, you report that LightningDiT-1p0B/1 (1.03B parameters) has 12.88 GFLOPs at an image resolution of 512. Could you kindly share the method you...
In open-source code ,SLA use sparse then linear, But in paper, both sparse & linear are mixed in attn kernel controled by sparse mask. I think they are not equal....
in SageSparseLinearAttention ``` def init_weights_(self): with torch.no_grad(): nn.init.zeros_(self.proj_l.weight) nn.init.zeros_(self.proj_l.bias) ``` proj_l.weight is all zero. ``` with torch.amp.autocast('cuda', dtype=self.dtype): o_l = self.proj_l(o_l) ``` so the result of o_l is always zero....
Hi, Do you plan to add variable-length support similar to what is available in FlashAttention and SageAttention? Thanks ! Valentin
Hello, I want to incorporate SLA into the video VAE network architecture. I reshape the 5D video tensor and input it into the SLA layer, but all values in the...
Hi I'm testing sla in the shape of(q/k/v = torch.Size([1, 5, 28520, 128]) torch.Size([1, 5, 28932, 128]) torch.Size([1, 5, 28932, 128])) while the output shape is torch.Size([1, 5, 28932, 128])...