Skip to content

Commit a1376f1

Browse files
committed
also skip grokfast logic if lamb == 0
1 parent 79d2dfd commit a1376f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

grokfast_pytorch/grokfast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def step(
9494

9595
# should grokfast
9696

97-
should_grokfast = grokfast and steps > grokfast_after_step
97+
should_grokfast = grokfast and steps > grokfast_after_step and lamb > 0
9898

9999
# take care of grok fast if turned on
100100

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "grokfast-pytorch"
3-
version = "0.0.1"
3+
version = "0.0.2"
44
description = "Grokfast"
55
authors = [
66
{ name = "Phil Wang", email = "lucidrains@gmail.com" }

0 commit comments

Comments
 (0)