- Title
- Estimating GPU memory consumption of deep learning models
- Creator
- Gao, Yanjie; Liu, Yu; Zhang, Hongyu; Li, Zhengxian; Zhu, Yonghao; Lin, Haoxiang; Yang, Mao
- Relation
- ESEC/FSE 2020: Proceedings of the 28th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software . Proceedings of 28th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering (online 08-13 November, 2020) p. 1342-1352
- Publisher Link
- http://dx.doi.org/10.1145/3368089.3417050
- Publisher
- Association for Computing Machinery
- Resource Type
- conference paper
- Date
- 2020
- Description
- Deep learning (DL) has been increasingly adopted by a variety of software-intensive systems. Developers mainly use GPUs to accelerate the training, testing, and deployment of DL models. However, the GPU memory consumed by a DL model is often unknown to them before the DL job executes. Therefore, an improper choice of neural architecture or hyperparameters can cause such a job to run out of the limited GPU memory and fail. Our recent empirical study has found that many DL job failures are due to the exhaustion of GPU memory. This leads to a horrendous waste of computing resources and a significant reduction in development productivity. In this paper, we propose DNNMem, an accurate estimation tool for GPU memory consumption of DL models. DNNMem employs an analytic estimation approach to systematically calculate the memory consumption of both the computation graph and the DL framework runtime. We have evaluated DNNMem on 5 real-world representative models with different hyperparameters under 3 mainstream frameworks (TensorFlow, PyTorch, and MXNet). Our extensive experiments show that DNNMem is effective in estimating GPU memory consumption.
- Subject
- deep learning; memory consumption; estimation model; program analysis
- Identifier
- http://hdl.handle.net/1959.13/1451891
- Identifier
- uon:44305
- Identifier
- ISBN:9781450370431
- Language
- eng
- Reviewed
- Hits: 881
- Visitors: 876
- Downloads: 0
Thumbnail | File | Description | Size | Format |
---|