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

Enable bias correction in AdamW when fine-tuning BERT #1468

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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