Skip to content

Commit

Permalink
Update kron.py
Browse files Browse the repository at this point in the history
  • Loading branch information
evanatyourservice committed Dec 19, 2024
1 parent 3fa70ab commit b62963e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/levanter/optim/kron.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,10 @@ def _optimizer(learning_rate) -> optax.GradientTransformation:
components.append(optax.scale_by_learning_rate(learning_rate))
return optax.chain(*components)

return optax.inject_hyperparams(_optimizer)(
learning_rate=self.lr_scheduler(num_train_steps)
)
# return optax.inject_hyperparams(_optimizer)(
# learning_rate=self.lr_scheduler(num_train_steps)
# )
return _optimizer(self.lr_scheduler(num_train_steps))


from typing import Any, List, Optional, Union, Callable
Expand Down

0 comments on commit b62963e

Please sign in to comment.