BentoService API

BentoService

api

env

artifacts

ver

save

load

bentoml.load(bento_identifier: str, working_dir: Optional[str] = None)Service

Load a Service instance by the bento_identifier

A bento_identifier:str can be provided in three different forms:

  • Tag pointing to a Bento in local Bento store under BENTOML_HOME/bentos

  • File path to a Bento directory

  • “import_str” for loading a service instance from the working_dir

save_to_dir

load_from_dir