lucidrains / memorizing-transformers-pytorch
Implementation of Memorizing Transformers (ICLR 2022), attention net augmented with indexing and retrieval of memories using approximate nearest neighbors, in Pytorch
☆625Updated last year
Related projects ⓘ
Alternatives and complementary repositories for memorizing-transformers-pytorch
- Implementation of RETRO, Deepmind's Retrieval based Attention net, in Pytorch☆852Updated last year
- Language Modeling with the H3 State Space Model☆514Updated last year
- Fast & Simple repository for pre-training and fine-tuning T5-style models☆970Updated 3 months ago
- Implementation of Recurrent Memory Transformer, Neurips 2022 paper, in Pytorch☆393Updated this week
- Convolutions for Sequence Modeling☆869Updated 5 months ago
- Experiments around a simple idea for inducing multiple hierarchical predictive model within a GPT☆205Updated 3 months ago
- Implementation of the conditionally routed attention in the CoLT5 architecture, in Pytorch☆226Updated 2 months ago
- Code for T-Few from "Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learning"☆431Updated last year
- Code for the ALiBi method for transformer language models (ICLR 2022)☆508Updated last year
- Public repo for the NeurIPS 2023 paper "Unlimiformer: Long-Range Transformers with Unlimited Length Input"☆1,055Updated 8 months ago
- Implementation of MEGABYTE, Predicting Million-byte Sequences with Multiscale Transformers, in Pytorch☆624Updated 2 months ago
- Implementation of the specific Transformer architecture from PaLM - Scaling Language Modeling with Pathways☆821Updated 2 years ago
- Ungreedy subword tokenizer and vocabulary trainer for Python, Go & Javascript☆551Updated 4 months ago
- ☆251Updated 2 years ago
- ☆454Updated last year
- Implementation of Block Recurrent Transformer - Pytorch☆213Updated 3 months ago
- A crude RLHF layer on top of nanoGPT with Gumbel-Softmax trick☆287Updated 11 months ago
- [NeurIPS 2023] MeZO: Fine-Tuning Language Models with Just Forward Passes. https://arxiv.org/abs/2305.17333☆1,046Updated 10 months ago
- Cramming the training of a (BERT-type) language model into limited compute.☆1,296Updated 5 months ago
- minLoRA: a minimal PyTorch library that allows you to apply LoRA to any PyTorch model.☆435Updated last year
- ☆334Updated 7 months ago
- The official implementation of “Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-training”☆939Updated 9 months ago
- Used for adaptive human in the loop evaluation of language and embedding models.☆304Updated last year
- Implementation of ST-Moe, the latest incarnation of MoE after years of research at Brain, in Pytorch☆293Updated 5 months ago
- Tools for understanding how transformer predictions are built layer-by-layer☆432Updated 5 months ago
- Mass-editing thousands of facts into a transformer memory (ICLR 2023)☆438Updated 9 months ago
- Task-based datasets, preprocessing, and evaluation for sequence models.☆561Updated this week
- Effortless plugin and play Optimizer to cut model training costs by 50%. New optimizer that is 2x faster than Adam on LLMs.☆378Updated 5 months ago
- Landmark Attention: Random-Access Infinite Context Length for Transformers☆416Updated 11 months ago