Sailor: Automating Distributed Training over Dynamic, Heterogeneous, and Geo-distributed Clusters

Foteini Strati, Zhendong Zhang, George Manos, Ixeia Sánchez Périz, Qinghao Hu, Tiancheng Chen, Berk Buzcu, Song Han, Pamela Delgado, Ana Klimovic · DOI

Training massive AI models usually requires scarce, homogeneous clusters of high-end GPUs. Sailor is a new system that automates distributed training across heterogeneous, geo-distributed, and dynamically changing GPU clusters. By combining a lightning-fast configuration planner, an accurate simulator, and an elastic training framework, Sailor boosts training throughput by up to 5.9x while significantly cutting compute costs.

The Bottleneck of Homogeneity

The explosive growth of Large Language Models (LLMs) has created a massive demand for high-end GPUs like NVIDIA A100s and H100s. Standard distributed training frameworks (e.g., Megatron-LM and DeepSpeed) assume all GPUs and network links are identical. This forces developers to wait for large, homogeneous clusters to become available in a single cloud availability zone.

To bypass this bottleneck, developers could theoretically mix different GPU generations (e.g., A100s and V100s) or spread training jobs across multiple geographic zones. However, this introduces three major challenges:

  1. Search Space Explosion: Partitioning a model across different GPUs and zones is incredibly complex.
  2. Stragglers and Memory Issues: Weaker GPUs can bottleneck the pipeline or trigger Out-of-Memory (OOM) errors, crashing the job.
  3. Dynamic Availability: Cloud GPU availability changes constantly (e.g., spot instances). If a planner takes hours to find an optimal configuration, the resources might be gone before training begins.

The Sailor Architecture

Sailor addresses these challenges through three integrated components:

1. Profiler & Simulator

Instead of estimating performance, Sailor profiles the model's compute and memory needs on a single GPU of each available type. The simulator then predicts per-GPU memory footprints and iteration times for any configuration, explicitly modeling stragglers and heterogeneous network bandwidths.

2. Fast Configuration Planner

To navigate the vast search space, Sailor uses dynamic programming combined with domain-specific heuristics. It prunes OOM-prone configurations early, restricts tensor parallelism to single nodes, and keeps data parallelism within a single region. This allows it to find optimal resource allocations in seconds rather than hours.

3. Elastic Training Framework

Built on Megatron-DeepSpeed, this framework supports heterogeneous parallelization plans—for example, assigning different tensor parallelism degrees to different pipeline stages to balance load between weak and strong GPUs. It also features "kill-free" elasticity, allowing the system to reconfigure and resume training seamlessly when GPUs are added or preempted.

Key Insights: Navigating the Search Space

Sailor's evaluation revealed several critical insights for distributed training in non-ideal environments. Most notably, memory estimation is often the primary failure point for existing planners; Sailor's strict per-GPU tracking prevents the deployment of invalid, crash-prone plans.

Throughput and iteration cost across various homogeneous, heterogeneous, and geo-distributed configurations.

As illustrated in the figure above, the authors found that spreading identical GPUs (e.g., all A100s) across different cloud zones (c4) can yield higher throughput and lower costs than mixing different GPUs (A100s + V100s) in a single zone (c3 or c5), despite the cross-zone network tax. Furthermore, achieving high throughput in heterogeneous setups requires "heterogeneous pipelines"—assigning different microbatch sizes and parallelism degrees to different stages to perfectly load-balance across GPUs with varying capacities.

Performance Results

Sailor was evaluated using standard LLM architectures, including OPT-350M and GPT-Neo-2.7B. Key results include:

  • Accuracy: The simulator predicts iteration time with only a 4.5% error and memory footprint with a 5.56% error, significantly outperforming baseline planners.
  • Speed: The planner finds optimal configurations in seconds (maxing out around 20s), whereas baselines like Metis can take hours.
  • Throughput: Sailor achieves 1.1x to 5.9x higher throughput compared to state-of-the-art baselines (AMP, FlashFlex, Metis, DTFM) across various setups.
  • Cost Efficiency: When given a strict throughput constraint, Sailor's co-optimization resulted in up to 40% lower monetary costs compared to the next best baseline.

Future Directions

While Sailor represents a significant step forward, future work will focus on supporting advanced memory-saving techniques like activation offloading and rematerialization. Additionally, the team aims to adapt collective communication libraries to better handle the unpredictable jitter and packet loss inherent in geo-distributed Ethernet networks.

Summary updated

BibTeX
@inproceedings{strati2025sailor,
  author = {Foteini Strati and Zhendong Zhang and George Manos and Ixeia Sánchez Périz and Qinghao Hu and Tiancheng Chen and Berk Buzcu and Song Han and Pamela Delgado and Ana Klimovic},
  title = {{Sailor: Automating Distributed Training over Dynamic, Heterogeneous, and Geo-distributed Clusters}},
  booktitle = {SOSP},
  year = {2025},
  doi = {10.1145/3731569.3764839},
}
Figure