Skip to content

Commit

Permalink
Pop eps for lion optimizer
Browse files Browse the repository at this point in the history
  • Loading branch information
rwightman committed May 21, 2023
1 parent 9fcc019 commit 7cea88e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions timm/optim/optim_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ def create_optimizer_v2(
elif opt_lower == 'rmsproptf':
optimizer = RMSpropTF(parameters, alpha=0.9, momentum=momentum, **opt_args)
elif opt_lower == 'lion':
opt_args.pop('eps', None)
optimizer = Lion(parameters, **opt_args)

# second order
Expand Down

0 comments on commit 7cea88e

Please sign in to comment.