facebookresearch / mega
Sequence modeling with Mega.
☆297Updated 2 years ago
Alternatives and similar repositories for mega:
Users that are interested in mega are comparing it to the libraries listed below
- Implementation of Mega, the Single-head Attention with Multi-headed EMA architecture that currently holds SOTA on Long Range Arena☆204Updated last year
- Implementation of the conditionally routed attention in the CoLT5 architecture, in Pytorch☆226Updated 5 months ago
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆225Updated 2 years ago
- Code for the ALiBi method for transformer language models (ICLR 2022)☆516Updated last year
- Implementation of Recurrent Memory Transformer, Neurips 2022 paper, in Pytorch☆408Updated last month
- ☆138Updated last year
- An implementation of local windowed attention for language modeling☆423Updated last month
- Implementation of fused cosine similarity attention in the same style as Flash Attention☆210Updated 2 years ago
- Recurrent Memory Transformer☆149Updated last year
- ☆338Updated 10 months ago
- Implementation of Gated State Spaces, from the paper "Long Range Language Modeling via Gated State Spaces", in Pytorch☆98Updated 2 years ago
- Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(n²) Memory"☆370Updated last year
- Implementation of Block Recurrent Transformer - Pytorch☆218Updated 6 months ago
- Implementation of ST-Moe, the latest incarnation of MoE after years of research at Brain, in Pytorch☆314Updated 8 months ago
- Experiments around a simple idea for inducing multiple hierarchical predictive model within a GPT☆208Updated 6 months ago
- Understand and test language model architectures on synthetic tasks.☆183Updated last month
- ☆200Updated 2 years ago
- FairSeq repo with Apollo optimizer☆110Updated last year
- Code for the paper "The Impact of Positional Encoding on Length Generalization in Transformers", NeurIPS 2023☆130Updated 10 months ago
- ☆163Updated 2 years ago
- ☆165Updated last year
- Long Range Arena for Benchmarking Efficient Transformers☆747Updated last year
- Implementation of https://srush.github.io/annotated-s4☆485Updated 2 years ago
- Randomized Positional Encodings Boost Length Generalization of Transformers☆79Updated 11 months ago
- Pytorch implementation of Compressive Transformers, from Deepmind☆156Updated 3 years ago
- Implementation of a Transformer, but completely in Triton☆259Updated 2 years ago
- Implementation of Memformer, a Memory-augmented Transformer, in Pytorch☆112Updated 4 years ago
- Implementation of Linformer for Pytorch☆270Updated last year
- An implementation of masked language modeling for Pytorch, made as concise and simple as possible☆178Updated last year
- Implementation of Rotary Embeddings, from the Roformer paper, in Pytorch☆645Updated 3 months ago