facebookresearch / mega
Sequence modeling with Mega.
☆298Updated last year
Related projects ⓘ
Alternatives and complementary repositories for mega
- Code for the ALiBi method for transformer language models (ICLR 2022)☆507Updated last year
- Implementation of Mega, the Single-head Attention with Multi-headed EMA architecture that currently holds SOTA on Long Range Arena☆203Updated last year
- Implementation of the conditionally routed attention in the CoLT5 architecture, in Pytorch☆225Updated 2 months ago
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆222Updated 2 years ago
- An implementation of local windowed attention for language modeling☆384Updated 2 months ago
- ☆164Updated last year
- Implementation of ST-Moe, the latest incarnation of MoE after years of research at Brain, in Pytorch☆293Updated 5 months ago
- ☆132Updated last year
- Implementation of Recurrent Memory Transformer, Neurips 2022 paper, in Pytorch☆394Updated this week
- Implementation of Block Recurrent Transformer - Pytorch☆213Updated 3 months ago
- Implementation of Gated State Spaces, from the paper "Long Range Language Modeling via Gated State Spaces", in Pytorch☆95Updated last year
- Understand and test language model architectures on synthetic tasks.☆162Updated 6 months ago
- Implementation of https://srush.github.io/annotated-s4☆469Updated last year
- Recurrent Memory Transformer☆149Updated last year
- Long Range Arena for Benchmarking Efficient Transformers☆729Updated 11 months ago
- Implementation of Rotary Embeddings, from the Roformer paper, in Pytorch☆571Updated last week
- Implementation of fused cosine similarity attention in the same style as Flash Attention☆207Updated last year
- Sequence Modeling with Structured State Spaces☆60Updated 2 years ago
- Implementation of Linformer for Pytorch☆257Updated 10 months ago
- Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(n²) Memory"☆360Updated last year
- Code for the paper "The Impact of Positional Encoding on Length Generalization in Transformers", NeurIPS 2023☆127Updated 6 months ago
- Code for exploring Based models from "Simple linear attention language models balance the recall-throughput tradeoff"☆214Updated 3 months ago
- Efficient Transformers with Dynamic Token Pooling☆54Updated last year
- Experiments around a simple idea for inducing multiple hierarchical predictive model within a GPT☆205Updated 3 months ago
- Pytorch implementation of Compressive Transformers, from Deepmind☆157Updated 3 years ago
- FairSeq repo with Apollo optimizer☆107Updated 11 months ago
- An implementation of masked language modeling for Pytorch, made as concise and simple as possible☆177Updated last year
- ☆334Updated 7 months ago
- [ICLR 2022] Official implementation of cosformer-attention in cosFormer: Rethinking Softmax in Attention☆179Updated last year
- Run Effective Large Batch Contrastive Learning Beyond GPU/TPU Memory Constraint☆361Updated 7 months ago