This is the official repo for our paper: Post-training for Efficient Communication via Convention Formation
Yilun Hua, Evan Wang, and Yoav Artzi
This repo requires python>=3.11.
To run model training, please install trl and peft via pip install -r post_train_efficiency/requirements.txt
To run evaluation, in the same environment as training, run pip install -r post_train_efficiency/requirements.eval.txt
For open-sourced models, you will need a huggingface account to accept their terms and conditions. Please check the respective pages of Gemma and Llama on huggingface. For proprietary models, you will need API access for them. Please refer to their websites and documentions for API access.
The post_train_efficiency/post-train folder provides the python scripts and example command for data processing and running the two training stages.
See post_train_efficiency/refgame_eval for running the text-only reference game evaluation.
See post_train_efficiency/doc_grounded_eval for running the document-grounded evaluation.