neulab / knn-transformers
PyTorch + HuggingFace code for RetoMaton: "Neuro-Symbolic Language Modeling with Automaton-augmented Retrieval" (ICML 2022), including an implementation of kNN-LM and kNN-MT
☆272Updated 2 years ago
Alternatives and similar repositories for knn-transformers:
Users that are interested in knn-transformers are comparing it to the libraries listed below
- ☆316Updated 3 years ago
- Code for Editing Factual Knowledge in Language Models☆136Updated 3 years ago
- code associated with ACL 2021 DExperts paper☆114Updated last year
- ☆124Updated last week
- ☆172Updated 6 months ago
- The official code of EMNLP 2022, "SCROLLS: Standardized CompaRison Over Long Language Sequences".☆70Updated last year
- An original implementation of "MetaICL Learning to Learn In Context" by Sewon Min, Mike Lewis, Luke Zettlemoyer and Hannaneh Hajishirzi☆258Updated last year
- A framework for few-shot evaluation of autoregressive language models.☆102Updated last year
- The original implementation of Min et al. "Nonparametric Masked Language Modeling" (paper https//arxiv.org/abs/2212.01349)☆157Updated 2 years ago
- contrastive decoding☆190Updated 2 years ago
- ☆173Updated 2 years ago
- Automatic metrics for GEM tasks☆63Updated 2 years ago
- Scalable training for dense retrieval models.☆273Updated last year
- ☆81Updated last year
- [ICML 2023] Code for our paper “Compositional Exemplars for In-context Learning”.☆96Updated last year
- ☆85Updated 2 years ago
- Tk-Instruct is a Transformer model that is tuned to solve many NLP tasks by following instructions.☆180Updated 2 years ago
- Package to compute Mauve, a similarity score between neural text and human text. Install with `pip install mauve-text`.☆279Updated 6 months ago
- ☆75Updated last year
- This repository contains the code for "Self-Diagnosis and Self-Debiasing: A Proposal for Reducing Corpus-Based Bias in NLP".☆87Updated 3 years ago
- Train Dense Passage Retriever (DPR) with a single GPU☆130Updated 3 years ago
- An original implementation of "Noisy Channel Language Model Prompting for Few-Shot Text Classification"☆131Updated 2 years ago
- Code for paper "CrossFit : A Few-shot Learning Challenge for Cross-task Generalization in NLP" (https://arxiv.org/abs/2104.08835)☆109Updated 2 years ago
- Implementation of "The Power of Scale for Parameter-Efficient Prompt Tuning"☆164Updated 3 years ago
- This repository accompanies our paper “Do Prompt-Based Models Really Understand the Meaning of Their Prompts?”☆85Updated 2 years ago
- Code and models for the paper "Questions Are All You Need to Train a Dense Passage Retriever (TACL 2023)"☆62Updated 2 years ago
- MEND: Fast Model Editing at Scale☆241Updated last year
- Codebase, data and models for the SummaC paper in TACL☆87Updated 3 weeks ago
- Official code and model checkpoints for our EMNLP 2022 paper "RankGen - Improving Text Generation with Large Ranking Models" (https://arx…☆136Updated last year
- Inspecting and Editing Knowledge Representations in Language Models☆112Updated last year