thunlp/OpenPrompt
A PyTorch framework for prompt-learning, enabling template-based and verbalizer-based fine-tuning of pre-trained language models.

Velocity · 7d
+2.8
★ / day
Trend
→steady
star history
OpenPrompt provides a unified, modular framework for prompt-based learning with pre-trained language models such as BERT, T5, ERNIE, and OPT. It implements templating, verbalization, and prompt engineering abstractions that let researchers configure prompt pipelines programmatically. The framework supports classification, generation, and instruction-tuning paradigms, and integrates with PaddlePaddle for ERNIE models.