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

面向深度学习训练的 GPU 上协同定位分析

An Analysis of Collocation on GPUs for Deep Learning Training

IT University of Copenhagen(哥本哈根信息技术大学)

Ties Robroek, Ehsan Yousefzadeh-Asl-Miandoab, Pınar Tözün

AI总结:

本文在 A100 上对比 MIG、MPS 与多进程协同定位,分析不同模型组合下的深度学习训练性能,发现 MPS 对单用户最灵活高效。

摘要:

深度学习训练是一项广泛使用 GPU 的昂贵过程,但并非所有模型训练都会使现代强大 GPU 达到饱和。Multi-Instance GPU(MIG,多实例 GPU)是 NVIDIA 推出的一项新技术,可对 GPU 进行分区,以更好地适配不需要整块 GPU 全部内存和计算资源的工作负载。本文考察了支持 MIG 的 A100 GPU 在包含各种模型规模和组合的深度学习工作负载下的性能。我们将 MIG 的优势与 GPU 上较早的工作负载协同定位方法进行对比:在同一 GPU 上朴素地提交多个进程,以及使用 Multi-Process Service(MPS,多进程服务)。结果表明,协同定位多个模型训练运行可带来显著收益。在某些情况下,尽管 epoch 时间增加,但训练吞吐量最高可达四倍。另一方面,并行训练模型的总内存占用和计算需求必须适配 GPU 的可用内存与计算资源。得益于无干扰分区,MIG 可能具有优势,尤其是在模型规模与 MIG 分区选项相匹配时。然而,对于更动态的混合工作负载,MIG 刚性的分区可能导致次优的 GPU 利用率。总体而言,对于提交训练作业的单个用户,我们推荐将 MPS 作为模型训练协同定位中性能最佳、最灵活的形式。

英文摘要:

Deep learning training is an expensive process that extensively uses GPUs, but not all model training saturates modern powerful GPUs. Multi-Instance GPU (MIG) is a new technology introduced by NVIDIA that can partition a GPU to better-fit workloads that do not require all the memory and compute resources of a full GPU. In this paper, we examine the performance of a MIG-enabled A100 GPU under deep learning workloads containing various sizes and combinations of models. We contrast the benefits of MIG to older workload collocation methods on GPUs: naïvely submitting multiple processes on the same GPU and utilizing Multi-Process Service (MPS). Our results demonstrate that collocating multiple model training runs may yield significant benefits. In certain cases, it can lead up to four times training throughput despite increased epoch time. On the other hand, the aggregate memory footprint and compute needs of the models trained in parallel must fit the available memory and compute resources of the GPU. MIG can be beneficial thanks to its interference-free partitioning, especially when the sizes of the models align with the MIG partitioning options. MIG's rigid partitioning, however, may create sub-optimal GPU utilization for more dynamic mixed workloads. In general, we recommend MPS as the best performing and most flexible form of collocation for model training for a single user submitting training jobs.

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

↑