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

分析和改进用于高延迟存储的PyTorch数据加载器:技术报告

Profiling and Improving the PyTorch Dataloader for high-latency Storage: A Technical Report

Institute of Advanced Research in Artificial Intelligence(人工智能高级研究院)

Ivan Svogor, Christian Eichenberger, Markus Spanring, Moritz Neun, Michael Kopp

摘要:

最近,越来越多的机器学习框架通过允许直接使用复杂的神经网络架构和算法,使深度学习能够被更广泛的工程师、科学家和从业者所使用。然而,由于深度学习正在迅速发展,不仅通过理论进步,而且在硬件和软件工程方面,ML框架通常会失去向后兼容性,并引入可能导致瓶颈和次优资源利用率的技术债务。此外,在大多数情况下,重点不是深度学习工程,而是新模型和理论进步。然而,在这项工作中,我们重点关注工程,更具体地说是PyTorch框架中的数据加载管道。我们设计了一系列基准测试,概述了数据加载过程中某些步骤的性能问题。我们的研究结果表明,对于涉及加载许多文件(如图像)的分类任务,训练墙时间可以显着提高。通过我们新的、经过修改的ConcurrentDataloader,我们可以提高GPU利用率,并将批加载时间显著缩短至原来的12倍。这允许对数据集使用基于云的、类似S3的对象存储,并且具有与数据集存储在本地驱动器上相当的训练时间。

英文摘要:

A growing number of Machine Learning Frameworks recently made Deep Learning accessible to a wider audience of engineers, scientists, and practitioners, by allowing straightforward use of complex neural network architectures and algorithms. However, since deep learning is rapidly evolving, not only through theoretical advancements but also with respect to hardware and software engineering, ML frameworks often lose backward compatibility and introduce technical debt that can lead to bottlenecks and sub-optimal resource utilization. Moreover, the focus is in most cases not on deep learning engineering, but rather on new models and theoretical advancements. In this work, however, we focus on engineering, more specifically on the data loading pipeline in the PyTorch Framework. We designed a series of benchmarks that outline performance issues of certain steps in the data loading process. Our findings show that for classification tasks that involve loading many files, like images, the training wall-time can be significantly improved. With our new, modified ConcurrentDataloader we can reach improvements in GPU utilization and significantly reduce batch loading time, up to 12X. This allows for the use of the cloud-based, S3-like object storage for datasets, and have comparable training time as if datasets are stored on local drives.

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

↑