AI

Google launches Pathways, a distributed system for training large models

Google has made Pathways, its distributed system for training large models like Gemini, generally available on Google Cloud Platform.

3 min readSource: Google Developers Blog

Curated by Kandala Guruprasad. Drafted with AI and checked against the source.

Google launches Pathways, a distributed system for training large models

TL;DR

  • Pathways is a distributed system Google built to train large models, now available on Google Cloud as a general release
  • Unlike traditional SPMD approaches, Pathways uses a single Python client to describe computation as a graph, with a runtime handling placement and tensor movement
  • Pathways enables elastic training, where hardware failures do not stop the entire job but instead trigger remapping to healthy chips
  • The system supports shared cluster capacity through the Shared Pathways Service, allowing teams to develop interactively on TPUs via GKE
Status
General Availability
Programming model
JAX on TPUs
Platform
Google Cloud Platform

What is Pathways

Pathways is a distributed system designed to address coordination challenges in large-model training. Google built it to train its own largest models, including Gemini. Unlike Single Program, Multiple Data (SPMD) execution models, which require every accelerator to run the same program in lockstep, Pathways uses a single Python client to declare the entire computation as a dataflow graph. A distributed runtime then handles device placement, tensor movement, and job coordination.

Why SPMD approaches have limitations

Traditional distributed training frameworks like PyTorch's Distributed Data Parallel (DDP) and Fully Sharded Data Parallel (FSDP) follow the SPMD model. While this works well for uniform jobs, it shows limitations in complex scenarios. In pipeline parallelism, stages wait on each other, leaving accelerators idle. In reinforcement learning post-training for LLMs, different programs (sampler, reward model, trainer) must overlap but cannot be coordinated through collective operations alone. SPMD also struggles with hardware failures: when one machine fails, collective operations hang and the entire job must restart from the last checkpoint. Additionally, communication across datacenter networks becomes a bottleneck. For example, on TPU v5p, chip-to-chip bandwidth within a group reaches 1,200 GB/s, but cross-datacenter communication drops to approximately 6 GB/s, creating a performance cliff as jobs scale across groups.

Single-controller execution and elastic training

Pathways decouples the client from hardware by using virtual devices. A Python client running on an ordinary CPU machine writes programs against these virtual devices, while a resource manager maps them to physical chips. This abstraction enables dynamic hardware reassignment. When a host fails, the resource manager remaps work onto healthy chips and training continues without restarting, a capability called elastic training. According to the supporting documentation, in one instance total downtime from a terminated TPU to the next training step was less than two minutes, with most time spent waiting for Kubernetes to schedule a replacement pod. Because compilation targets virtual devices, setup can overlap with hardware provisioning rather than waiting for it to complete.

Shared cluster capacity and development workflow

The Pathways architecture allows a single cluster to serve multiple clients simultaneously through the Shared Pathways Service. A cluster runs as a long-running service on Google Kubernetes Engine (GKE), and researchers connect on demand from laptops or VMs. Each client receives its own slices (groups of tightly connected TPU chips) from the shared pool and returns them when disconnecting. This enables interactive development on TPUs without requiring static per-job allocations. The resource manager owns the chips, not individual processes, allowing capacity to move dynamically to where it is needed. Teams can share cluster resources more efficiently than traditional models where every job owns its accelerators for the entire run.

Distributed dataflow execution

Pathways expresses computation as a distributed dataflow graph where each block represents a compiled SPMD program and each edge represents a tensor the runtime must deliver. When different parts of a job run on different device groups, solid arrows in the graph represent tensor transfers that cross groups, while dashed edges represent transfers that stay local. Within a single group of tightly connected chips, the framework handles collective operations that keep devices synchronized. The runtime manages all inter-group communication and dependency ordering, removing the need for application code to explicitly coordinate these transfers. This allows complex workloads like pipeline parallelism and RL training loops to run efficiently by automatically overlapping different stages.

Source

Google Developers Bloghttps://developers.googleblog.com/what-is-pathways-single-controller-training-for-large-models/

AI-assisted, verified against the source. This post was drafted with AI from the primary source linked above and checked automatically against it. For anything you depend on, read the original.

  • #distributedtraining
  • #largelanguagemodels
  • #googlecloud
  • #machinelearninginfrastruct
  • #tpu

More in AI