
native-sparse-attention-pytorch
by lucidrains (personal account)
Implementation of the sparse attention pattern proposed by the Deepseek team in their "Native Sparse Attention" paper (description from the project’s GitHub page)
Repository facts
- Stars
- 816
- Forks
- 51
- Open issues and pull requests
- 12
- Primary language
- Python
- License
- MIT License (MIT)
- Owner
- lucidrains · Personal account
- Created
- Feb 19, 2025
- Last push
- Aug 15, 2025
Topics
Related projects
Projects that share this one’s GitHub topics.
Rank 7,676: svg-project/Sparse-VideoGen
[ICML2025, NeurIPS2025 Spotlight] Sparse VideoGen 1 & 2: Accelerating Video Diffusion Transformers with Sparse Attention
710 starsPythonApache-2.0Last push Jul 4, 2026
Rank 4,536: lucidrains/lambda-networks
Implementation of LambdaNetworks, a new approach to image recognition that reaches SOTA with less compute
1,530 starsPythonMITLast push Nov 18, 2020
Rank 4,804: lucidrains/transfusion-pytorch
Pytorch implementation of Transfusion, "Predict the Next Token and Diffuse Images with One Multi-Modal Model", from MetaAI
1,407 starsPythonMITLast push Sep 4, 2026
Rank 5,360: The-AI-Summer/self-attention-cv
Implementation of various self-attention mechanisms focused on computer vision. Ongoing repository.
1,214 starsPythonMITLast push Sep 14, 2021
Rank 5,476: lucidrains/performer-pytorch
An implementation of Performer, a linear attention-based transformer, in Pytorch
1,184 starsPythonMITLast push Feb 2, 2022
Rank 835: jadore801120/attention-is-all-you-need-pytorch
A PyTorch implementation of the Transformer model in "Attention is All You Need".
9,817 starsPythonMITLast push Apr 16, 2024