Model Serving
Production model serving — low latency, autoscaling, multi-framework, GPU-aware. KServe (CNCF, K8s-native), BentoML (Python framework), Seldon Core, NVIDIA Triton (GPU-optimized), Ray Serve, ONNX Runtime, batch vs online, GPU sharing (MIG, MPS).
Overview
What production serving requires
Model serving takes a registered model artifact and exposes it as a reliable, low-latency HTTP or gRPC endpoint for real traffic. The naive version, a Flask app that loads a pickle at startup, works for one model at single-digit QPS.
Production needs more, and the pieces fit together around a serving runtime such as KServe, BentoML or Triton. The runtime loads models from the model registry. Clients reach it through a traffic split that handles canary, shadow and A/B releases. Behind it sit a GPU pool for batching and sharing, an autoscaler that can scale to zero, and observability for latency, throughput and logs.
Six requirements separate that platform from the Flask version.
- Low, predictable latency: meet p50 and p99 SLOs, with cold-start mitigation.
- Autoscaling: horizontal pod scaling on request rate or GPU utilization, and scale-to-zero for cost.
- Multi-framework: one platform for sklearn, XGBoost, PyTorch, TensorFlow, ONNX and LLMs.
- GPU efficiency: batch inflight requests, share GPU memory across small models and partition the hardware.
- Observability: per-request latency, per-model throughput and prediction logging.
- Controlled rollout: canary, shadow and A/B traffic management at the serving layer.
Three frameworks lead, and each meets these needs from a different starting point.
Interview questions
- Compare KServe, BentoML, and NVIDIA Triton. When would you choose each?
- How would you set up canary and A/B deployments for a model serving system on Kubernetes?
- What are the GPU sharing options for multi-tenant model serving and when does each apply?
- How do you handle serving multiple model versions simultaneously and ensure graceful rollback?
- Walk through the operational concerns for a model serving platform at 10,000 QPS.
Sign up free to read the full topic
More MLOps & LLMOps topics
- MLOps Lifecycle
- Model Deployment Strategies
- Model Drift Detection
- Model Evaluation — Offline and Online
- Model Packaging and Formats
- Model Registry
- Model Supply Chain: Signing, Provenance & Safe Formats
- Online and Continual Learning
- Operating Vector Databases: HA, Reindexing & Backups
- Ray on Kubernetes & Dynamic Resource Allocation for GPUs
- Real-World MLOps Case Studies
- Reproducible ML Pipelines
Start free on Cariara · Coding problems · System design studio