thunlp/OpenPrompt
An Open-Source Framework for Prompt-Learning.
Provides modular components—Templates and Verbalizers—that transform input text and map labels to vocabulary words, enabling prompt-based classification and generation on pre-trained language models from Hugging Face Transformers. Supports diverse prompting methods (templating, verbalizing, optimization strategies) under a unified API, with extensibility for custom prompt-learning implementations and multi-paradigm task adaptation (classification and generation).
4,837 stars and 727 monthly downloads. Used by 1 other package. No commits in the last 6 months. Available on PyPI.
Stars
4,837
Forks
486
Language
Python
License
Apache-2.0
Category
Last pushed
Jul 16, 2024
Monthly downloads
727
Commits (30d)
0
Dependencies
11
Reverse dependents
1
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/prompt-engineering/thunlp/OpenPrompt"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Compare
Related tools
promptfoo/promptfoo
Test your prompts, agents, and RAGs. Red teaming/pentesting/vulnerability scanning for AI....
bigscience-workshop/promptsource
Toolkit for creating, sharing and using natural language prompts.
dair-ai/Prompt-Engineering-Guide
🐙 Guides, papers, lessons, notebooks and resources for prompt engineering, context engineering,...
promptfoo/promptfoo-action
The GitHub Action for Promptfoo. Test your prompts, agents, and RAGs. AI Red teaming,...
LearnPrompt/LearnPrompt
永久免费开源的 AIGC 课程, 目前已支持Prompt Engineering, ChatGPT, Midjourney, Runway, Stable Diffusion,...