Pathways is a compute orchestration runtime for single-controller ML workloads across multiple Cloud TPU slices. A single Python controller orchestrates computation across hundreds or thousands of TPU chips, unlocking slice-level training resiliency, fast cross-slice data movement, and interactive multi-slice development.
This package bundles the Python client integrations, resharding and elasticity helpers, and GKE deployment builders for running JAX workloads on Pathways on Cloud.
pip install pathwaysutils
# Optional GKE JobSet generator and kubectl/Kubernetes client dependencies:
pip install 'pathwaysutils[gke]'
# Optional experimental Shared Pathways Service (SPS) dependencies:
pip install 'pathwaysutils[sps]'pathwaysutils.initialize()registers the Pathways IFRT proxy backend, configures the compilation cache and XProf trace hooks, and registers Orbax checkpoint handlers.pathwaysutils.reshard.reshardreshards arrays and PyTrees across device meshes directly on Pathways workers via the IFRTRemapArrayAPI without routing tensors through controller memory.pathwaysutils.elastic.manager.Managermonitors slice health in the background and provides@elastic_retryandScaleUpSignalErrorfor step-level fault recovery and dynamic slice scaling.PathwaysJobSet(pathwaysutils.experimental.gke.jobset) builds, customizes, exports, and deploys KubernetesJobSetmanifests for Pathways workloads on GKE.- Shared Pathways Service
(
pathwaysutils.experimental.shared_pathways_service) deploys a persistent multi-tenant Pathways service on GKE for interactive JAX sessions.