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 →Mastering Multi-Tenant GPU Kubernetes with Kamaji and HAMi
Unlock the power of multi-tenant GPU workloads in Kubernetes using Kamaji and HAMi. This setup allows you to efficiently allocate GPU resources across multiple tenants, leveraging simulated hardware for testing and development. Dive into the specifics of configuration and deployment to streamline your GPU management.
Maximize Your AI SRE Evaluation with Contextual Awareness
Before diving into AI SRE evaluations, ensure your existing agent has the right context. By leveraging Radar's read-only MCP tools, you can access critical insights like current failures and change timelines that raw kubectl can't provide. This context is essential for effective decision-making.
Unlocking BackstageCon: Insights for KubeCon + CloudNativeCon 2026
BackstageCon is set to be a pivotal gathering for Backstage enthusiasts at KubeCon + CloudNativeCon 2026. Dive into AI features and the Model Context Protocol that are reshaping software development workflows. This is your chance to connect with the community and deepen your understanding of Backstage.
Get the daily digest
One email. 5 articles. Every morning.
No spam. Unsubscribe anytime.