thunlp/OpenPrompt

An Open-Source Framework for Prompt-Learning.

63
/ 100
Established

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.

Stale 6m
Maintenance 0 / 25
Adoption 18 / 25
Maturity 25 / 25
Community 20 / 25

How are scores calculated?

Stars

4,837

Forks

486

Language

Python

License

Apache-2.0

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.