lucidrains / native-sparse-attention-pytorch
Implementation of the sparse attention pattern proposed by the Deepseek team in their "Native Sparse Attention" paper
β607Updated last month
Alternatives and similar repositories for native-sparse-attention-pytorch:
Users that are interested in native-sparse-attention-pytorch are comparing it to the libraries listed below
- π³ Efficient Triton implementations for "Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention"β647Updated last month
- Muon optimizer: +>30% sample efficiency with <3% wallclock overheadβ611Updated last month
- Code for Adam-mini: Use Fewer Learning Rates To Gain More https://arxiv.org/abs/2406.16793β409Updated 3 weeks ago
- [ICLR2025 Spotlightπ₯] Official Implementation of TokenFormer: Rethinking Transformer Scaling with Tokenized Model Parametersβ555Updated 2 months ago
- The official implementation of Tensor ProducT ATTenTion Transformer (T6)β367Updated 3 weeks ago
- Helpful tools and examples for working with flex-attentionβ757Updated this week
- π Efficient implementations of state-of-the-art linear attention models in Torch and Tritonβ2,357Updated this week
- β280Updated 2 weeks ago
- Quick implementation of nGPT, learning entirely on the hypersphere, from NvidiaAIβ281Updated last month
- Implementation of π Ring Attention, from Liu et al. at Berkeley AI, in Pytorchβ511Updated 6 months ago
- Muon is Scalable for LLM Trainingβ1,039Updated last month
- Official JAX implementation of Learning to (Learn at Test Time): RNNs with Expressive Hidden Statesβ409Updated 8 months ago
- Block Diffusion: Interpolating Between Autoregressive and Diffusion Language Modelsβ569Updated 3 weeks ago
- TransMLA: Multi-Head Latent Attention Is All You Needβ243Updated this week
- Ring attention implementation with flash attentionβ759Updated last month
- Efficient LLM Inference over Long Sequencesβ372Updated last week
- Pytorch implementation of Transfusion, "Predict the Next Token and Diffuse Images with One Multi-Modal Model", from MetaAIβ1,087Updated last month
- Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Modelsβ284Updated 2 months ago
- β436Updated 2 weeks ago
- [ICML2024 (Oral)] Official PyTorch implementation of DoRA: Weight-Decomposed Low-Rank Adaptationβ775Updated 7 months ago
- Simple and Effective Masked Diffusion Language Modelβ376Updated 3 weeks ago
- [NeurIPS 2024] Official Repository of The Mamba in the Llama: Distilling and Accelerating Hybrid Modelsβ215Updated this week
- [ICLR 2025] Official PyTorch Implementation of Gated Delta Networks: Improving Mamba2 with Delta Ruleβ160Updated last month
- Implementation of Rotary Embeddings, from the Roformer paper, in Pytorchβ671Updated 5 months ago
- A collection of tricks and tools to speed up transformer modelsβ157Updated last month
- Dream 7B, a large diffusion language modelβ613Updated this week
- Official PyTorch implementation of Learning to (Learn at Test Time): RNNs with Expressive Hidden Statesβ1,182Updated 9 months ago
- When it comes to optimizers, it's always better to be safe than sorryβ222Updated last month
- Unofficial implementation of Titans, SOTA memory for transformers, in Pytorchβ1,310Updated 3 weeks ago
- Implementation of Autoregressive Diffusion in Pytorchβ376Updated 6 months ago