Skip to content

Commit

Permalink
temporary foreach disable
Browse files Browse the repository at this point in the history
  • Loading branch information
adefazio committed Apr 13, 2024
1 parent 9a9c134 commit c847fd5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion schedulefree/adamw_schedulefree.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(self,
warmup_steps=0,
r=0.0,
weight_lr_power=2.0,
foreach=True
foreach=False
):

defaults = dict(lr=lr,
Expand Down
2 changes: 1 addition & 1 deletion schedulefree/adamw_schedulefree_closure.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(self, params,
warmup_steps=0,
r=0,
weight_lr_power=2.0,
foreach=True
foreach=False
):
defaults = dict(lr=lr,
betas=betas,
Expand Down
2 changes: 1 addition & 1 deletion schedulefree/sgd_schedulefree.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self,
warmup_steps=0,
r=0.0,
weight_lr_power=2,
foreach=True,
foreach=False,
):
if lr < 0.0:
raise ValueError("Invalid learning rate: {}".format(lr))
Expand Down
2 changes: 1 addition & 1 deletion schedulefree/sgd_schedulefree_closure.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self,
warmup_steps=0,
r=0.0,
weight_lr_power=2.0,
foreach=True
foreach=False
):
if lr < 0.0:
raise ValueError("Invalid learning rate: {}".format(lr))
Expand Down

0 comments on commit c847fd5

Please sign in to comment.