Abstract
The explosion in the size of foundation models has greatly raised the computational needs for large-scale distributed training platforms. With models that are growing into the billions of parameters and trillions of neurons, making efficient use of resources and system resilience are increasingly significant challenges for cloud native infrastructures. The traditional training methods are resource fragmented, with low training throughput, and long recovery time from hardware and network failures, which leads to high training costs. To enhance the efficiency and reliability of large-scale foundation model training, this study introduces a cloudnative framework that combines dynamic resource allocation and fault-tolerance mechanisms. It uses distributed training technologies, such as Fully Sharded Data Parallel (FSDP) and DeepSpeed, in addition to Kubernetesbased schedulers to facilitate adaptive workload placement, elastic resource scaling, and automatic failure recovery. A layered architecture is proposed to organise the monitoring, scheduling, checkpointing and the recovery operations of resources in a distributed computing cluster. The performance is measured based on various metrics like GPU usage, training throughput, job completion time, resource efficiency, recovery latency, etc. The results show that intelligent resource allocation, coupled with proactive fault-tolerance strategies can substantially improve the performance of training and minimize downtime and infrastructure waste. The proposed solution is scalable and resilient enough to support the next generation of foundation model development in the cloud-native environment.
Keywords
Foundation Models; Distributed Training; Cloud-Native Computing; Kubernetes Scheduling; Dynamic Resource Allocation; Fault Tolerance; DeepSpeed; PyTorch FSDP; Elastic Training; GPU Resource Management.
References
1. Alistarh, D., Grubic, D., Li, J., Tomioka, R., & Vojnović, M. (2021). Elastic consistency: A practical
consistency model for distributed stochastic gradient descent. Proceedings of the AAAI Conference on
Artificial Intelligence, 35(10), 9460–9468. https://doi.org/10.1609/aaai.v35i10.17092
2. Gao, Y., Narayanan, D., Harlap, A., Phanishayee, A., Seshan, S., & Zaharia, M. (2021). ElasticFlow:
An elastic serverless training platform for distributed deep learning. In Proceedings of the ACM
Symposium on Cloud Computing (pp. 484–499). https://doi.org/10.1145/3472883.3486998
3. Jangda, A., Yadav, A., Pathania, A., & Zhou, Y. (2021). Elastic distributed training with fast
convergence and efficient resource utilization. In 2021 International Conference on Machine Learning
and Applications (ICMLA) (pp. 1115–1120). IEEE. https://doi.org/10.1109/ICMLA52953.2021.00160
4. Kim, E., Lee, K., & Yoo, C. (2023). Network SLO-aware container scheduling in Kubernetes. The
Journal of Supercomputing, 79(10), 11478–11494. https://doi.org/10.1007/s11227-023-05122-5
5. Koyejo, S. (2024). Towards fault-tolerant federated and distributed machine learning. Proceedings of
the AAAI Symposium Series, 3(1), 306–306. https://doi.org/10.1609/aaaiss.v3i1.31220
6. Piontek, T., Haghshenas, K., & Aiello, M. (2024). Carbon emission-aware job scheduling for
Kubernetes deployments. The Journal of Supercomputing, 80, 549–569.
https://doi.org/10.1007/s11227-023-05506-7
7. Rasley, J., Rajbhandari, S., Ruwase, O., & He, Y. (2020). DeepSpeed: System optimizations enable
training deep learning models with over 100 billion parameters. In Proceedings of the 26th ACM
SIGKDD International Conference on Knowledge Discovery & Data Mining (pp. 3505–3506).
Association for Computing Machinery. https://doi.org/10.1145/3394486.3406703
8. Ren, J., Li, M., Zhang, Y., Ruwase, O., Rajbhandari, S., & He, Y. (2023). Universal checkpointing:
Efficient and flexible checkpointing for large-scale distributed training. In Proceedings of SC '23: The
International Conference for High Performance Computing, Networking, Storage and Analysis (pp. 1–
15). Association for Computing Machinery. https://doi.org/10.1145/3581784.3607089
9. Wen, S., Han, R., Qiu, K., Ma, X., Li, Z., Deng, H., & Liu, C. H. (2023). K8sSim: A simulation tool
for Kubernetes schedulers and its applications in scheduling algorithm optimization. Micromachines,
14(3), Article 651. https://doi.org/10.3390/mi14030651
10. Zhao, Y., Gu, A., Varma, R., Luo, L., Huang, C.-C., Xu, M., Wright, L., Shojanazeri, H., Ott, M.,
Shleifer, S., Desmaison, A., Balioglu, C., Damania, P., Nguyen, B., Chauhan, G., Hao, Y., Mathews,
A., & Li, S. (2023). PyTorch FSDP: Experiences on scaling fully sharded data parallel (arXiv Preprint
arXiv:2304.11277). arXiv. https://arxiv.org/abs/2304.11277
consistency model for distributed stochastic gradient descent. Proceedings of the AAAI Conference on
Artificial Intelligence, 35(10), 9460–9468. https://doi.org/10.1609/aaai.v35i10.17092
2. Gao, Y., Narayanan, D., Harlap, A., Phanishayee, A., Seshan, S., & Zaharia, M. (2021). ElasticFlow:
An elastic serverless training platform for distributed deep learning. In Proceedings of the ACM
Symposium on Cloud Computing (pp. 484–499). https://doi.org/10.1145/3472883.3486998
3. Jangda, A., Yadav, A., Pathania, A., & Zhou, Y. (2021). Elastic distributed training with fast
convergence and efficient resource utilization. In 2021 International Conference on Machine Learning
and Applications (ICMLA) (pp. 1115–1120). IEEE. https://doi.org/10.1109/ICMLA52953.2021.00160
4. Kim, E., Lee, K., & Yoo, C. (2023). Network SLO-aware container scheduling in Kubernetes. The
Journal of Supercomputing, 79(10), 11478–11494. https://doi.org/10.1007/s11227-023-05122-5
5. Koyejo, S. (2024). Towards fault-tolerant federated and distributed machine learning. Proceedings of
the AAAI Symposium Series, 3(1), 306–306. https://doi.org/10.1609/aaaiss.v3i1.31220
6. Piontek, T., Haghshenas, K., & Aiello, M. (2024). Carbon emission-aware job scheduling for
Kubernetes deployments. The Journal of Supercomputing, 80, 549–569.
https://doi.org/10.1007/s11227-023-05506-7
7. Rasley, J., Rajbhandari, S., Ruwase, O., & He, Y. (2020). DeepSpeed: System optimizations enable
training deep learning models with over 100 billion parameters. In Proceedings of the 26th ACM
SIGKDD International Conference on Knowledge Discovery & Data Mining (pp. 3505–3506).
Association for Computing Machinery. https://doi.org/10.1145/3394486.3406703
8. Ren, J., Li, M., Zhang, Y., Ruwase, O., Rajbhandari, S., & He, Y. (2023). Universal checkpointing:
Efficient and flexible checkpointing for large-scale distributed training. In Proceedings of SC '23: The
International Conference for High Performance Computing, Networking, Storage and Analysis (pp. 1–
15). Association for Computing Machinery. https://doi.org/10.1145/3581784.3607089
9. Wen, S., Han, R., Qiu, K., Ma, X., Li, Z., Deng, H., & Liu, C. H. (2023). K8sSim: A simulation tool
for Kubernetes schedulers and its applications in scheduling algorithm optimization. Micromachines,
14(3), Article 651. https://doi.org/10.3390/mi14030651
10. Zhao, Y., Gu, A., Varma, R., Luo, L., Huang, C.-C., Xu, M., Wright, L., Shojanazeri, H., Ott, M.,
Shleifer, S., Desmaison, A., Balioglu, C., Damania, P., Nguyen, B., Chauhan, G., Hao, Y., Mathews,
A., & Li, S. (2023). PyTorch FSDP: Experiences on scaling fully sharded data parallel (arXiv Preprint
arXiv:2304.11277). arXiv. https://arxiv.org/abs/2304.11277