-
Hi, I create a simple ML service with BentoML using the sample described on BentoML quickstart (simple IrisClassifer with a random forest algorithm). Is it correct? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@Berna4 yes there's a slim image you can use, see documentation here: https://docs.bentoml.org/en/latest/concepts.html?highlight=slim#using-other-docker-base-images Unlike the default debian based docker image, you will need to use your python version and bentoml version to find the right slim docker image to use, e.g.: @env(docker_base_image="bentoml/model-server:0.12.0-slim-py37")
@artifacts([SklearnModelArtifact('model')])
class ExamplePredictionService(BentoService):
...``` |
Beta Was this translation helpful? Give feedback.
@Berna4 yes there's a slim image you can use, see documentation here: https://docs.bentoml.org/en/latest/concepts.html?highlight=slim#using-other-docker-base-images
Unlike the default debian based docker image, you will need to use your python version and bentoml version to find the right slim docker image to use, e.g.: