Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inject current learning rate to the optimizer state. Allow plotting t…
…he norm of any array in the train state. We can now plot the norm of current parameter values, the learning rate or any other array part of the optimizer state: ``` config.plot_norm_train_state_patterns = [ # norm of the kernel params in MoE layers. 'params/.*/moe/mlp/.*/kernel', # norm (=value) of current learning rate. 'opt_state/.*/hyperparameter/learning_rate', # norm of 1st order moments of the kernel gradients in MoE layers (i.e. Adam inner state). 'opt_state/.*/mu/.*/moe/mlp/.*/kernel', ] ``` PiperOrigin-RevId: 499588562
- Loading branch information
1 parent
fcf81b0
commit 9ff0aed
Showing
2 changed files
with
33 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters