Diving into 3D Parallelism with Heterogeneous Spot Instance GPUs: Design and Implications

Yuxiao Wang, Yuedong Xu, Qingyang Duan, Yuxuan Liu, Lei Jiao, Yinghao Yu, Jun WuarXiv 2025 · DOI

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.

Fluctuations in allocatable GPUs over time across different hardware types (A100, H800, H20).

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:

  1. 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.
  2. 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.
  3. 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.

Impact of asymmetric vs. symmetric Tensor Parallelism on normalized throughput across various GPT model sizes.

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

BibTeX
@misc{wang2025diving,
  author = {Yuxiao Wang and Yuedong Xu and Qingyang Duan and Yuxuan Liu and Lei Jiao and Yinghao Yu and Jun Wu},
  title = {{Diving into 3D Parallelism with Heterogeneous Spot Instance GPUs: Design and Implications}},
  year = {2025},
  eprint = {2512.20953},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.20953},
}
Figure