Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Jun 15, 2024
1 parent 05258c9 commit 6ce7576
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lion_pytorch/foreach.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def step(
torch._foreach_lerp_(updates, grads, 1. - beta1)
torch._foreach_sign_(updates)

torch._foreach_add_(params, updates)
torch._foreach_add_(params, updates, alpha = -lr)

# decay momentum running average

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name = 'lion-pytorch',
packages = find_packages(exclude=[]),
version = '0.2.1',
version = '0.2.2',
license='MIT',
description = 'Lion Optimizer - Pytorch',
author = 'Phil Wang',
Expand Down

0 comments on commit 6ce7576

Please sign in to comment.