Efficient Use of GPU Memory for Large-Scale Deep Learning Model Training
Open Access
- 4 November 2021
- journal article
- research article
- Published by MDPI AG in Applied Sciences
- Vol. 11 (21) , 10377
Abstract
To achieve high accuracy when performing deep learning, it is necessary to use a large-scale training model. However, due to the limitations of GPU memory, it is difficult to train large-scale training models within a single GPU. NVIDIA introduced a technology called CUDA Unified Memory with CUDA 6 to overcome the limitations of GPU memory by virtually combining GPU memory and CPU memory. In addition, in CUDA 8, memory advise options are introduced to efficiently utilize CUDA Unified Memory. In this work, we propose a newly optimized scheme based on CUDA Unified Memory to efficiently use GPU memory by applying different memory advise to each data type according to access patterns in deep learning training. We apply CUDA Unified Memory technology to PyTorch to see the performance of large-scale learning models through the expanded GPU memory. We conduct comprehensive experiments on how to efficiently utilize Unified Memory by applying memory advises when performing deep learning. As a result, when the data used for deep learning are divided into three types and a memory advise is applied to the data according to the access pattern, the deep learning execution time is reduced by 9.4% compared to the default Unified Memory.Keywords
Funding Information
- National Research Foundation of Korea (NRF-2020R1F1A1072696)
- Institute for Information and Communications Technology Promotion (ITP-2021-2018-0-0142)
- Gyeonggi-do Regional Research Center (GRRC-KAU-2017-B01)
This publication has 14 references indexed in Scilit:
- ZeRO: Memory optimizations Toward Training Trillion Parameter Models2020
- Towards an optimized distributed deep learning framework for a heterogeneous multi-GPU clusterCluster Computing, 2020
- Performance Evaluation of Advanced Features in CUDA Unified Memory2019
- Comprehensive techniques of multi-GPU memory optimization for deep learning accelerationCluster Computing, 2019
- Regularized Evolution for Image Classifier Architecture SearchProceedings of the AAAI Conference on Artificial Intelligence, 2019
- Efficient Large-Scale Deep Learning Framework for Heterogeneous Multi-GPU Cluster2019
- OC-DNN: Exploiting Advanced Unified Memory Capabilities in CUDA 9 and Volta GPUs for Out-of-Core DNN Training2018
- DRAGON: Breaking GPU Memory Capacity Limits with Direct NVM Access2018
- Efficient Multi-GPU Memory Management for Deep Learning Acceleration2018
- Deep Networks with Stochastic Depth2016