lucidrains / native-sparse-attention-pytorch
Implementation of the sparse attention pattern proposed by the Deepseek team in their "Native Sparse Attention" paper
β588Updated 3 weeks 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
- π³ Efficient Triton implementations for "Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention"β621Updated 3 weeks ago
- [ICLR2025 Spotlightπ₯] Official Implementation of TokenFormer: Rethinking Transformer Scaling with Tokenized Model Parametersβ547Updated 2 months ago
- Muon optimizer: +>30% sample efficiency with <3% wallclock overheadβ575Updated 3 weeks ago
- The official implementation of Tensor ProducT ATTenTion Transformer (T6)β359Updated this week
- Helpful tools and examples for working with flex-attentionβ720Updated last week
- Code for Adam-mini: Use Fewer Learning Rates To Gain More https://arxiv.org/abs/2406.16793β404Updated this week
- π Efficient implementations of state-of-the-art linear attention models in Torch and Tritonβ2,287Updated this week
- Block Diffusion: Interpolating Between Autoregressive and Diffusion Language Modelsβ519Updated this week
- Implementation of π Ring Attention, from Liu et al. at Berkeley AI, in Pytorchβ510Updated 5 months ago
- TransMLA: Multi-Head Latent Attention Is All You Needβ231Updated last month
- Quick implementation of nGPT, learning entirely on the hypersphere, from NvidiaAIβ279Updated 3 weeks ago
- Muon is Scalable for LLM Trainingβ1,020Updated 3 weeks ago
- Normalized Transformer (nGPT)β167Updated 5 months ago
- β262Updated last month
- Ring attention implementation with flash attentionβ737Updated last week
- β418Updated this week
- Official JAX implementation of Learning to (Learn at Test Time): RNNs with Expressive Hidden Statesβ405Updated 8 months ago
- Efficient LLM Inference over Long Sequencesβ366Updated 2 months ago
- [ICLR 2025] Official PyTorch Implementation of Gated Delta Networks: Improving Mamba2 with Delta Ruleβ152Updated last month
- Pytorch implementation of Transfusion, "Predict the Next Token and Diffuse Images with One Multi-Modal Model", from MetaAIβ1,052Updated last month
- Simple and Effective Masked Diffusion Language Modelβ366Updated this week
- Memory layers use a trainable key-value lookup mechanism to add extra parameters to a model without increasing FLOPs. Conceptually, sparsβ¦β314Updated 4 months ago
- Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Modelsβ278Updated last month
- [ICML2024 (Oral)] Official PyTorch implementation of DoRA: Weight-Decomposed Low-Rank Adaptationβ763Updated 6 months ago
- A subset of PyTorch's neural network modules, written in Python using OpenAI's Triton.β530Updated this week
- When it comes to optimizers, it's always better to be safe than sorryβ217Updated 2 weeks ago
- Implementation of Rotary Embeddings, from the Roformer paper, in Pytorchβ665Updated 4 months ago
- Official PyTorch implementation of Learning to (Learn at Test Time): RNNs with Expressive Hidden Statesβ1,177Updated 9 months ago
- Large Context Attentionβ703Updated 2 months ago
- [ICML 2024 Best Paper] Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution (https://arxiv.org/abs/2310.16834)β552Updated last year