lucidrains / product-key-memory
Standalone Product Key Memory module in Pytorch - for augmenting Transformer models
☆78Updated 7 months ago
Alternatives and similar repositories for product-key-memory:
Users that are interested in product-key-memory are comparing it to the libraries listed below
- Implementation of Gated State Spaces, from the paper "Long Range Language Modeling via Gated State Spaces", in Pytorch☆99Updated 2 years ago
- Implementation of Token Shift GPT - An autoregressive model that solely relies on shifting the sequence space for mixing☆48Updated 3 years ago
- Efficient Transformers with Dynamic Token Pooling☆60Updated last year
- Implementation of GateLoop Transformer in Pytorch and Jax☆87Updated 8 months ago
- Implementation of Memformer, a Memory-augmented Transformer, in Pytorch☆112Updated 4 years ago
- ☆64Updated 6 months ago
- Implementation of Discrete Key / Value Bottleneck, in Pytorch☆87Updated last year
- ResiDual: Transformer with Dual Residual Connections, https://arxiv.org/abs/2304.14802☆93Updated last year
- ☆90Updated last year
- LayerNorm(SmallInit(Embedding)) in a Transformer to improve convergence☆60Updated 3 years ago
- ☆81Updated 7 months ago
- Experiments around a simple idea for inducing multiple hierarchical predictive model within a GPT☆209Updated 6 months ago
- Code Release for "Broken Neural Scaling Laws" (BNSL) paper☆58Updated last year
- Official Repository of Pretraining Without Attention (BiGS), BiGS is the first model to achieve BERT-level transfer learning on the GLUE …☆116Updated 11 months ago
- Explorations into the recently proposed Taylor Series Linear Attention☆94Updated 6 months ago
- Implementation of some personal helper functions for Einops, my most favorite tensor manipulation library ❤️☆53Updated 2 years ago
- Latent Diffusion Language Models☆68Updated last year
- Yet another random morning idea to be quickly tried and architecture shared if it works; to allow the transformer to pause for any amount…☆53Updated last year
- Another attempt at a long-context / efficient transformer by me☆37Updated 2 years ago
- Code for the paper "The Impact of Positional Encoding on Length Generalization in Transformers", NeurIPS 2023☆130Updated 10 months ago
- Implementation of a Transformer that Ponders, using the scheme from the PonderNet paper☆80Updated 3 years ago
- My explorations into editing the knowledge and memories of an attention network☆34Updated 2 years ago
- ☆95Updated last year
- Sequence Modeling with Structured State Spaces☆63Updated 2 years ago
- Official repository for the paper "Approximating Two-Layer Feedforward Networks for Efficient Transformers"☆36Updated last year
- Some personal experiments around routing tokens to different autoregressive attention, akin to mixture-of-experts☆116Updated 4 months 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
- Repository for the code of the "PPL-MCTS: Constrained Textual Generation Through Discriminator-Guided Decoding" paper, NAACL'22☆64Updated 2 years ago
- ☆51Updated 2 years ago
- ☆51Updated 8 months ago