Skip to content

Commit

Permalink
Update pretraining.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bojone authored Nov 24, 2019
1 parent bcf46f5 commit 169edbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pretraining/roberta/pretraining.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def mlm_acc(inputs):
'lr_schedule': lr_schedule,
'weight_decay_rate': weight_decay_rate,
'exclude_from_weight_decay': exclude_from_weight_decay,
'bias_correction': False,
}
if grad_accum_steps > 1:
OPT = extend_with_gradient_accumulation(OPT)
Expand Down

0 comments on commit 169edbb

Please sign in to comment.