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.
☆23Updated 3 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…☆66Updated last year
- [ICLR 2023] "Sparse MoE as the New Dropout: Scaling Dense and Self-Slimmable Transformers" by Tianlong Chen*, Zhenyu Zhang*, Ajay Jaiswal…☆53Updated 2 years ago
- HGRN2: Gated Linear RNNs with State Expansion☆55Updated 11 months ago
- Here we will test various linear attention designs.☆62Updated last year
- Linear Attention Sequence Parallelism (LASP)☆85Updated last year
- DeciMamba: Exploring the Length Extrapolation Potential of Mamba (ICLR 2025)☆28Updated 3 months ago
- ☆23Updated last week
- Implementation of Infini-Transformer in Pytorch☆111Updated 7 months ago
- A repository for DenseSSMs☆88Updated last year
- ☆34Updated 4 months ago
- Official repository of paper "RNNs Are Not Transformers (Yet): The Key Bottleneck on In-context Retrieval"☆27Updated last year
- [EMNLP 2022] Official implementation of Transnormer in our EMNLP 2022 paper - The Devil in Linear Transformer☆61Updated 2 years ago
- [ICML 2024] When Linear Attention Meets Autoregressive Decoding: Towards More Effective and Efficient Linearized Large Language Models☆33Updated last year
- Code for the paper "Cottention: Linear Transformers With Cosine Attention"☆17Updated 9 months ago
- ☆56Updated last year
- ☆33Updated last year
- ☆81Updated last year
- Code for NeurIPS 2024 Spotlight: "Scaling Laws and Compute-Optimal Training Beyond Fixed Training Durations"☆81Updated 9 months ago
- Triton implement of bi-directional (non-causal) linear attention☆52Updated 6 months ago
- [ICLR 2025] Official PyTorch implementation of "Forgetting Transformer: Softmax Attention with a Forget Gate"☆118Updated last month
- ☆14Updated 7 months ago
- Stick-breaking attention☆58Updated last month
- [NAACL 2025] A Closer Look into Mixture-of-Experts in Large Language Models☆52Updated 5 months ago
- The this is the official implementation of "DAPE: Data-Adaptive Positional Encoding for Length Extrapolation"☆38Updated 9 months ago
- ☆19Updated 2 years ago
- Xmixers: A collection of SOTA efficient token/channel mixers☆11Updated 3 weeks ago
- [ICLR 2023] Official implementation of Transnormer in our ICLR 2023 paper - Toeplitz Neural Network for Sequence Modeling☆79Updated last year
- MambaFormer in-context learning experiments and implementation for https://arxiv.org/abs/2402.04248☆55Updated last year
- This is a simple torch implementation of the high performance Multi-Query Attention☆16Updated last year
- Official Code Repository for the paper "Key-value memory in the brain"☆27Updated 5 months ago