Unified model serving framework for building model inference APIs and multi-model serving systems
open sourceApache-2.0self-hostablefree
BentoML is an open source Python library for turning model inference code into production API servers: you decorate a Python class as a service and its methods as APIs with type hints, and BentoML serves them over REST, with adaptive batching, multiple workers, GPU support, async task queues, streaming and multi-model composition. It packages the code, models and dependencies into a Bento, a versioned artifact it can turn into a reproducible Docker image to run anywhere, including Kubernetes, and it works with any framework or inference runtime, from scikit-learn and XGBoost to vLLM for LLMs. BentoML (the company) joined Modular on 10 February 2026, which Qualcomm acquired in July 2026; the framework continues under Apache-2.0, while the hosted BentoCloud platform is being phased out.
Problems it solves
- turn a Python model inference script into a REST API server in a few lines
- package a model with its Python dependencies into a reproducible Docker image
- batch incoming prediction requests together to use the GPU better
- serve several models in one service, with one model's output feeding the next
- run long inference jobs as an async task queue instead of a blocking HTTP call
- serve an open source LLM with an OpenAI-compatible API using vLLM from my own Python code
- serve a LangGraph agent as an API
- run some steps of an inference pipeline on GPU workers and others on CPU
- serve MLflow or XGBoost models as a production HTTP API
- stream tokens or partial results back from a model endpoint
- add a Gradio UI to my model API
Features
- define services and APIs with Python decorators and type hints
- adaptive (dynamic) batching
- multiple workers and model parallelism
- GPU inference
- multi-model composition and distributed services
- async task queues
- streaming responses and WebSocket endpoints
- mount ASGI apps (FastAPI) and add a Gradio UI
- Bento packaging and
bentoml containerizeto build Docker images - model store for loading and versioning models
View 4 more
- framework APIs for PyTorch, TensorFlow, scikit-learn, XGBoost, LightGBM, ONNX, Transformers, Diffusers, MLflow and more
- observability: metrics, logging and tracing
- client API (sync and async HTTP clients)
- agent skills for deploying a service to Kubernetes or EC2
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Has official SDKs | plan not known |
Alternatives
The same job
These do what BentoML does.
- NVIDIA Dynamo-Triton Open source inference serving software that deploys AI models from any major framework
- Ray Serve Scalable model serving library for building online inference APIs
- Baseten The platform for inference, training, and execution
- KServe Standardized distributed generative and predictive AI inference platform for scalable, multi-framework deployment on Kubernetes
- Seldon Core An MLOps and LLMOps framework for deploying, managing and scaling AI systems in Kubernetes
- Fireworks AI Run, ensemble and train open models on one platform
