Hi !
I have been able to train a model using
trainer = TensorflowTrainer(...)
and call
result = trainer.fit()
everything works fine, now; when the model finished training, I need to actually load the trained model and serialize it using own code (since we have a model registry)
However, I didn’t find anywhere how to do it, especially in Ray’s official documentation. Those examples usually ends after result = trainer.fit()
If I use
result.checkpoint.load_model()
, it failed; saying i need to supply model argument in load_model
if I use
checkpoint = result.checkpoint
checkpoint.to_directory("/tmp/test_checkpoint")
self.model = keras.models.load_model("/tmp/test_checkpoint")
If failed also (saying there is no SavedModel in the folder)
We are using Ray 2.6.1. What is the documented way to get the trained model after calling trainer.fit()?
Thanks