lucidrains / native-sparse-attention-pytorchLinks
Implementation of the sparse attention pattern proposed by the Deepseek team in their "Native Sparse Attention" paper
β791Updated 4 months ago
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
Sorting:
- π³ Efficient Triton implementations for "Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention"β952Updated 9 months ago
- [NeurIPS 2025 Spotlight] TPA: Tensor ProducT ATTenTion Transformer (T6) (https://arxiv.org/abs/2501.06425)β443Updated 3 weeks ago
- [ICLR 2025] Official PyTorch Implementation of Gated Delta Networks: Improving Mamba2 with Delta Ruleβ415Updated 3 months ago
- [ICLR2025 Spotlightπ₯] Official Implementation of TokenFormer: Rethinking Transformer Scaling with Tokenized Model Parametersβ581Updated 11 months ago
- Helpful tools and examples for working with flex-attentionβ1,105Updated this week
- H-Net: Hierarchical Network with Dynamic Chunkingβ800Updated last month
- Muon is an optimizer for hidden layers in neural networksβ2,179Updated last month
- Official JAX implementation of Learning to (Learn at Test Time): RNNs with Expressive Hidden Statesβ445Updated 2 months ago
- TransMLA: Multi-Head Latent Attention Is All You Need (NeurIPS 2025 Spotlight)β423Updated 3 months ago
- Muon is Scalable for LLM Trainingβ1,397Updated 5 months ago
- [ICLR 2025 Oral] Block Diffusion: Interpolating Between Autoregressive and Diffusion Language Modelsβ940Updated 6 months ago
- β304Updated 8 months ago
- Official PyTorch implementation of Learning to (Learn at Test Time): RNNs with Expressive Hidden Statesβ1,300Updated last year
- π₯ A minimal training framework for scaling FLA modelsβ333Updated last month
- Code for Adam-mini: Use Fewer Learning Rates To Gain More https://arxiv.org/abs/2406.16793β449Updated 8 months ago
- β575Updated 3 months ago
- Official implementation of "Fast-dLLM: Training-free Acceleration of Diffusion LLM by Enabling KV Cache and Parallel Decoding"β773Updated last month
- Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level Computation (NeurIPS 2025)β529Updated 3 months ago
- Quick implementation of nGPT, learning entirely on the hypersphere, from NvidiaAIβ294Updated 7 months ago
- Implementation of π Ring Attention, from Liu et al. at Berkeley AI, in Pytorchβ549Updated 7 months ago
- When it comes to optimizers, it's always better to be safe than sorryβ397Updated 3 months ago
- Efficient triton implementation of Native Sparse Attention.β258Updated 7 months ago
- The official implementation for [NeurIPS2025 Oral] Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sinkβ¦β772Updated 3 weeks ago
- Efficient LLM Inference over Long Sequencesβ393Updated 6 months ago
- Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Modelsβ338Updated 10 months ago
- [ICML2024 (Oral)] Official PyTorch implementation of DoRA: Weight-Decomposed Low-Rank Adaptationβ912Updated last year
- Ring attention implementation with flash attentionβ961Updated 4 months ago
- A Distributed Attention Towards Linear Scalability for Ultra-Long Context, Heterogeneous Data Trainingβ607Updated this week
- Official PyTorch implementation for ICLR2025 paper "Scaling up Masked Diffusion Models on Text"β353Updated last year
- β263Updated 7 months ago