lucidrains / memformer
Implementation of Memformer, a Memory-augmented Transformer, in Pytorch
☆113Updated 4 years ago
Alternatives and similar repositories for memformer:
Users that are interested in memformer are comparing it to the libraries listed below
- Pytorch implementation of Compressive Transformers, from Deepmind☆156Updated 3 years ago
- Implementation of Gated State Spaces, from the paper "Long Range Language Modeling via Gated State Spaces", in Pytorch☆99Updated 2 years ago
- A variant of Transformer-XL where the memory is updated not with a queue, but with attention☆48Updated 4 years ago
- Implementation of Long-Short Transformer, combining local and global inductive biases for attention over long sequences, in Pytorch☆118Updated 3 years ago
- Implementation of a Transformer that Ponders, using the scheme from the PonderNet paper☆80Updated 3 years ago
- Standalone Product Key Memory module in Pytorch - for augmenting Transformer models☆78Updated 7 months ago
- Skyformer: Remodel Self-Attention with Gaussian Kernel and Nystr\"om Method (NeurIPS 2021)☆60Updated 2 years ago
- ☆64Updated 6 months ago
- code for Explicit Sparse Transformer☆60Updated last year
- ☆74Updated 4 years ago
- GPT, but made only out of MLPs☆88Updated 3 years ago
- FairSeq repo with Apollo optimizer☆110Updated last year
- ☆127Updated 2 years ago
- Official code repository of the paper Linear Transformers Are Secretly Fast Weight Programmers.☆103Updated 3 years ago
- Implementation of Feedback Transformer in Pytorch☆105Updated 4 years ago
- ☆33Updated 3 years ago
- Code for the paper PermuteFormer☆42Updated 3 years ago
- Code to reproduce the results for Compositional Attention☆60Updated 2 years ago
- Efficient Transformers with Dynamic Token Pooling☆60Updated last year
- Code for Multi-Head Attention: Collaborate Instead of Concatenate☆152Updated last year
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆225Updated 2 years ago
- The official repository for our paper "The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformers". We s…☆67Updated 2 years ago
- Another attempt at a long-context / efficient transformer by me☆37Updated 2 years ago
- ☆81Updated 7 months ago
- Implementation of Token Shift GPT - An autoregressive model that solely relies on shifting the sequence space for mixing☆48Updated 3 years ago
- Sequence Modeling with Structured State Spaces☆63Updated 2 years ago
- Sequence modeling with Mega.☆295Updated 2 years ago
- Language Quantized AutoEncoders☆102Updated 2 years ago
- [ICLR 2023] Official implementation of Transnormer in our ICLR 2023 paper - Toeplitz Neural Network for Sequence Modeling☆79Updated 10 months ago
- [NeurIPS 2022] Your Transformer May Not be as Powerful as You Expect (official implementation)☆34Updated last year