lucidrains / memformer
Implementation of Memformer, a Memory-augmented Transformer, in Pytorch
☆106Updated 4 years ago
Related projects ⓘ
Alternatives and complementary repositories for memformer
- A variant of Transformer-XL where the memory is updated not with a queue, but with attention☆46Updated 4 years ago
- Pytorch implementation of Compressive Transformers, from Deepmind☆155Updated 3 years ago
- Standalone Product Key Memory module in Pytorch - for augmenting Transformer models☆73Updated 3 months ago
- Implementation of Gated State Spaces, from the paper "Long Range Language Modeling via Gated State Spaces", in Pytorch☆95Updated last year
- Implementation of Long-Short Transformer, combining local and global inductive biases for attention over long sequences, in Pytorch☆116Updated 3 years ago
- GPT, but made only out of MLPs☆87Updated 3 years ago
- Implementation of a Transformer that Ponders, using the scheme from the PonderNet paper☆79Updated 3 years ago
- Skyformer: Remodel Self-Attention with Gaussian Kernel and Nystr\"om Method (NeurIPS 2021)☆59Updated 2 years ago
- Official code repository of the paper Linear Transformers Are Secretly Fast Weight Programmers.☆100Updated 3 years ago
- Code for the paper PermuteFormer☆42Updated 3 years ago
- ☆77Updated 3 months ago
- Another attempt at a long-context / efficient transformer by me☆37Updated 2 years ago
- Implementation of Token Shift GPT - An autoregressive model that solely relies on shifting the sequence space for mixing☆47Updated 2 years ago
- ☆72Updated 3 years ago
- Efficient Transformers with Dynamic Token Pooling☆55Updated last year
- Code to reproduce the results for Compositional Attention☆60Updated 2 years ago
- Code for Multi-Head Attention: Collaborate Instead of Concatenate☆151Updated last year
- The official repository for our paper "The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformers". We s…☆66Updated last year
- ☆65Updated 2 months ago
- ☆32Updated 3 years ago
- FairSeq repo with Apollo optimizer☆107Updated 11 months ago
- PyTorch code for "Perceiver-VL: Efficient Vision-and-Language Modeling with Iterative Latent Attention" (WACV 2023)☆32Updated last year
- Implementation of "compositional attention" from MILA, a multi-head attention variant that is reframed as a two-step attention process wi…☆50Updated 2 years ago
- Implementation of Memory-Compressed Attention, from the paper "Generating Wikipedia By Summarizing Long Sequences"☆71Updated last year
- Implementation of Multistream Transformers in Pytorch☆53Updated 3 years ago
- [ICML 2022] Latent Diffusion Energy-Based Model for Interpretable Text Modeling☆63Updated 2 years ago
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆222Updated 2 years ago
- ☆126Updated 2 years ago
- Fully featured implementation of Routing Transformer☆284Updated 3 years ago
- Unofficial PyTorch implementation of the paper "cosFormer: Rethinking Softmax In Attention".☆43Updated 3 years ago