{"adoption": {"forks": 476, "observed_at": "2026-08-28T04:09:01.997105+00:00", "stars": 4890}, "canonical_url": "https://ross.abutalabs.com/products/openprompt", "card": {"archived": false, "artifact_type": "library", "description": "An Open-Source Framework for Prompt-Learning.", "domain": ["machine-learning", "deep-learning", "large-language-models"], "enriched": true, "function": ["machine-learning", "nlp", "prompt-engineering", "llm-training"], "health_score": 20, "homepage": "https://thunlp.github.io/OpenPrompt/", "language": "Python", "license": "Apache-2.0", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["thunlp/OpenPrompt"], "name": "thunlp/OpenPrompt", "platform": ["python", "cross-platform"], "pushed_at": "2024-07-16T03:48:08+00:00", "repo": "thunlp/OpenPrompt", "stars": 4890, "tags": ["prompt-learning", "pytorch", "pre-trained-language-models", "prompt-tuning", "huggingface-transformers", "few-shot-learning", "natural-language-processing"], "topics": ["nlp", "pre-trained-language-models", "ai", "nlp-machine-learning", "natural-language-processing", "natural-language-understanding", "deep-learning", "pre-trained-model", "nlp-library", "pytorch", "transformer", "prompt", "prompt-toolkit", "prompts", "prompt-based-tuning", "prompt-learning"], "urls": [], "use_cases": ["apply prompt-based tuning to pre-trained language models", "run few-shot text classification with templates and verbalizers", "adapt BERT or T5 to downstream NLP tasks via prompting", "experiment with manual and soft prompt templates in PyTorch", "do supervised instruction tuning for a chat model", "benchmark prompt-learning methods on SuperGLUE"], "what_it_is": "OpenPrompt is a PyTorch-based open-source framework for prompt-learning, providing a standard, flexible pipeline of templates and verbalizers to adapt pre-trained language models to downstream NLP tasks. It loads PLMs directly from Hugging Face transformers and supports manual, soft, prefix-tuning, and generation-style prompting.", "when_to_avoid": ["you need modern LLM fine-tuning with LoRA/PEFT or chat-style inference rather than classic prompt-learning", "you want a library with frequent updates and current model support", "you just need prompt engineering for an LLM API without training"], "when_to_choose": ["you want a research-grade, extensible framework for prompt-learning pipelines", "your models come from Hugging Face transformers and you need template/verbalizer abstractions", "you need few-shot classification or generation paradigms over PLMs"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/openprompt", "repo": "thunlp/OpenPrompt", "role": "main", "score": 23}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:09:01.997105+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T18:18:11.898584+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "024707da6eeb960d04fa04dc4e6aab9ebec96885f0fc5866da0e047919b95a86", "fetched_at": "2026-08-28T04:09:01.997105+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thunlp/OpenPrompt"}, {"content_hash": "fe25b877f87e245df1e3e5a4cd3ba59912d8ea7817deac079a70758a78830026", "fetched_at": "2026-08-29T09:00:26.229681+00:00", "kind": "homepage", "missing": false, "url": "https://thunlp.github.io/OpenPrompt/"}, {"content_hash": "c22ccbb37ae7d68cc6293acd0b3714e4955a7adabc00a81dd36f03a1bcf76b82", "fetched_at": "2026-08-29T09:00:26.238991+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/openprompt/json"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:09:01.997105+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T18:18:11.898584+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "024707da6eeb960d04fa04dc4e6aab9ebec96885f0fc5866da0e047919b95a86", "fetched_at": "2026-08-28T04:09:01.997105+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thunlp/OpenPrompt"}, {"content_hash": "fe25b877f87e245df1e3e5a4cd3ba59912d8ea7817deac079a70758a78830026", "fetched_at": "2026-08-29T09:00:26.229681+00:00", "kind": "homepage", "missing": false, "url": "https://thunlp.github.io/OpenPrompt/"}, {"content_hash": "c22ccbb37ae7d68cc6293acd0b3714e4955a7adabc00a81dd36f03a1bcf76b82", "fetched_at": "2026-08-29T09:00:26.238991+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/openprompt/json"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T18:18:11.898584+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "024707da6eeb960d04fa04dc4e6aab9ebec96885f0fc5866da0e047919b95a86", "fetched_at": "2026-08-28T04:09:01.997105+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thunlp/OpenPrompt"}, {"content_hash": "fe25b877f87e245df1e3e5a4cd3ba59912d8ea7817deac079a70758a78830026", "fetched_at": "2026-08-29T09:00:26.229681+00:00", "kind": "homepage", "missing": false, "url": "https://thunlp.github.io/OpenPrompt/"}, {"content_hash": "c22ccbb37ae7d68cc6293acd0b3714e4955a7adabc00a81dd36f03a1bcf76b82", "fetched_at": "2026-08-29T09:00:26.238991+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/openprompt/json"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:09:01.997105+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:09:01.997105+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:09:01.997105+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T18:18:11.898584+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "024707da6eeb960d04fa04dc4e6aab9ebec96885f0fc5866da0e047919b95a86", "fetched_at": "2026-08-28T04:09:01.997105+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thunlp/OpenPrompt"}, {"content_hash": "fe25b877f87e245df1e3e5a4cd3ba59912d8ea7817deac079a70758a78830026", "fetched_at": "2026-08-29T09:00:26.229681+00:00", "kind": "homepage", "missing": false, "url": "https://thunlp.github.io/OpenPrompt/"}, {"content_hash": "c22ccbb37ae7d68cc6293acd0b3714e4955a7adabc00a81dd36f03a1bcf76b82", "fetched_at": "2026-08-29T09:00:26.238991+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/openprompt/json"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:09:01.997105+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:09:01.997105+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T18:18:11.898584+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "024707da6eeb960d04fa04dc4e6aab9ebec96885f0fc5866da0e047919b95a86", "fetched_at": "2026-08-28T04:09:01.997105+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thunlp/OpenPrompt"}, {"content_hash": "fe25b877f87e245df1e3e5a4cd3ba59912d8ea7817deac079a70758a78830026", "fetched_at": "2026-08-29T09:00:26.229681+00:00", "kind": "homepage", "missing": false, "url": "https://thunlp.github.io/OpenPrompt/"}, {"content_hash": "c22ccbb37ae7d68cc6293acd0b3714e4955a7adabc00a81dd36f03a1bcf76b82", "fetched_at": "2026-08-29T09:00:26.238991+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/openprompt/json"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:09:01.997105+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:09:01.997105+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:09:01.997105+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T18:18:11.898584+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "024707da6eeb960d04fa04dc4e6aab9ebec96885f0fc5866da0e047919b95a86", "fetched_at": "2026-08-28T04:09:01.997105+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thunlp/OpenPrompt"}, {"content_hash": "fe25b877f87e245df1e3e5a4cd3ba59912d8ea7817deac079a70758a78830026", "fetched_at": "2026-08-29T09:00:26.229681+00:00", "kind": "homepage", "missing": false, "url": "https://thunlp.github.io/OpenPrompt/"}, {"content_hash": "c22ccbb37ae7d68cc6293acd0b3714e4955a7adabc00a81dd36f03a1bcf76b82", "fetched_at": "2026-08-29T09:00:26.238991+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/openprompt/json"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:09:01.997105+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:09:01.997105+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T18:18:11.898584+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "024707da6eeb960d04fa04dc4e6aab9ebec96885f0fc5866da0e047919b95a86", "fetched_at": "2026-08-28T04:09:01.997105+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thunlp/OpenPrompt"}, {"content_hash": "fe25b877f87e245df1e3e5a4cd3ba59912d8ea7817deac079a70758a78830026", "fetched_at": "2026-08-29T09:00:26.229681+00:00", "kind": "homepage", "missing": false, "url": "https://thunlp.github.io/OpenPrompt/"}, {"content_hash": "c22ccbb37ae7d68cc6293acd0b3714e4955a7adabc00a81dd36f03a1bcf76b82", "fetched_at": "2026-08-29T09:00:26.238991+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/openprompt/json"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T18:18:11.898584+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "024707da6eeb960d04fa04dc4e6aab9ebec96885f0fc5866da0e047919b95a86", "fetched_at": "2026-08-28T04:09:01.997105+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thunlp/OpenPrompt"}, {"content_hash": "fe25b877f87e245df1e3e5a4cd3ba59912d8ea7817deac079a70758a78830026", "fetched_at": "2026-08-29T09:00:26.229681+00:00", "kind": "homepage", "missing": false, "url": "https://thunlp.github.io/OpenPrompt/"}, {"content_hash": "c22ccbb37ae7d68cc6293acd0b3714e4955a7adabc00a81dd36f03a1bcf76b82", "fetched_at": "2026-08-29T09:00:26.238991+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/openprompt/json"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T18:18:11.898584+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "024707da6eeb960d04fa04dc4e6aab9ebec96885f0fc5866da0e047919b95a86", "fetched_at": "2026-08-28T04:09:01.997105+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thunlp/OpenPrompt"}, {"content_hash": "fe25b877f87e245df1e3e5a4cd3ba59912d8ea7817deac079a70758a78830026", "fetched_at": "2026-08-29T09:00:26.229681+00:00", "kind": "homepage", "missing": false, "url": "https://thunlp.github.io/OpenPrompt/"}, {"content_hash": "c22ccbb37ae7d68cc6293acd0b3714e4955a7adabc00a81dd36f03a1bcf76b82", "fetched_at": "2026-08-29T09:00:26.238991+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/openprompt/json"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T18:18:11.898584+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "024707da6eeb960d04fa04dc4e6aab9ebec96885f0fc5866da0e047919b95a86", "fetched_at": "2026-08-28T04:09:01.997105+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thunlp/OpenPrompt"}, {"content_hash": "fe25b877f87e245df1e3e5a4cd3ba59912d8ea7817deac079a70758a78830026", "fetched_at": "2026-08-29T09:00:26.229681+00:00", "kind": "homepage", "missing": false, "url": "https://thunlp.github.io/OpenPrompt/"}, {"content_hash": "c22ccbb37ae7d68cc6293acd0b3714e4955a7adabc00a81dd36f03a1bcf76b82", "fetched_at": "2026-08-29T09:00:26.238991+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/openprompt/json"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 8}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 1798, "days_push": 778, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 23, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}