Tree Prompting: Efficient Task Adaptation without Fine-Tuning, code for the Tree-prompt paper.
This repo contains code for reproducing experiments in the Tree-prompt paper. For a simple, easy-to-use interface, see https://github.com/csinva/tree-prompt.
tprompt
: contains main code for modeling (e.g. model architecture)experiments
: code for runnning experiments (e.g. loading data, training models, evaluating models)scripts
: scripts for running experiments (e.g. python scripts that launch jobs inexperiments
folder with different hyperparams)notebooks
: jupyter notebooks for analyzing results and making figurestests
: unit tests
- clone and run
pip install -e .
, resulting in a package namedtprompt
that can be imported- see
setup.py
for dependencies, not all are required
- see
- example run: run
python scripts/01_train_basic_models.py
(which callsexperiments/01_train_model.py
then view the results innotebooks/01_model_results.ipynb