Slackbot
04/17/2023, 5:49 AMAlvin Mao
04/17/2023, 5:52 AMTim Liu
04/17/2023, 7:06 PMSean
04/19/2023, 12:31 AMsave_model
.
https://docs.bentoml.org/en/latest/frameworks/tensorflow.html#saving-a-trained-modelAlvin Mao
04/19/2023, 12:36 AMTim Liu
04/19/2023, 9:21 PMAlvin Mao
04/19/2023, 9:52 PMBoth bentoml.keras and bentoml.tensorflow support Keras models. bentoml.keras utilizes the native model format and will give a better development experience to users who are more familiar with Keras models. However, the native model format of Keras is not optimized for production inference. There are known reports of memory leaks during serving time at the time of BentoML 1.0 release, so bentoml.tensorflow is recommended in production environments. You can read bentoml.tensorflow documentation for more information.
You can also convert a Keras model to ONNX model and use bentoml.onnx to serve in production. Refer bentoml.onnx documentation and tensorflow-onnx (tf2onnx) documentation for more information.
Alvin Mao
04/19/2023, 9:53 PMbut as Sean said I think you can get it working with tensorflow by potentially changing the signatures.ye I think so too