McGill-NLP / length-generalization
Code for the paper "The Impact of Positional Encoding on Length Generalization in Transformers", NeurIPS 2023
☆130Updated 9 months ago
Alternatives and similar repositories for length-generalization:
Users that are interested in length-generalization are comparing it to the libraries listed below
- Code repository for the c-BTM paper☆105Updated last year
- ☆51Updated 9 months ago
- [NeurIPS 2023] Learning Transformer Programs☆157Updated 8 months ago
- ☆72Updated 9 months ago
- [AAAI 2024] Investigating the Effectiveness of Task-Agnostic Prefix Prompt for Instruction Following☆79Updated 5 months ago
- ☆160Updated last year
- This is the implementation of the paper AdaMix: Mixture-of-Adaptations for Parameter-efficient Model Tuning (https://arxiv.org/abs/2205.1…☆127Updated last year
- ☆44Updated last year
- Understand and test language model architectures on synthetic tasks.☆181Updated last month
- Repository for the code of the "PPL-MCTS: Constrained Textual Generation Through Discriminator-Guided Decoding" paper, NAACL'22☆64Updated 2 years ago
- The original implementation of Min et al. "Nonparametric Masked Language Modeling" (paper https//arxiv.org/abs/2212.01349)☆157Updated 2 years ago
- Multipack distributed sampler for fast padding-free training of LLMs☆184Updated 6 months ago
- Code for Zero-Shot Tokenizer Transfer☆120Updated last month
- Efficient Transformers with Dynamic Token Pooling☆58Updated last year
- some common Huggingface transformers in maximal update parametrization (µP)☆78Updated 2 years ago
- Randomized Positional Encodings Boost Length Generalization of Transformers☆79Updated 11 months ago
- [ICLR 2023] Guess the Instruction! Flipped Learning Makes Language Models Stronger Zero-Shot Learners☆113Updated 5 months ago
- A framework for few-shot evaluation of autoregressive language models.☆24Updated last year
- The accompanying code for "Transformer Feed-Forward Layers Are Key-Value Memories". Mor Geva, Roei Schuster, Jonathan Berant, and Omer Le…☆89Updated 3 years ago
- Self-Alignment with Principle-Following Reward Models☆154Updated 11 months ago
- 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
- Inspecting and Editing Knowledge Representations in Language Models☆112Updated last year
- Language models scale reliably with over-training and on downstream tasks☆96Updated 10 months ago
- This is a repository for "PMET: Precise Model Editing in a Transformer"☆49Updated last year
- Large language models (LLMs) made easy, EasyLM is a one stop solution for pre-training, finetuning, evaluating and serving LLMs in JAX/Fl…☆65Updated 6 months ago
- A repository for transformer critique learning and generation☆88Updated last year
- ☆34Updated 10 months ago
- A fusion of a linear layer and a cross entropy loss, written for pytorch in triton.☆62Updated 6 months ago
- ☆39Updated 6 months ago
- Recurrent Memory Transformer☆149Updated last year