Skip to content

Commit

Permalink
Revert "Update kron.py"
Browse files Browse the repository at this point in the history
This reverts commit b62963e.
  • Loading branch information
evanatyourservice committed Dec 19, 2024
1 parent b62963e commit 5bafdcf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/levanter/optim/kron.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,9 @@ 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 _optimizer(self.lr_scheduler(num_train_steps))
return optax.inject_hyperparams(_optimizer)(
learning_rate=self.lr_scheduler(num_train_steps)
)


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

0 comments on commit 5bafdcf

Please sign in to comment.