thunlp / KnowledgeablePromptTuning

kpt code
206 stars 21 forks source link

Could you please narrate the reproduce procedure in more detail? #3

Closed meiling-fdu closed 2 years ago

ShengdingHu commented 2 years ago

git clone git@github.com:thunlp/KnowledgeablePromptTuning.git
cd KnowledgeablePromptTuning
git clone git@github.com:thunlp/OpenPrompt.git
cd OpenPrompt
python setup.py develop # you may need to install pytorch and sklearn if you start with a clean virtual env.
cd datasets
bash download_text_classification.sh
cd ../../
bash scripts/run_fewshot.sh