Skip to content

Commit bbbecbe

Browse files
committed
cleanup, readme, and release
1 parent 5e05d83 commit bbbecbe

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Implementation of the proposed <a href="https://arxiv.org/abs/2407.05872">Adam-a
66

77
A multi-million dollar paper out of google deepmind proposes a small change to Adam update rule (using `atan2`) to remove the epsilon altogether for numerical stability and scale invariance
88

9+
It also contains some features for improving plasticity (continual learning field)
10+
911
## Install
1012

1113
```bash

adam_atan2_pytorch/adam_atan2.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ def __init__(
2020
betas: tuple[float, float] = (0.9, 0.99),
2121
weight_decay = 0.,
2222
regen_reg_rate = 0.,
23-
wasserstein_reg = False,
2423
decoupled_wd = False,
2524
a = 1.27,
2625
b = 1.
@@ -41,7 +40,6 @@ def __init__(
4140
b = b,
4241
weight_decay = weight_decay,
4342
regen_reg_rate = regen_reg_rate,
44-
wasserstein_reg = wasserstein_reg,
4543
)
4644

4745
super().__init__(params, defaults)
@@ -60,7 +58,7 @@ def step(
6058
for group in self.param_groups:
6159
for p in filter(lambda p: exists(p.grad), group['params']):
6260

63-
grad, lr, wd, regen_rate, wasserstein_reg, beta1, beta2, a, b, state, init_lr = p.grad, group['lr'], group['weight_decay'], group['regen_reg_rate'], group['wasserstein_reg'], *group['betas'], group['a'], group['b'], self.state[p], self._init_lr
61+
grad, lr, wd, regen_rate, beta1, beta2, a, b, state, init_lr = p.grad, group['lr'], group['weight_decay'], group['regen_reg_rate'], *group['betas'], group['a'], group['b'], self.state[p], self._init_lr
6462

6563
# maybe decoupled weight decay
6664

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "adam-atan2-pytorch"
3-
version = "0.0.15"
3+
version = "0.1.0"
44
description = "Adam-atan2 for Pytorch"
55
authors = [
66
{ name = "Phil Wang", email = "lucidrains@gmail.com" }

0 commit comments

Comments
 (0)