Skip to content

Comments

NNX TrainState and unit tests#3024

Open
xibinliu wants to merge 1 commit intoxibin/nnx_1from
xibin/nnx_2
Open

NNX TrainState and unit tests#3024
xibinliu wants to merge 1 commit intoxibin/nnx_1from
xibin/nnx_2

Conversation

@xibinliu
Copy link
Collaborator

Description

Start with a short description of what the PR does and how this is a change from
the past.

A TrainState for NNX, which includes model and optimizer Unit tests include checkpoint tests:

  • restore a saved state
  • convert linen TrainState to NNX TrainState
  • Parameter only restore (no opt_state)

Tests

All unit tests passed.

Checklist

Before submitting this PR, please make sure (put X in square brackets):

  • I have performed a self-review of my code. For an optional AI review, add the gemini-review label.
  • I have necessary comments in my code, particularly in hard-to-understand areas.
  • I have run end-to-end tests tests and provided workload links above if applicable.
  • I have made or will make corresponding changes to the doc if needed, including adding new documentation pages to the relevant Table of Contents (toctree directive) as explained in our documentation.

A TrainState for NNX, which includes model and optimizer
Unit tests include checkpoint tests:
- restore a saved state
- convert linen TrainState to NNX TrainState
- Parameter only restore (no opt_state)
@codecov
Copy link

codecov bot commented Jan 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

1 participant