arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2104.05158cs.DCcs.AIcs.LGcs.PF
收藏

用于深度学习推荐模型快速可扩展训练的软硬件协同设计

Software-Hardware Co-design for Fast and Scalable Training of Deep Learning Recommendation Models

Meta Platforms(元平台公司);Carnegie Mellon University(卡内基梅隆大学)
Dheevatsa Mudigere, Yuchen Hao, Jianyu Huang, Zhihao Jia, Andrew Tulloch, Srinivas Sridharan, Xing Liu, Mustafa Ozdal, Jade Nie, Jongsoo Park, Liang Luo, Jie Am… 展开作者

Dheevatsa Mudigere, Yuchen Hao, Jianyu Huang, Zhihao Jia, Andrew Tulloch, Srinivas Sridharan, Xing Liu, Mustafa Ozdal, Jade Nie, Jongsoo Park, Liang Luo, Jie Amy Yang, Leon Gao, Dmytro Ivchenko, Aarti Basant, Yuxi Hu, Jiyan Yang, Ehsan K. Ardestani, Xiaodong Wang, Rakesh Komuravelli, Ching-Hsiang Chu, Serhat Yilmaz, Huayu Li, Jiyuan Qian, Zhuobo Feng, Yinbin Ma, Junjie Yang, Ellie Wen, Hong Li, Lin Yang, Chonglin Sun, Whitney Zhao, Dimitry Melts, Krishna Dhulipala, KR Kishore, Tyler Graf, Assaf Eisenman, Kiran Kumar Matam, Adi Gangidi, Guoqiang Jerry Chen, Manoj Krishnan, Avinash Nayak, Krishnakumar Nair, Bharath Muthiah, Mahmoud khorashadi, Pallab Bhattacharya, Petr Lapukhov, Maxim Naumov, Ajit Mathews, Lin Qiao, Mikhail Smelyanskiy, Bill Jia, Vijay Rao

摘要:

深度学习推荐模型(DLRM)用于Facebook的许多关键业务服务,并且是其数据中心基础设施需求方面最大的人工智能应用。在本文中,我们讨论了软件/硬件协同设计的解决方案,高性能的分布式训练的大规模DLRM。我们介绍了一个基于PyTorch的高性能可扩展软件栈,并将其与Zion平台的新演进ZionEX配对。我们证明了训练非常大的DLRM与多达12个Trimester参数的能力,并表明,我们可以达到40倍的速度比以前的系统的解决方案的时间。我们通过(i)设计具有专用横向扩展网络的ZionEX平台,提供高带宽,最佳拓扑和高效传输(ii)实现优化的基于PyTorch的训练堆栈,支持模型和数据并行(iii)开发分片算法,能够沿着行,列维度分层划分嵌入表,并在多个工作者之间进行负载均衡;(iv)增加高性能核心运算符,同时保持灵活性,以支持具有完全确定性更新的优化器(v)利用降低精度的通信、多级存储层次结构(HBM + DDR + SSD)和流水线。此外,我们开发并简要评论了分布式数据摄取和其他支持服务,这些服务是生产环境中强大而高效的端到端培训所需的。

英文摘要:

Deep learning recommendation models (DLRMs) are used across many business-critical services at Facebook and are the single largest AI application in terms of infrastructure demand in its data-centers. In this paper we discuss the SW/HW co-designed solution for high-performance distributed training of large-scale DLRMs. We introduce a high-performance scalable software stack based on PyTorch and pair it with the new evolution of Zion platform, namely ZionEX. We demonstrate the capability to train very large DLRMs with up to 12 Trillion parameters and show that we can attain 40X speedup in terms of time to solution over previous systems. We achieve this by (i) designing the ZionEX platform with dedicated scale-out network, provisioned with high bandwidth, optimal topology and efficient transport (ii) implementing an optimized PyTorch-based training stack supporting both model and data parallelism (iii) developing sharding algorithms capable of hierarchical partitioning of the embedding tables along row, column dimensions and load balancing them across multiple workers; (iv) adding high-performance core operators while retaining flexibility to support optimizers with fully deterministic updates (v) leveraging reduced precision communications, multi-level memory hierarchy (HBM+DDR+SSD) and pipelining. Furthermore, we develop and briefly comment on distributed data ingestion and other supporting services that are required for the robust and efficient end-to-end training in production environments.

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

↑