Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
blahBlahhhJ committed Apr 29, 2024
1 parent e74cd02 commit 173454d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/levanter/optim/schedulefree_sophia.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def _do_update():
# EMAs of hessian
nu = update_moment(new_hess, state.h, b2, 1)
return ScaleBySophiaState(
count=state.count, hessian_count=state.hessian_count + 1, mu=state.mu, h=nu, hess_key=next_key
count=state.count, hessian_count=state.hessian_count + 1, z=state.z, h=nu, hess_key=next_key
)

def _dont_update():
Expand Down

0 comments on commit 173454d

Please sign in to comment.