Practical overview
When it fits
Use P Tuning when you want repository-based code and data for the named LAMA or few-shot SuperGLUE experiments and are prepared to follow the requirements in their respective subdirectories.
Who it is for
- Developers exploring prompt tuning for pretrained language models.
- Researchers reproducing or adapting the repository’s LAMA and few-shot SuperGLUE experiments.
Documented uses
- Prepare LAMA data in the repository’s specified data directory.
- Set up the documented few-shot SuperGLUE dataset in the project root.
- Use the project code and datasets as a starting point for language-model prompt-tuning experiments.
Requirements & limits
The public repository is licensed under MIT.
- Experiment requirements are organized in relevant subdirectories, so consult their README and requirement.txt files rather than assume one shared setup.
- The README specifies different dataset locations: ./data for LAMA and the project root for SuperGLUE.
- The repository identifies Python as its primary language; the supplied materials do not establish a public API or supported operating systems.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Prepare the LAMA or SuperGLUE experiment data
Place the named dataset in the repository location specified for its experiment.
Before you start
- The P Tuning repository
- The LAMA dataset or FewGLUE_32dev SuperGLUE dataset
- The relevant subdirectory README and requirement.txt for experiment details
Steps
Choose the LAMA or few-shot SuperGLUE (32-dev) experiment.
For LAMA, place its dataset in the project’s ./data directory.
For SuperGLUE, place the dataset in the project root.
Consult the relevant subdirectory README and requirement.txt for further experiment-specific instructions.
Expected outcome
The selected dataset is located where the repository README specifies, with the relevant documentation identified for the next experiment steps.
Guide limitations
- These instructions cover dataset placement and where to find experiment requirements; they do not provide a complete run command or guarantee an experiment result.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 17 October 2026
- Original website title
- THUDM/P-tuning · Official homepage title · retained in its source language

