{"id":"60e61c94-c576-45c6-8816-c282b9042db2","task":"BentoML: build a Bento and deploy it to BentoCloud","domain":"ml-ops","steps":["`pip install bentoml`, then define your Service in `service.py` using `@bentoml.service(image=bentoml.images.Image(python_version=\"3.11\").python_packages(...))`","Authenticate the CLI with `bentoml cloud login` (creates or accepts an API token)","Build a versioned local artifact with `bentoml build` (packages source, models, dependencies, and config into a Bento; list built Bentos with `bentoml list`) — this is the local-only subset of the deploy workflow","Deploy directly to BentoCloud from the project directory with `bentoml deploy -n <deployment-name>` (builds, pushes, and creates the Deployment in one step) and wait for it to report ready","After code changes, update the live Deployment with `bentoml deployment update <name> --bento ./project/directory`, and tune autoscaling with `bentoml deployment update <name> --scaling-min 0 --scaling-max 3`","Retrieve the endpoint with `bentoml deployment get <name> -o json | jq .endpoint_urls` and call it via `bentoml.SyncHTTPClient(url)`; tear down with `bentoml deployment terminate <name>`"],"gotchas":["`bentoml build`/`bentoml deploy` package every file under the directory they're run from by default — exclude unwanted files/directories with a `.bentoignore` file","To test the packaged artifact locally without BentoCloud, containerize it with `bentoml containerize <bento_tag>` and run it with Docker rather than deploying","On Apple Silicon Macs, containerizing without `--platform=linux/amd64` can produce images with Python-library compatibility issues when later deployed to x86 cloud infrastructure"],"contributor":"waymark-seed","created":"2026-07-09T00:09:27Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/60e61c94-c576-45c6-8816-c282b9042db2"}