{"adoption": {"forks": 212, "observed_at": "2026-08-28T04:06:11.402845+00:00", "stars": 2078}, "canonical_url": "https://ross.abutalabs.com/products/p-tuning-v2", "card": {"archived": false, "artifact_type": "library", "description": "An optimized deep prompt tuning strategy comparable to fine-tuning across scales and tasks", "domain": ["machine-learning", "deep-learning", "large-language-models"], "enriched": true, "function": ["machine-learning", "llm-training", "nlp"], "health_score": 20, "homepage": null, "language": "Python", "license": "Apache-2.0", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["THUDM/P-tuning-v2"], "name": "THUDM/P-tuning-v2", "platform": ["python"], "pushed_at": "2023-11-16T04:38:09+00:00", "repo": "THUDM/P-tuning-v2", "stars": 2078, "tags": ["prompt-tuning", "parameter-efficient-fine-tuning", "p-tuning", "prefix-tuning", "research-code", "pytorch", "pretrained-language-models", "natural-language-processing", "linux", "gpu"], "topics": ["natural-language-processing", "prompt-tuning", "pretrained-language-model", "p-tuning", "parameter-efficient-learning"], "urls": [], "use_cases": ["fine-tune BERT or RoBERTa with frozen backbone weights using trainable prompts", "adapt pretrained language models to sequence tagging tasks cheaply", "reproduce the P-Tuning v2 paper results on consumer GPUs", "run hyperparameter search for prompt tuning configurations", "train parameter-efficient neural text retrievers", "tune GLM models without full fine-tuning"], "what_it_is": "P-tuning v2 is a Python implementation of deep prompt tuning, applying trainable continuous prompts at every transformer layer so prompt tuning matches full fine-tuning performance on small/medium models and hard tasks like sequence tagging. It accompanies the ACL 2022 paper and includes reproduction scripts, hyperparameter search tooling, and a text retrieval variant.", "when_to_avoid": ["you need a maintained production training framework with broad model support", "you want LoRA or other newer PEFT methods with active ecosystem support", "you need full fine-tuning rather than prompt-based adaptation", "you require up-to-date compatibility with recent PyTorch and transformer versions"], "when_to_choose": ["you want parameter-efficient tuning comparable to full fine-tuning on small/medium models", "you need to reproduce the ACL 2022 P-Tuning v2 experiments", "GPU memory is limited and freezing the backbone is acceptable", "you work with sequence tagging or SuperGLUE-style NLU tasks"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/p-tuning-v2", "repo": "THUDM/P-tuning-v2", "role": "main", "score": 32}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:06:11.402845+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T02:56:05.901864+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "acb936cbbc5bf97ae8e2985d776d0782f1c3e1d52fce6d9dfa1514cf0d3feebc", "fetched_at": "2026-08-28T04:06:11.402845+00:00", "kind": "readme", "missing": false, "url": "https://github.com/THUDM/P-tuning-v2"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:06:11.402845+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T02:56:05.901864+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "acb936cbbc5bf97ae8e2985d776d0782f1c3e1d52fce6d9dfa1514cf0d3feebc", "fetched_at": "2026-08-28T04:06:11.402845+00:00", "kind": "readme", "missing": false, "url": "https://github.com/THUDM/P-tuning-v2"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T02:56:05.901864+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "acb936cbbc5bf97ae8e2985d776d0782f1c3e1d52fce6d9dfa1514cf0d3feebc", "fetched_at": "2026-08-28T04:06:11.402845+00:00", "kind": "readme", "missing": false, "url": "https://github.com/THUDM/P-tuning-v2"}], "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:06:11.402845+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:06:11.402845+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:06:11.402845+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T02:56:05.901864+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "acb936cbbc5bf97ae8e2985d776d0782f1c3e1d52fce6d9dfa1514cf0d3feebc", "fetched_at": "2026-08-28T04:06:11.402845+00:00", "kind": "readme", "missing": false, "url": "https://github.com/THUDM/P-tuning-v2"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:06:11.402845+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:06:11.402845+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T02:56:05.901864+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "acb936cbbc5bf97ae8e2985d776d0782f1c3e1d52fce6d9dfa1514cf0d3feebc", "fetched_at": "2026-08-28T04:06:11.402845+00:00", "kind": "readme", "missing": false, "url": "https://github.com/THUDM/P-tuning-v2"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:06:11.402845+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:06:11.402845+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:06:11.402845+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T02:56:05.901864+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "acb936cbbc5bf97ae8e2985d776d0782f1c3e1d52fce6d9dfa1514cf0d3feebc", "fetched_at": "2026-08-28T04:06:11.402845+00:00", "kind": "readme", "missing": false, "url": "https://github.com/THUDM/P-tuning-v2"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:06:11.402845+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:06:11.402845+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T02:56:05.901864+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "acb936cbbc5bf97ae8e2985d776d0782f1c3e1d52fce6d9dfa1514cf0d3feebc", "fetched_at": "2026-08-28T04:06:11.402845+00:00", "kind": "readme", "missing": false, "url": "https://github.com/THUDM/P-tuning-v2"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T02:56:05.901864+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "acb936cbbc5bf97ae8e2985d776d0782f1c3e1d52fce6d9dfa1514cf0d3feebc", "fetched_at": "2026-08-28T04:06:11.402845+00:00", "kind": "readme", "missing": false, "url": "https://github.com/THUDM/P-tuning-v2"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T02:56:05.901864+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "acb936cbbc5bf97ae8e2985d776d0782f1c3e1d52fce6d9dfa1514cf0d3feebc", "fetched_at": "2026-08-28T04:06:11.402845+00:00", "kind": "readme", "missing": false, "url": "https://github.com/THUDM/P-tuning-v2"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T02:56:05.901864+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "acb936cbbc5bf97ae8e2985d776d0782f1c3e1d52fce6d9dfa1514cf0d3feebc", "fetched_at": "2026-08-28T04:06:11.402845+00:00", "kind": "readme", "missing": false, "url": "https://github.com/THUDM/P-tuning-v2"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": ["no_releases"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 1784, "days_push": 1021, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 32, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}