Skip to content

Debiasing language models using parameter efficient fine tuning techniques

Notifications You must be signed in to change notification settings

sumit-agrwl/peft-debias

Repository files navigation

peft-debias

Debiasing language models using parameter efficient fine tuning techniques

This code requires adapter-transformers library.

pip install adapter-transformers

Running Upstream Intrinsic Experiments

bash run_upstream.sh pfeiffer 0 cda gender bias-bios

It requires peft (pfeiffer), gpu id (0), debias technique (cda), dataset (bias-bios)

Running Upstream Intrinsic Scores

bash run_upstream_scores.sh cda gender crows sft gender

Running Downstream Experiments

bash run_downstream.sh pfeiffer bias-bios $PATCH_PATH p cda

where $PATCH_PATH is the path of the patch/peft that we obtain during upstream.

Running Downstream Extrinsic Scores

bash run_downstream_scores.sh pfeiffer bias-bios cda gender

About

Debiasing language models using parameter efficient fine tuning techniques

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published