This repository constains code for our paper for fairness in text generation (AISTATS 2023).
The code is programmed with python3.8 and pytorch1.7.0. After installing transformers, please replace this file in the original repository with the provided modeling_gpt2.py.
To run code, you can
pip install requirements
bash run.sh