Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inject current learning rate to the optimizer state. Allow plotting the norm of any array in the train state. #63

Closed
wants to merge 0 commits into from

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Jan 5, 2023

Inject current learning rate to the optimizer state. Allow plotting the 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/.*/hyperparams/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',
]

@copybara-service copybara-service bot force-pushed the test_499588562 branch 2 times, most recently from 9ff0aed to 552f434 Compare January 9, 2023 13:36
@copybara-service copybara-service bot closed this Jan 9, 2023
@copybara-service copybara-service bot deleted the test_499588562 branch January 9, 2023 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants