Skip to content

Commit

Permalink
fix fairseq weight decay
Browse files Browse the repository at this point in the history
  • Loading branch information
alexholdenmiller committed Aug 12, 2019
1 parent 55ab71b commit dd8d9d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions parlai/agents/fairseq/fairseq.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ def add_cmdline_args(cls, argparser):

# one last time, restore any user set defaults
argparser.set_defaults(**old_defaults)
# default weight decay in fairseq is zero not None
argparser.set_defaults(weight_decay=0.0)

@staticmethod
def dictionary_class():
Expand Down

0 comments on commit dd8d9d3

Please sign in to comment.