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 inexperimentsfolder with different hyperparams)notebooks: jupyter notebooks for analyzing results and making figurestests: unit tests
- clone and run
pip install -e ., resulting in a package namedtpromptthat can be imported- see
setup.pyfor dependencies, not all are required
- see
- example run: run
python scripts/01_train_basic_models.py(which callsexperiments/01_train_model.pythen view the results innotebooks/01_model_results.ipynb