Flax: How to save a model and then reuse in Flax? #2072
Answered
by
andsteing
varunsingh88
asked this question in
Q&A
-
Is there a way to save a trained model in Flax for using it later? I have found some solutions that aim at saving the model in a format that is suitable for import into tensorflow. But I am hoping to get a solution to save a Flax model and then re-use it in Flax. |
Beta Was this translation helpful? Give feedback.
Answered by
andsteing
Apr 27, 2022
Replies: 1 comment 5 replies
-
We usually use the module You can see usage in e.g. our flax/examples/imagenet/train.py Lines 197 to 206 in 02f53af |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
varunsingh88
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We usually use the module
flax.training.checkpoints
for this.You can see usage in e.g. our
examples/imagenet/train.py
:flax/examples/imagenet/train.py
Lines 197 to 206 in 02f53af