ersilia.hub.fetch.pack.bentoml_pack package¶
Submodules¶
ersilia.hub.fetch.pack.bentoml_pack.mode module¶
- class ersilia.hub.fetch.pack.bentoml_pack.mode.PackModeDecision(model_id: str, config_json: dict)[source]¶
Bases:
ErsiliaBase
A class used to decide the packaging mode for a model.
- model_id¶
ID of the model.
- Type:
str
- config_json¶
Configuration settings in JSON format.
- Type:
dict
- decide_from_config_file_if_available()[source]¶
Decide the packaging mode from the config file if available.
ersilia.hub.fetch.pack.bentoml_pack.runners module¶
- class ersilia.hub.fetch.pack.bentoml_pack.runners.CondaPack(model_id, config_json)[source]¶
Bases:
BasePack
A class used to pack models with Conda environments.
- run()¶
Run the Conda environment packer.
- run(**kwargs)¶
- class ersilia.hub.fetch.pack.bentoml_pack.runners.DockerPack(model_id, config_json)[source]¶
Bases:
BasePack
A class used to pack models with Docker.
- class ersilia.hub.fetch.pack.bentoml_pack.runners.SystemPack(model_id, config_json)[source]¶
Bases:
BasePack
A class used to pack models with system installation.
Examples
packer = SystemPack( model_id="eosxxxx", config_json=config ) packer.run()