Skip to content

Commit

Permalink
Fix betas bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Skylion007 committed Mar 1, 2024
1 parent 7003793 commit 88f5518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/benchmarks/bert/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def build_optimizer(cfg, model):
if cfg.name == 'decoupled_adamw':
return DecoupledAdamW(model.parameters(),
lr=cfg.lr,
betas=cfg.betas,
betas=list(cfg.betas),
eps=cfg.eps,
weight_decay=cfg.weight_decay)
else:
Expand Down

0 comments on commit 88f5518

Please sign in to comment.