#77 · Primary category: Prompt Engineering Tools

autoprompt

evaluation language-model nlp

AutoPrompt: Automatic Prompt Construction for Masked Language Models.

Project last updated:07/17/26

GitHub Stars

641

Forks

86

Contributors

9

License

Apache-2.0

Why we included this project

AutoPrompt is the reference implementation of the method described in the EMNLP 2020 paper of the same name. Rather than hand-writing templates, it uses a gradient-guided search to learn trigger tokens for a task and then fills a [MASK] slot to make predictions. The repo includes runnable scripts for sentiment analysis, natural language inference, fact retrieval, and relation extraction, with command-line examples and label-token selection utilities. It is research code, not a maintained library: you will need to create a conda environment, pull datasets from a Google Drive link, and hook up the LAMA evaluation harness yourself. For teams reproducing published results or exploring prompt-based few-shot methods, it is a solid place to see how automatic prompt construction actually works.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category