Abstract
Joint consideration of scheduling and adaptive parallelism offers great opportunities for improving the training efficiency of large models on heterogeneous GPU clusters. However, integrating adaptive parallelism into a cluster scheduler expands the cluster scheduling space. The new space is the product of the original scheduling space and the parallelism exploration space of adaptive parallelism (also a product of pipeline, data, and tensor parallelism). The exponentially enlarged scheduling space and ever-changing optimal parallelism plan from adaptive parallelism together result in the contradiction between low-overhead and accurate performance data acquisition for efficient cluster scheduling. This paper presents Crius, a training system for efficiently scheduling multiple large models with adaptive parallelism in a heterogeneous cluster. Crius proposes a novel scheduling granularity called Cell. It represents a job with deterministic resources and pipeline stages. The exploration space of Cell is shrunk to the product of only data and tensor parallelism, thus exposing the potential for accurate and low-overhead performance estimation. Crius then accurately estimates Cells and efficiently schedules training jobs. When a Cell is selected as a scheduling choice, its represented job runs with the optimal parallelism plan explored. Experimental results show that Crius reduces job completion time by up to 48.9% and schedules large models with up to 1.49x cluster throughput improvement.
Introduction
Training large-scale models like LLMs and Mixture of Experts (MoE) in modern heterogeneous clusters presents a significant challenge. These clusters often mix different GPU generations (e.g., A100s, V100s) and interconnects (NVLink, PCIe). While adaptive parallelism frameworks can find optimal strategies for a fixed set of resources, and cluster schedulers can allocate resources, they typically operate in isolation.
Combining these two domains creates an exponentially large search space—the product of all possible resource allocations and all possible parallelization strategies (data, tensor, and pipeline parallelism). Profiling this entire space is computationally prohibitive for real-time scheduling.
Methods: The Crius System
Crius addresses this by co-designing the scheduler and the parallelism framework. The system architecture is depicted in Figure 5.
The "Cell" Abstraction
The core innovation is the "Cell" abstraction. A Cell represents a training job with a fixed resource allocation and a deterministic number of pipeline stages. By fixing pipeline stages at the scheduling level, Crius reduces the downstream search space for the training framework to only data and tensor parallelism.
Agile Cell Estimation
To avoid exhaustive profiling, Crius uses a decoupled estimation approach:
- Computation: Profiled on a single device using distributed-equivalent compilation.
- Communication: Estimated using known interconnect topologies and offline models.
- Assembly: These components are combined to predict performance for various parallelism plans with minimal overhead, achieving 93.4% accuracy with only two physical profiling runs.
Key Insights
A major insight of this work is that heterogeneity is not just a challenge but an opportunity. As shown in Figure 2, simply exchanging resource types (e.g., swapping A100s for V100s and re-optimizing parallelism) can lead to a 61.9% difference in throughput.
The paper argues for a hierarchy where pipeline parallelism is decided during resource allocation, while data and tensor parallelism are tuned subsequently. This decoupling is what enables the efficiency of the Cell abstraction.
Key Results
Evaluated on models like WideResNet, BERT, and GShard MoE across various traces, Crius demonstrates significant gains:
- Throughput: Up to 1.49× higher average cluster throughput compared to baselines like Gavel.
- Latency: Reduced Job Completion Time (JCT) by up to 48.9% and queuing latency by 71.0%.
- Efficiency: The Agile Estimator is 18.1× more efficient than exhaustive search, and the guided tuner is 5.48× faster than standard tools.
Limitations and Future Work
Currently, Crius requires an initial GPU count as a starting point and does not adjust hyperparameters like global batch size. Future work could integrate more complex scheduling solvers and explore dynamic hyperparameter tuning to further enhance training efficiency.
Summary updated