Skip to content

Commit 6ce7576

Browse files
committed
oops
1 parent 05258c9 commit 6ce7576

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lion_pytorch/foreach.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def step(
8686
torch._foreach_lerp_(updates, grads, 1. - beta1)
8787
torch._foreach_sign_(updates)
8888

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

9191
# decay momentum running average
9292

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
setup(
44
name = 'lion-pytorch',
55
packages = find_packages(exclude=[]),
6-
version = '0.2.1',
6+
version = '0.2.2',
77
license='MIT',
88
description = 'Lion Optimizer - Pytorch',
99
author = 'Phil Wang',

0 commit comments

Comments
 (0)