arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.03887cs.DCcs.AI
收藏

通过动态分析实现深度学习作业的精确GPU内存预测

Accurate GPU Memory Prediction for Deep Learning Jobs through Dynamic Analysis

Jiabo Shi, Yehia Elkhatib

AI总结:

本文提出完全基于CPU的离线GPU内存预测工具VeritasEst,通过动态分析在调度前准确预测深度学习任务峰值显存,实验表明其相对误差降低84%、失败概率降低73%,可有效防止OOM并优化GPU分配。

摘要:

深度学习(DL)带来的收益对GPU资源造成了巨大压力,尤其是在GPU集群中,内存不足(OOM)错误是模型训练和资源高效利用的主要障碍。传统的OOM估计技术要么依赖静态图分析,要么依赖直接的GPU内存剖析,二者都存在固有局限:静态分析往往无法捕捉模型动态,而基于GPU的剖析则会加剧对稀缺GPU资源的争用。为克服这些限制,VeritasEst应运而生。它是一种创新的、完全基于CPU的分析工具,能够在不访问目标GPU的情况下准确预测深度学习训练任务所需的峰值GPU内存。这种“离线”预测能力是VeritasEst的核心优势,使得在任务调度之前就能获得准确的内存占用信息,从而有效防止OOM并优化GPU分配。其性能通过在卷积神经网络(CNN)模型上进行的数千次实验运行得到验证:与基线GPU内存估计器相比,VeritasEst将相对误差显著降低了84%,并将估计失败概率降低了73%。VeritasEst代表着在资源受限环境中迈向高效且可预测的深度学习训练的关键一步。

英文摘要:

The benefits of Deep Learning (DL) impose significant pressure on GPU resources, particularly within GPU cluster, where Out-Of-Memory (OOM) errors present a primary impediment to model training and efficient resource utilization. Conventional OOM estimation techniques, relying either on static graph analysis or direct GPU memory profiling, suffer from inherent limitations: static analysis often fails to capture model dynamics, whereas GPU-based profiling intensifies contention for scarce GPU resources. To overcome these constraints, VeritasEst emerges. It is an innovative, entirely CPU-based analysis tool capable of accurately predicting the peak GPU memory required for DL training tasks without accessing the target GPU. This "offline" prediction capability is core advantage of VeritasEst, allowing accurate memory footprint information to be obtained before task scheduling, thereby effectively preventing OOM and optimizing GPU allocation. Its performance was validated through thousands of experimental runs across convolutional neural network (CNN) models: Compared to baseline GPU memory estimators, VeritasEst significantly reduces the relative error by 84% and lowers the estimation failure probability by 73%. VeritasEst represents a key step towards efficient and predictable DL training in resource-constrained environments.

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

↑