#33 · Primary category: NLP Tools & Text Processing

OpenPrompt

ai deep-learning natural-language-processing natural-language-understanding nlp nlp-library nlp-machine-learning pre-trained-language-models pre-trained-model prompt prompt-based-tuning prompt-learning prompt-toolkit prompts pytorch transformer

An Open-Source Framework for Prompt-Learning.

Project last updated:07/16/24

GitHub Stars

4.9K

Forks

476

Contributors

24

License

Apache-2.0

Why we included this project

OpenPrompt is a prompt-learning framework built on PyTorch and Hugging Face transformers. It keeps templates, the text you wrap around an input, separate from verbalizers, the mapping from label words to the model's vocabulary, so you can test a prompting idea without rewriting your experiment code. Swapping BERT for RoBERTa or T5 means changing the model argument, not the pipeline. The library comes with processors and a trainer for common NLP tasks, which is a real time-saver when you want to reproduce results from prompt-learning papers instead of building the scaffolding yourself. It also pairs with UltraChat for supervised instruction tuning, and it won the ACL 2022 Best Demo Paper Award. For teams comparing prompting strategies across several models, this is a practical foundation.

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