Building a Production-Grade AI/ML Inference Platform on Kubernetes
summary
Production system on Amazon EKS runs LLM inference at tens–hundreds of GPUs for medical-document workloads and proves self-hosting cheaper at very high volume versus API providers. Architecture uses S3 for weights, ECR images, Karpenter for GPU nodes, VLM for memory packing, Run:AI streaming to GPUs and a containerd sochi plugin to speed image start. Cold starts initially hit 15–30 minutes; streaming plus container unpacking yields about 70% startup improvement. Operates with token-aware autoscaling, monitors time to first token and inter-token latency, and reports cache hit rate as critical.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 1:00Company background and challenges
- 3:32Transition from ML to LLM models
- 5:18Moving from CPU to GPU inference
- 7:45What is an AI model?
- 10:19Kubernetes setup for inference
- 13:12Application layer components
- 14:39Lessons learned the hard way
- 17:52Orchestration challenges
- 19:20Model startup time optimizations
- 21:38Importance of GPU caching
- 23:26Smart routing for cache efficiency
- 25:13Monitoring and metrics
- 28:44Evaluating new models
- 32:00Summary and best practices
