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

[nnx] improve Optimizer metadata propagation #4180

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

cgarciae
Copy link
Collaborator

@cgarciae cgarciae commented Sep 8, 2024

Changes

  • Creates two new OptState subtypes OptArray and OptVariable.
  • Improves Optimizer to properly propagate sharding metadata from model to opt_state by wrapping VariableState leaves in OptVariable.
  • Small cleanups to nnx.with_partitioning and Optimizer.

@copybara-service copybara-service bot merged commit 671130b into main Sep 9, 2024
18 checks passed
@copybara-service copybara-service bot deleted the nnx-fix-optimizer branch September 9, 2024 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants