You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: lion_pytorch/foreach.py
+13-2
Original file line number
Diff line number
Diff line change
@@ -17,12 +17,16 @@ def __init__(
17
17
params,
18
18
lr: float=1e-4,
19
19
betas: Tuple[float, float] = (0.9, 0.99),
20
-
weight_decay: float=0.0
20
+
weight_decay: float=0.0,
21
+
decoupled_weight_decay: bool=False
21
22
):
22
23
assertlr>0.
23
24
assertall([0.<=beta<=1.forbetainbetas])
24
25
assertall([hasattr(torch, attr) forattrin ('_foreach_mul_', '_foreach_add_', '_foreach_sign_', '_foreach_lerp_')]), 'this version of torch does not have the prerequisite foreach functions'
0 commit comments