Anatomy of a Data Pipeline in Deep Learning Training
Jens Birk Andersen, Vivek Shah, Javier González, Pinar Tözün
Abstract
Modern Deep Learning (DL) training runs on deeply layered software stacks that make the journey of data from storage to an accelerator hard to understand. Performance problems are therefore often attributed to data movement, and mitigation strategies are designed for it without analyzing where time actually goes. To better characterize the end-to-end performance and resource utilization of diverse modern DL pipelines, we study these pipelines across four domains of Natural Language Processing (NLP), Computer Vision, Medical Imaging, and Speech, using 11 open-weight models of varying size and type. We base our study on widely used open-source frameworks centered on PyTorch as the runtime, using high-performance NVIDIA H100 GPUs and NVMe SSDs. Our findings show that storage is not the bottleneck. It accounts for at most 7% of per-batch latency, and raw NVMe throughput exceeds end-to-end training throughput by 30-203 outside NLP and orders of magnitude in NLP. Bottlenecks instead depend on the domain. NLP training is compute-bound with Llama-3.2-3B reading under 50 KiB/s of training data from disk while keeping an H100 busy. By contrast, in Medical Imaging, decoding takes up to 83% of per-batch latency. We also find inefficiencies across the open-source deep learning software ecosystem. For example, multiprocessing dataloaders grow host (CPU) memory by 137 GiB at 48 workers and epoch boundaries stall training for up to 65 seconds. Furthermore, on NVMe SSDs, small checkpoints such as SegResNet's and 3D-UNet's (0.05 GiB) can be written every step at under 9% throughput cost, while Llama-3.2-3B's 18 GiB checkpoint written every 100 steps keeps 89% of throughput asynchronously but only 70% synchronously. We distill these results into domain-specific guidance for deploying and improving resource-efficient DL systems.
Create a lesson
Related papers
ASHE: Asynchronous Stage-owned Heterogeneous Elastic-averaging for Pipeline-Parallel Training
Shared title terminologycs.DCHamin Jung, Sookwang Lee, Shinyoung Ahn et al.
Preserving Optimizer Updates When Experts Move in MoE Training
Shared title terminologycs.DCYanming Lai, Yi Qin, Yongxin Hu et al.
Half a Bit per Parameter: How Much Optimizer State Does Training Need to Survive a Failed GPU?
Shared title terminologycs.DCZiyang Lin, Zixuan Sun
CAIEC: Co-Accelerating Inference and Entropy Coding for Learning-Based Scientific Data Compression
Shared title terminologycs.DCWenjing Huang, Yuhan Chen, Bing Lu et al.
Performance Analysis of Distributed Training with Ring AllReduce
Shared title terminologycs.DCFahimeh Fazel, Almut Burchard, Jörg Liebeherr
Pacemaker: Keeping Training Fed in Long-Horizon Agentic RL via Progress-Driven Training-Rollout Co-Orchestration
Shared title terminologycs.DCSongyun Qu, Yongzhi Xu, Tao Wu et al.