facebookresearch / megaLinks
Sequence modeling with Mega.
☆300Updated 2 years ago
Alternatives and similar repositories for mega
Users that are interested in mega are comparing it to the libraries listed below
Sorting:
- Implementation of Mega, the Single-head Attention with Multi-headed EMA architecture that currently holds SOTA on Long Range Arena☆206Updated 2 years ago
- Code for the ALiBi method for transformer language models (ICLR 2022)☆544Updated last year
- Implementation of the conditionally routed attention in the CoLT5 architecture, in Pytorch☆230Updated last year
- Randomized Positional Encodings Boost Length Generalization of Transformers☆82Updated last year
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆228Updated 3 years ago
- FairSeq repo with Apollo optimizer☆114Updated last year
- An implementation of local windowed attention for language modeling☆483Updated 3 months ago
- ☆164Updated 2 years ago
- Recurrent Memory Transformer☆151Updated 2 years ago
- Implementation of Gated State Spaces, from the paper "Long Range Language Modeling via Gated State Spaces", in Pytorch☆101Updated 2 years ago
- Implementation of Block Recurrent Transformer - Pytorch☆221Updated last year
- ☆257Updated 4 months ago
- Code for the paper "The Impact of Positional Encoding on Length Generalization in Transformers", NeurIPS 2023☆136Updated last year
- An implementation of masked language modeling for Pytorch, made as concise and simple as possible☆179Updated 2 years ago
- Pytorch implementation of Compressive Transformers, from Deepmind☆162Updated 4 years ago
- Implementation of fused cosine similarity attention in the same style as Flash Attention☆217Updated 2 years ago
- Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(n²) Memory"☆383Updated 2 years ago
- ☆362Updated last year
- Experiments around a simple idea for inducing multiple hierarchical predictive model within a GPT☆222Updated last year
- Implementation of Linformer for Pytorch☆299Updated last year
- Implementation of Memformer, a Memory-augmented Transformer, in Pytorch☆123Updated 4 years ago
- Implementation of ST-Moe, the latest incarnation of MoE after years of research at Brain, in Pytorch☆363Updated last year
- Fully featured implementation of Routing Transformer☆296Updated 3 years ago
- This is the implementation of the paper AdaMix: Mixture-of-Adaptations for Parameter-efficient Model Tuning (https://arxiv.org/abs/2205.1…☆135Updated 2 years ago
- Unofficial PyTorch Implementation for pNLP-Mixer: an Efficient all-MLP Architecture for Language (https://arxiv.org/abs/2202.04350)☆64Updated 3 years ago
- Efficient Transformers with Dynamic Token Pooling☆64Updated 2 years ago
- Implementation of Recurrent Memory Transformer, Neurips 2022 paper, in Pytorch☆417Updated 9 months ago
- ☆209Updated 3 years ago
- Memory Efficient Attention (O(sqrt(n)) for Jax and PyTorch☆182Updated 2 years ago
- Root Mean Square Layer Normalization☆256Updated 2 years ago