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
- Code for the ALiBi method for transformer language models (ICLR 2022)☆512Updated last year
- Implementation of Mega, the Single-head Attention with Multi-headed EMA architecture that currently holds SOTA on Long Range Arena☆204Updated last year
- An implementation of local windowed attention for language modeling☆408Updated last week
- Implementation of the conditionally routed attention in the CoLT5 architecture, in Pytorch☆225Updated 4 months ago
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆226Updated 2 years ago
- ☆136Updated last year
- Implementation of Gated State Spaces, from the paper "Long Range Language Modeling via Gated State Spaces", in Pytorch☆97Updated last year
- Implementation of Recurrent Memory Transformer, Neurips 2022 paper, in Pytorch☆403Updated 3 weeks ago
- ☆163Updated 2 years ago
- Implementation of Block Recurrent Transformer - Pytorch☆217Updated 5 months ago
- Recurrent Memory Transformer☆148Updated last year
- Randomized Positional Encodings Boost Length Generalization of Transformers☆79Updated 10 months ago
- An implementation of masked language modeling for Pytorch, made as concise and simple as possible☆178Updated last year
- ☆336Updated 9 months 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
- Experiments around a simple idea for inducing multiple hierarchical predictive model within a GPT☆205Updated 5 months ago
- Implementation of fused cosine similarity attention in the same style as Flash Attention☆210Updated last year
- FairSeq repo with Apollo optimizer☆109Updated last year
- Run Effective Large Batch Contrastive Learning Beyond GPU/TPU Memory Constraint☆371Updated 10 months ago
- Long Range Arena for Benchmarking Efficient Transformers☆740Updated last year
- Understand and test language model architectures on synthetic tasks.☆177Updated 2 weeks ago
- Implementation of Linformer for Pytorch☆262Updated last year
- ☆164Updated last year
- Implementation of Rotary Embeddings, from the Roformer paper, in Pytorch☆619Updated 2 months ago
- Code for the paper "The Impact of Positional Encoding on Length Generalization in Transformers", NeurIPS 2023☆130Updated 8 months ago
- Pytorch implementation of Compressive Transformers, from Deepmind☆155Updated 3 years ago
- Helpful tools and examples for working with flex-attention☆603Updated this week
- Efficient Transformers with Dynamic Token Pooling☆55Updated last year
- Implementation of ST-Moe, the latest incarnation of MoE after years of research at Brain, in Pytorch☆299Updated 7 months ago
- A simple and working implementation of Electra, the fastest way to pretrain language models from scratch, in Pytorch☆221Updated last year