-
Notifications
You must be signed in to change notification settings - Fork 684
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
What is the status of nnx and TrainState? Are they compatible? #4609
Comments
To complicate things further, I just discovered https://flax.readthedocs.io/en/latest/api_reference/flax.nnx/helpers.html#flax.nnx.TrainState which is apparently different from https://flax.readthedocs.io/en/latest/api_reference/flax.training.html#flax.training.train_state.TrainState. |
There's also https://flax.readthedocs.io/en/latest/api_reference/flax.training.html#flax.training.train_state.TrainState but it does not mention |
Hey @samuela, |
My read from https://flax.readthedocs.io/en/latest/guides/linen_to_nnx.html#using-trainstate-in-flax-nnx, and specifically "In Flax NNX, [bundling parameters and optimizer] is not really necessary." was that TrainState is now obsolete. But perhaps this incorrect? |
I don't think that |
Looking at the nnx docs and example code, I am noticing that TrainState is conspicuously absent. Furthermore, the TrainState docstring still references the outdated linen API.
What's the word on the street on TrainState? Is it still relevant in a flax.nnx world?
The text was updated successfully, but these errors were encountered: