lucidrains / native-sparse-attention-pytorch
Implementation of the sparse attention pattern proposed by the Deepseek team in their "Native Sparse Attention" paper
β561Updated this week
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"β590Updated last week
- [ICLR2025 Spotlightπ₯] Official Implementation of TokenFormer: Rethinking Transformer Scaling with Tokenized Model Parametersβ539Updated last month
- The official implementation of Tensor ProducT ATTenTion Transformer (T6)β345Updated last month
- Muon optimizer: +>30% sample efficiency with <3% wallclock overheadβ521Updated 2 weeks ago
- β261Updated last month
- Muon is Scalable for LLM Trainingβ974Updated last month
- Implementation of π Ring Attention, from Liu et al. at Berkeley AI, in Pytorchβ506Updated 5 months ago
- Code for Adam-mini: Use Fewer Learning Rates To Gain More https://arxiv.org/abs/2406.16793β399Updated 3 months ago
- Helpful tools and examples for working with flex-attentionβ698Updated last week
- Efficient LLM Inference over Long Sequencesβ365Updated last month
- TransMLA: Multi-Head Latent Attention Is All You Needβ220Updated 3 weeks ago
- β396Updated this week
- π Efficient implementations of state-of-the-art linear attention models in Torch and Tritonβ2,144Updated this week
- Block Diffusion: Interpolating Between Autoregressive and Diffusion Language Modelsβ397Updated this week
- Ring attention implementation with flash attentionβ714Updated last month
- PyTorch implementation of Infini-Transformer from "Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentionβ¦β287Updated 10 months ago
- Quick implementation of nGPT, learning entirely on the hypersphere, from NvidiaAIβ276Updated last week
- Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Modelsβ272Updated last month
- [ECCV 2024] Official PyTorch implementation of RoPE-ViT "Rotary Position Embedding for Vision Transformer"β294Updated 3 months ago
- [ICLR 2025] Official PyTorch Implementation of Gated Delta Networks: Improving Mamba2 with Delta Ruleβ143Updated last week
- Official JAX implementation of Learning to (Learn at Test Time): RNNs with Expressive Hidden Statesβ399Updated 7 months ago
- Normalized Transformer (nGPT)β164Updated 4 months ago
- An Open-source RL System from ByteDance Seed and Tsinghua AIRβ767Updated last week
- Simple and Effective Masked Diffusion Language Modelβ348Updated 3 weeks ago
- [ICML2024 (Oral)] Official PyTorch implementation of DoRA: Weight-Decomposed Low-Rank Adaptationβ748Updated 5 months ago
- Memory layers use a trainable key-value lookup mechanism to add extra parameters to a model without increasing FLOPs. Conceptually, sparsβ¦β310Updated 3 months ago
- Implementation of Autoregressive Diffusion in Pytorchβ364Updated 4 months ago
- Code release for DynamicTanh (DyT)β710Updated last week
- Implementation of Rotary Embeddings, from the Roformer paper, in Pytorchβ651Updated 4 months ago
- Pytorch implementation of Transfusion, "Predict the Next Token and Diffuse Images with One Multi-Modal Model", from MetaAIβ985Updated last week