BentoML: build a Bento and deploy it to BentoCloud

domain: ml-ops · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. `pip install bentoml`, then define your Service in `service.py` using `@bentoml.service(image=bentoml.images.Image(python_version="3.11").python_packages(...))`
  2. Authenticate the CLI with `bentoml cloud login` (creates or accepts an API token)
  3. 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
  4. 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
  5. 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`
  6. 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>`

Known gotchas

Related routes

Build and deploy a BentoML service
docs.bentoml.com · 6 steps · unrated
Package a custom Python model with BentoML and containerize it for Kubernetes deployment
docs.bentoml.com · 5 steps · unrated
Package and serve an ONNX model with BentoML
docs.bentoml.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans