Skip to content

Commit 931d824

Browse files
committed
safety_factor set 1.05
Update muon.py Update muon.py
1 parent 16e1989 commit 931d824

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

modules/optimizer/muon.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
]
4545

4646
# safety factor for numerical stability (but exclude last polynomial )
47-
safety_factor = 1.01 # 'Dao-AILab/gram-newton-schulz' set 1.05
47+
# safety_factor = 1.01 # 'Dao-AILab/gram-newton-schulz' set 1.05
48+
safety_factor = 1.05
4849
POLAR_EXPRESS_COEFFICIENTS = [
4950
(a / safety_factor , b / safety_factor**3 , c / safety_factor**5)
5051
for (a, b, c) in _unmodified_polar_express_coefficients

0 commit comments

Comments
 (0)