We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05258c9 commit 6ce7576Copy full SHA for 6ce7576
lion_pytorch/foreach.py
@@ -86,7 +86,7 @@ def step(
86
torch._foreach_lerp_(updates, grads, 1. - beta1)
87
torch._foreach_sign_(updates)
88
89
- torch._foreach_add_(params, updates)
+ torch._foreach_add_(params, updates, alpha = -lr)
90
91
# decay momentum running average
92
setup.py
@@ -3,7 +3,7 @@
3
setup(
4
name = 'lion-pytorch',
5
packages = find_packages(exclude=[]),
6
- version = '0.2.1',
+ version = '0.2.2',
7
license='MIT',
8
description = 'Lion Optimizer - Pytorch',
9
author = 'Phil Wang',
0 commit comments