Unifying AI Training and Inference on Kubernetes: Lessons from China Merchants Bank
In the world of AI, managing resources efficiently is critical. China Merchants Bank has tackled this challenge head-on by creating a unified control plane that integrates Kubernetes with Kueue, KEDA, Prometheus, HAMi, and Fluid. This setup allows them to streamline model training, fine-tuning, and online inference, maximizing the use of their accelerator resources while minimizing idle time.
The architecture is built around several key components. Kueue handles training admission, queues, and quotas, ensuring that jobs don’t reserve capacity before they can utilize it. KEDA and Prometheus work together to scale online inference based on live demand signals, dynamically adjusting resources as needed. HAMi allocates shared accelerator capacity in fine-grained units, optimizing usage across different tasks. Fluid accelerates access to datasets, model weights, and checkpoints, reducing the time accelerators spend waiting for data. This combination allows for nearly 10,000 heterogeneous accelerator cards to be utilized effectively, significantly enhancing training density and resource efficiency.
In production, the integration of these tools can lead to substantial resource savings and improved performance. For instance, the Twinkle training framework allows multiple tenants to share a base model instance, cutting accelerator resource usage by 80% while increasing training density fivefold. However, engineers should remain aware of the complexities involved in managing such a unified system, especially as it scales. The version notes indicate that this approach is set to be showcased at KubeCon + CloudNativeCon + OpenInfra Summit + PyTorch Conference China in September 2026, highlighting its relevance and ongoing development in the Kubernetes ecosystem.
Key takeaways
- →Leverage Kueue to manage training admission and prevent resource wastage.
- →Utilize KEDA and Prometheus for dynamic scaling of online inference based on demand.
- →Implement HAMi for fine-grained allocation of shared accelerator capacity.
- →Accelerate data access with Fluid to minimize idle time for accelerators.
- →Adopt the Twinkle training framework to significantly reduce resource usage and increase training density.
Why it matters
This unified approach not only optimizes resource usage but also enhances the speed and efficiency of AI workflows, making it a game-changer for organizations looking to scale their AI capabilities.
When NOT to use this
The official docs don't call out specific anti-patterns here. Use your judgment based on your scale and requirements.
Want the complete reference?
Read official docsIndustry-standard certifications built by the people behind Linux and Kubernetes. Earn the CKA — the gold standard Kubernetes administrator cert. OpsCanary readers get 30% off year-round with code OPSCANARY3.
Get CKA certified →Secure Multi-Tenant GPU Metrics in Kubernetes: A Deep Dive
In a multi-tenant Kubernetes environment, managing GPU metrics securely is crucial. By leveraging MetricAccess and kube-rbac-proxy, you can ensure that each team only sees its own metrics. This article breaks down how to implement these features effectively.
Transforming Kubernetes: From Cloud Native to AI Native
As AI continues to evolve, so must our infrastructure. Discover how Kubernetes can adapt to support AI-native applications while avoiding common pitfalls. Learn why relying solely on simplified tools can lead to serious security issues.
Scaling AI with Kubernetes: The Role of CNCF Silver Members
As enterprises scale AI from training to inference, operational efficiency becomes critical. Kubernetes plays a vital role in managing these workloads, and the support from CNCF Silver Members enhances this infrastructure.
Get the daily digest
One email. 5 articles. Every morning.
No spam. Unsubscribe anytime.