Skip to content

Commit

Permalink
Merge pull request PaddlePaddle#20 from huangxu96/fix_bug_Bert_loss_n…
Browse files Browse the repository at this point in the history
…oncoverage

fix a bug in fp16 training of BERT that will cause non-covergence.
  • Loading branch information
guoshengCS committed Feb 20, 2021
2 parents f7bd0ab + d709542 commit a4309db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/bert/run_pretrain_single.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def do_train(args):
p.name for n, p in model.named_parameters()
if not any(nd in n for nd in ["bias", "norm"])
],
multi_precision=args.use_pure_fp16)
multi_precision=False)
if args.use_amp:
custom_black_list = (['lookup_table', 'lookup_table_v2']
if args.use_pure_fp16 else None)
Expand Down

0 comments on commit a4309db

Please sign in to comment.