arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2312.05181cs.DCcs.AIcs.LG
收藏

Tenplex:使用可并行化张量集合的深度学习动态并行

Tenplex: Dynamic Parallelism for Deep Learning using Parallelizable Tensor Collections

Imperial College London(伦敦帝国学院);Aalto University(阿尔托大学);University of Edinburgh(爱丁堡大学)

Marcel Wagenländer, Guo Li, Bo Zhao, Luo Mai, Peter Pietzuch

AI总结:

本文提出Scalai状态管理库,通过可并行化张量集合(PTC)抽象外部化作业状态,实现深度学习作业在运行时GPU分配变化后动态更改多维并行配置,且具有低开销。

摘要:

深度学习(DL)作业使用多维并行,即结合数据并行、模型并行和流水线并行,以高效利用大型GPU集群。长期运行的作业可能会遇到其GPU分配发生变化的情况:(i)训练期间的资源弹性会增减GPU;(ii)硬件维护可能需要在不同的GPU上重新部署;以及(iii)GPU故障迫使作业在更少的设备上运行。当前的DL框架将作业绑定到一组GPU上,因此缺乏对这些场景的支持。特别是,它们无法以高效且与模型无关的方式更改已运行作业的多维并行。我们描述了Scalai,一个用于DL系统的状态管理库,它使作业能够在运行时更新GPU分配后动态更改其并行性。Scalai通过一种新的抽象——可并行化张量集合(PTC)来实现这一点,该抽象在训练期间将作业状态外部化。在GPU更改后,Scalai使用PTC转换作业状态:PTC在数据并行下重新分区数据集状态,并通过虚拟文件系统将其暴露给DL工作节点;PTC获取作为分区检查点的模型状态,并对其进行转换以反映新的并行化配置。为了提高效率,Scalai并行执行PTC转换,并尽量减少工作节点之间的数据移动。我们的实验表明,Scalai使DL作业能够以低开销支持动态并行化。

英文摘要:

Deep learning (DL) jobs use multi-dimensional parallelism, i.e. combining data, model, and pipeline parallelism, to use large GPU clusters efficiently. Long-running jobs may experience changes to their GPU allocation: (i) resource elasticity during training adds or removes GPUs; (ii) hardware maintenance may require redeployment on different GPUs; and (iii) GPU failures force jobs to run with fewer devices. Current DL frameworks tie jobs to a set of GPUs and thus lack support for these scenarios. In particular, they cannot change the multi-dimensional parallelism of an already-running job in an efficient and model-independent way. We describe Scalai, a state management library for DL systems that enables jobs to change their parallelism dynamically after the GPU allocation is updated at runtime. Scalai achieves this through a new abstraction, a parallelizable tensor collection (PTC), that externalizes the job state during training. After a GPU change, Scalai uses the PTC to transform the job state: the PTC repartitions the dataset state under data parallelism and exposes it to DL workers through a virtual file system; and the PTC obtains the model state as partitioned checkpoints and transforms them to reflect the new parallelization configuration. For efficiency, Scalai executes PTC transformations in parallel with minimum data movement between workers. Our experiments show that Scalai enables DL jobs to support dynamic parallelization with low overhead.

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

↑