Slackbot
03/07/2023, 5:00 PMAaron Pham
03/07/2023, 8:28 PMBENTOML_HOME
environment.
Not sure what you mean by train and save Bento models within a docker container, but in terms of training models, its probably best to just train locally and then follow the workflow. See https://docs.bentoml.org/en/latest/tutorial.html for quick overview of the workflow. Sorry if I wasn’t able to answer all of your concern.Lennart Krauch
03/08/2023, 1:37 AMbentoml.models.export_model()
You could write to a mounted volume in your container and then use the exported model. It can be loaded into bentoml again. Alternatively, you can also build and export the bento inside the container. Like shown here.
Again to a shared mount and then later containerize it in a build container.