Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Packages ML models into portable BentoML services with OpenAPI endpoints, containerization, and deployment to Kubernetes or major clouds.
Use this skill ↓68% 77%+9 ptsof test cases passed
Passed 17 of 22 test cases with the skill, and 15 of 22 without it.
3 of 3 safety checks passed
Not used yet
BentoML packages ML models with service definitions, dependencies, environment config, and deployment targets into a portable "Bento." Deploy to Kubernetes (Kserve, Seldon), AWS SageMaker, GCP Vertex AI, or as a standalone Docker container.
uv pip install bentoml
import bentoml
from bentoml.io import JSON
import numpy as np
iris_clf = bentoml.sklearn.get("iris_model:latest")
@bentoml.service
class IrisClassifier:
def __init__(self):
self.model = iris_clf.to_runner()
self.model.init_local()
@bentoml.api(input=JSON(), output=JSON())
def classify(self, input_data):
result = self.model.run(np.array([input_data["features"]]))
return {"class": int(result[0]), "probabilities": result[1].tolist()}
bentoml build # creates a Bento
bentoml containerize iris_classifier:latest # Docker image
docker run -p 3000:3000 iris_classifier:latest
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.