Skip to content

Commit b3aedbf

Browse files
committed
they claim synergistic effect with weight decay
1 parent d80a693 commit b3aedbf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ model = nn.Linear(10, 1)
2424

2525
from grokfast_pytorch import GrokFastAdamW
2626

27-
opt = GrokFastAdamW(model.parameters(), lr = 1e-4)
27+
opt = GrokFastAdamW(
28+
model.parameters(),
29+
lr = 1e-4,
30+
weight_decay = 0.1
31+
)
2832

2933
# forward and backwards
3034

0 commit comments

Comments
 (0)