Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
1710763616 committed Oct 18, 2022
1 parent 4bd5b55 commit 34fedb3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,18 @@ The following example add and train a debias adapter in the BERT-large of BERTSc
cd Metric-Fairness/mitigating_bias/train/BERTScore
mkdir ./logs
pip install -r requirements.txt
INPUT_PATH= train.tsv # your dataset path
bash train_bert_score_bert_large.sh
INPUT_PATH= train.tsv # your training set path
python train_BERTScore.py
--model_type bert-large-uncased \
--adapter_name debiased-bertscore \
--lr 5e-4 \
--warmup 0.0 \
--batch_size 16 \
--n_epochs 4 \
--seed 42 \
--device cuda \
--logging_steps 100 \
--data_path ${INPUT_PATH}
```


Expand Down
11 changes: 0 additions & 11 deletions mitigating_bias/train/BERTScore/train_bert_score_bert_large.sh

This file was deleted.

0 comments on commit 34fedb3

Please sign in to comment.