piotrpiekos / MoSALinks
User-friendly implementation of the Mixture-of-Sparse-Attention (MoSA). MoSA selects distinct tokens for each head with expert choice routing providing a content-based sparse attention mechanism.
☆27Updated 5 months ago
Alternatives and similar repositories for MoSA
Users that are interested in MoSA are comparing it to the libraries listed below
Sorting:
- [NeurIPS 2023 spotlight] Official implementation of HGRN in our NeurIPS 2023 paper - Hierarchically Gated Recurrent Neural Network for Se…☆65Updated last year
- HGRN2: Gated Linear RNNs with State Expansion☆55Updated last year
- ☆86Updated last year
- Here we will test various linear attention designs.☆61Updated last year
- Code for NeurIPS 2024 Spotlight: "Scaling Laws and Compute-Optimal Training Beyond Fixed Training Durations"☆84Updated 11 months ago
- ☆34Updated 7 months ago
- DPO, but faster 🚀☆45Updated 10 months ago
- Linear Attention Sequence Parallelism (LASP)☆87Updated last year
- [ICLR 2023] "Sparse MoE as the New Dropout: Scaling Dense and Self-Slimmable Transformers" by Tianlong Chen*, Zhenyu Zhang*, Ajay Jaiswal…☆55Updated 2 years ago
- [NAACL 2025] A Closer Look into Mixture-of-Experts in Large Language Models☆55Updated 8 months ago
- Official implementation of the ICML 2024 paper RoSA (Robust Adaptation)☆44Updated last year
- Official repository of paper "RNNs Are Not Transformers (Yet): The Key Bottleneck on In-context Retrieval"☆27Updated last year
- ☆56Updated last year
- ☆19Updated 9 months ago
- ☆33Updated last year
- DeciMamba: Exploring the Length Extrapolation Potential of Mamba (ICLR 2025)☆31Updated 6 months ago
- The this is the official implementation of "DAPE: Data-Adaptive Positional Encoding for Length Extrapolation"☆39Updated last year
- Official repository for the paper "SwitchHead: Accelerating Transformers with Mixture-of-Experts Attention"☆99Updated last year
- ☆19Updated 3 years ago
- [EMNLP 2022] Official implementation of Transnormer in our EMNLP 2022 paper - The Devil in Linear Transformer☆63Updated 2 years ago
- Using FlexAttention to compute attention with different masking patterns☆47Updated last year
- This is a simple torch implementation of the high performance Multi-Query Attention☆15Updated 2 years ago
- ☆25Updated 2 months ago
- [ICLR 2025 & COLM 2025] Official PyTorch implementation of the Forgetting Transformer and Adaptive Computation Pruning☆131Updated last month
- Official code for the paper "Attention as a Hypernetwork"☆44Updated last year
- Stick-breaking attention☆61Updated 3 months ago
- Code for the paper "Cottention: Linear Transformers With Cosine Attention"☆20Updated last year
- Awesome Triton Resources☆36Updated 6 months ago
- Xmixers: A collection of SOTA efficient token/channel mixers☆29Updated last month
- From GaLore to WeLore: How Low-Rank Weights Non-uniformly Emerge from Low-Rank Gradients. Ajay Jaiswal, Lu Yin, Zhenyu Zhang, Shiwei Liu,…☆51Updated 6 months ago