arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2204.13561cs.DC
收藏

FuncPipe:一个用于快速和经济高效地训练深度学习模型的流水线无服务器框架

FuncPipe: A Pipelined Serverless Framework for Fast and Cost-efficient Training of Deep Learning Models

Yunzhuo Liu, Bo Jiang, Tian Guo, Zimeng Huang, Wenhao Ma, Xinbing Wang, Chenghu Zhou

摘要:

在云中训练深度学习(DL)模型已成为一种常态。随着无服务器计算的出现及其真正的按需付费定价和可扩展性的好处,系统研究人员最近开始为基于无服务器的培训提供支持。然而,在无服务器平台上训练DL模型的能力受到当今无服务器基础设施的资源限制以及DL模型对内存和带宽的爆炸性需求的阻碍。本文介绍了FuncPipe,这是一种专为无服务器平台设计的新型流水线训练框架,可实现DL模型的快速和低成本训练。FuncPipe的设计具有关键的洞察力,即可以利用模型分区来弥合无服务器功能的容量与DL培训需求之间的内存和带宽差距。从概念上讲,我们必须回答几个设计问题,包括如何划分模型,配置每个无服务器功能,以及利用每个功能的上行链路/下行链路带宽。特别是,我们为无服务器环境量身定制了微批调度策略,作为后续优化的基础。我们的混合二次规划公式自动并同时配置无服务器资源和分区模型,以适应资源约束。最后,我们提出了一种新的流水线分散归约算法,提高了基于存储的同步的带宽效率。我们在两个流行的云无服务器平台上实现了FuncPipe,并表明与最先进的基于无服务器的框架相比,它实现了7%-77%的成本节约和1.3倍-2.2倍的加速。

英文摘要:

Training deep learning (DL) models in the cloud has become a norm. With the emergence of serverless computing and its benefits of true pay-as-you-go pricing and scalability, systems researchers have recently started to provide support for serverless-based training. However, the ability to train DL models on serverless platforms is hindered by the resource limitations of today's serverless infrastructure and DL models' explosive requirement for memory and bandwidth. This paper describes FuncPipe, a novel pipelined training framework specifically designed for serverless platforms that enable fast and low-cost training of DL models. FuncPipe is designed with the key insight that model partitioning can be leveraged to bridge both memory and bandwidth gaps between the capacity of serverless functions and the requirement of DL training. Conceptually simple, we have to answer several design questions, including how to partition the model, configure each serverless function, and exploit each function's uplink/downlink bandwidth. In particular, we tailor a micro-batch scheduling policy for the serverless environment, which serves as the basis for the subsequent optimization. Our Mixed-Integer Quadratic Programming formulation automatically and simultaneously configures serverless resources and partitions models to fit within the resource constraints. Lastly, we improve the bandwidth efficiency of storage-based synchronization with a novel pipelined scatter-reduce algorithm. We implement FuncPipe on two popular cloud serverless platforms and show that it achieves 7%-77% cost savings and 1.3X-2.2X speedup compared to state-of-the-art serverless-based frameworks.

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

↑