Skip to content

squiduu/auto-debias-reproduction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto-Debias

This is a reproduction source code of Auto-Debias containing SEAT and GLUE.

Requirements

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

Setup

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.

Debiasing

Generating biased prompts

cd auto_debias/
bash generate_prompts.sh

You wil get the generated prompts file under ./data/debias/

Debiasing models

bash auto_debias.sh

You will get the debiased checkpoint under ./auto_debias/out/

Evaluation

SEAT

cd ../seat/
bash run_seat.sh

You will get the SEAT result under ./seat/out/

GLUE

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/

About

A reproduction of Auto-Debias containing SEAT and GLUE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published