Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Enable bias correction in AdamW when fine-tuning BERT
Browse files Browse the repository at this point in the history
Mosbach, Marius, Maksym Andriushchenko, and Dietrich Klakow. "On the Stability of Fine-tuning BERT: Misconceptions, Explanations, and Strong Baselines." arXiv preprint arXiv:2006.04884 (2020).

Zhang, Tianyi, et al. "Revisiting Few-sample BERT Fine-tuning." arXiv preprint arXiv:2006.05987 (2020).
  • Loading branch information
leezu committed Jan 7, 2021
1 parent def0d70 commit 52ce2a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/question_answering/run_squad.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ def train(args):
optimizer_params.update({'beta1': adam_betas[0],
'beta2': adam_betas[1],
'epsilon': args.adam_epsilon,
'correct_bias': False,
'correct_bias': True,
})
elif args.optimizer == 'adam':
optimizer_params.update({'beta1': adam_betas[0],
Expand Down

0 comments on commit 52ce2a4

Please sign in to comment.