Introduction
Training Large Language Models (LLMs) requires massive GPU clusters, but two real-world constraints often impede efficiency: heterogeneity and volatility. Modern clusters are rarely uniform, frequently containing a mix of GPU generations (e.g., NVIDIA A100s, H800s, and H20s) with disparate compute power and memory capacities. Furthermore, to manage costs, researchers often utilize "spot instances"—spare capacity that cloud providers can reclaim at any moment.
Existing 3D parallelism frameworks (combining Data, Tensor, and Pipeline parallelism) typically assume homogeneous hardware. In mixed environments, this leads to "stragglers" where fast GPUs wait for slower ones, or significant memory underutilization. Additionally, standard checkpointing is often too rigid to allow rapid recovery on a newly configured, heterogeneous set of GPUs following a preemption. To address these challenges, we present AutoHet, a novel 3D parallelism framework designed for heterogeneous and volatile GPU clusters.
The AutoHet Framework
AutoHet optimizes 3D parallelism through a two-stage approach:
- Effective Computing Power Maximization: AutoHet employs a nonlinear integer programming model to determine optimal device grouping. Unlike traditional systems, it supports asymmetric pipeline structures, allowing different data-parallel groups to maintain unique pipeline stage configurations.
- Heuristic GPU Mapping: The system intelligently maps specific GPU types to pipeline stages. For instance, lower-end GPUs are placed at the start of a pipeline where memory demand for activations is high, but the relative computational load is lower.
- Elastic Recovery Strategy: To mitigate spot instance preemption, AutoHet utilizes layer-wise checkpointing. By saving state at the layer level rather than the GPU level, the system can "re-stitch" the model across a different number or type of GPUs during recovery. A hierarchical storage approach prioritizes local SSDs and RDMA links over slow cloud storage.
Key Insights: The TP Symmetry Constraint
A critical discovery during the development of AutoHet was the constraint on Tensor Parallelism (TP). While Pipeline Parallelism (PP) can be asymmetric, the authors found that TP must remain symmetric across data-parallel chains.
As shown in the evaluation, attempting asymmetric TP introduces massive matrix transpose overheads that can degrade throughput by up to 49%. Consequently, AutoHet focuses its asymmetry on the pipeline and data-parallel dimensions to maintain high efficiency.
Experimental Results
The system was evaluated using BERT-Large, GPT-3, and LLaMA architectures on a testbed of NVIDIA A100, H800, and H20 GPUs connected via NVLink and 400Gbps RoCEv2.
- Throughput Gains: AutoHet achieved a 1.38× to 1.79× speedup in training throughput compared to Megatron-LM and outperformed Whale by up to 1.51× in non-uniform distributions.
- Recovery Speed: In preemption scenarios, AutoHet recovered 4.38× faster than the baseline (Varuna), resuming training in minutes by fetching only missing layers from the cloud.
- Low Overhead: The planning time for a 64-GPU cluster was approximately 159 seconds—nearly 10× faster than automated systems like Alpa.
Conclusion and Future Work
AutoHet demonstrates that breaking the requirement for symmetric parallel structures is essential for maximizing hardware utilization in modern cloud environments. While the current evaluation focused on models up to 20B parameters, future work will explore "extreme" LLMs (175B+) where communication overheads may further shift the optimization landscape. Additionally, investigating performance in lower-bandwidth environments (e.g., 10Gbps Ethernet) remains an open area for research.
Summary updated