arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2105.04663cs.DCcs.LG
收藏

GSPMD:ML计算图的通用可扩展并行化

GSPMD: General and Scalable Parallelization for ML Computation Graphs

Google(谷歌)
Yuanzhong Xu, HyoukJoong Lee, Dehao Chen, Blake Hechtman, Yanping Huang, Rahul Joshi, Maxim Krikun, Dmitry Lepikhin, Andy Ly, Marcello Maggioni, Ruoming Pang, N… 展开作者

Yuanzhong Xu, HyoukJoong Lee, Dehao Chen, Blake Hechtman, Yanping Huang, Rahul Joshi, Maxim Krikun, Dmitry Lepikhin, Andy Ly, Marcello Maggioni, Ruoming Pang, Noam Shazeer, Shibo Wang, Tao Wang, Yonghui Wu, Zhifeng Chen

摘要:

我们提出了GSPMD,一个自动的,基于编译器的并行化系统,用于常见的机器学习计算。它允许用户以与单个设备相同的方式编写程序,然后通过一些关于如何分配张量的注释给出提示,GSPMD将基于这些注释并行计算。它的分区表示简单而通用,允许它在各种模型上表达不同或混合的并行范例。GSPMD根据有限的用户注释为每个操作员推断分区,从而方便扩展现有的单设备程序。它解决了生产使用中的几个技术挑战,使GSPMD能够在多达2048个Cloud TPUv3内核上实现50%至62%的计算利用率,适用于多达1万亿个参数的模型。

英文摘要:

We present GSPMD, an automatic, compiler-based parallelization system for common machine learning computations. It allows users to write programs in the same way as for a single device, then give hints through a few annotations on how to distribute tensors, based on which GSPMD will parallelize the computation. Its representation of partitioning is simple yet general, allowing it to express different or mixed paradigms of parallelism on a wide variety of models. GSPMD infers the partitioning for every operator based on limited user annotations, making it convenient to scale existing single-device programs. It solves several technical challenges for production usage, allowing GSPMD to achieve 50% to 62% compute utilization on up to 2048 Cloud TPUv3 cores for models with up to one trillion parameters.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑