THUDM/P-tuning-v2
An optimized deep prompt tuning strategy comparable to fine-tuning across scales and tasks observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 1784
- days_rel: n/a
- days_push: 1021
- n_releases_24m: 0
Adoption not part of the score
2078 stars · 212 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
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.
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
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
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
Facets
library · maturity maintenance
machine-learning llm-training nlp machine-learning deep-learning large-language-models python prompt-tuning parameter-efficient-fine-tuning p-tuning prefix-tuning research-code pytorch pretrained-language-models natural-language-processing linux gpu
1 source
- readme: https://github.com/THUDM/P-tuning-v2 · fetched 2026-08-28 · acb936cbbc5b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| THUDM/P-tuning-v2 | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="THUDM/P-tuning-v2")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem