This is a reproduction source code of Auto-Debias containing SEAT and GLUE.
python==3.7.10
numpy==1.21.5
torch==1.11.0
transformers==4.14.1
datasets==2.3.2
tqdm==4.64.0
dataclasses==0.8
scipy==1.7.3
scikit-learn==1.0.2
This environment is available in Ubuntu 20.04 LTS, and it is not tested on other OS.
git clone https://github.com/squiduu/auto-debias-reproduction.git
cd auto-debias-reproduction/
conda create -n auto_debias python==3.7.10
conda activate auto_debias
Install all of the above requirements after setup.
cd auto_debias/
bash generate_prompts.sh
You wil get the generated prompts file under ./data/debias/
bash auto_debias.sh
You will get the debiased checkpoint under ./auto_debias/out/
cd ../seat/
bash run_seat.sh
You will get the SEAT result under ./seat/out/
This is a single task trainer, so you have to manually fine-tune for each task.
cd ../glue/
bash run_glue.sh
You will get the GLUE result under ./glue/out/