-
Notifications
You must be signed in to change notification settings - Fork 139
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
How to save and restore a model with dynamic embeddings? #451
Comments
The same to me! When I load trained model from disk for incremental training, it will failed when I load model by the error log is
|
Sorry, TFRA is hard to support tf.keras.models.load_model API. Because load_model will create trainable variable object from TensorFlow, but TFRA trainable wrapper is not in TF code. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I am training a model with dynamic embeddings (specifically HvdAllToAllEmbeddings). I am saving the model to disk with
de.keras.models.de_save_model
and I see that it appears my dynamic embedding variables are saved to disk.However, when restoring from this directory it appears only the dense weights get restored. I am restoring with
model.load_weights(FLAGS.model_dir)
as shown hereAm I supposed to restore a KVCreator too?
The text was updated successfully, but these errors were encountered: