Skip to content

Recommended serialization tools? #543

Answered by jheek
jiawen asked this question in Q&A
Discussion options

You must be logged in to vote

Hi jiawen thanks for your interest in Flax.

For serialization we make a distinction between two different strategies: checkpointing & exporting.
The former is what the serialization api is for. ONNX and tflite is what we consider exporting formats. This means they don't just store the state but also the actual model such that it can be run standalone.

Currently, Jax and by extension Flax don't have a goto solution for exporting a model. However, there is an experimental api in Jax to convert a model to TensorFlow https://github.com/google/jax/tree/master/jax/experimental/jax2tf which can then be saved as a tf.SavedModel. A SavedModel is what goes into the tflite converter. I don't think t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jiawen
Comment options

Answer selected by jiawen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants