Integrated and Fungible Scheduling of Deep Learning Workloads Using Multi-Agent Reinforcement Learning
GPU clusters have been widely used to co-locate various deep learning (DL) workloads in a multi-tenant way. Although such resource sharing can significantly reduce training cost, resource contention and interference among co-located workloads make task scheduling very complex and challenging. To simplify the scheduling problem, existing algorithms usually divide the procedure of scheduling into two sub-tasks, i.e., task placement and resource allocation, and allocate resources according to pre-defined and fixed resource demands. However, such a paradigm significantly constrains the selection of potential scheduling solutions. In this article, we present MAIFS, a novel multi-agent reinforcement learning based scheduling algorithm that handles task placement and resource allocation integratedly, and allows fungible resource allocation based on resource sensitivity of DL workloads. The core of MAIFS lies in two mechanisms. The multi-agent attention mechanism is designed to learn and share inter-related resource state features observed from different agents, which enables agents to explore fungible resource allocation solutions. The dynamic coordination graph mechanism is designed for coordinating interactive task placement decisions of agents during integrated scheduling, so as to mitigate potential task conflicts. Simulated experiments using two large scale production DL workload traces and physical deployment experiments based on a Kubernetes based GPU cluster show that MAIFS can outperform state-of-the-art scheduling algorithms by up to 44% in terms of makespan and 46% in terms of job completion time (JCT).
Authors
- Xuan Mo (ORCID: https://orcid.org/0000-0001-6858-9307)
- Danyang Xiao (ORCID: https://orcid.org/0000-0001-6798-9683)
- Diying Yang (ORCID: https://orcid.org/0009-0006-8640-3530)
- Weigang Wu (ORCID: https://orcid.org/0000-0002-4714-7021)
- Jialun Li (ORCID: https://orcid.org/0000-0003-0941-9820)
Institutions
- Sun Yat-sen University (CN)
- Guangdong Polytechnic Normal University (CN)
Publication Details
- Journal
- IEEE Transactions on Parallel and Distributed Systems
- Published
- 2024-12-25
- DOI
- https://doi.org/10.1109/tpds.2024.3522333
- Citations
- 1
- Primary Topic
- Scheduling and Optimization Algorithms
- Type
- article
- Field-Weighted Citation Impact
- 0.35