arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.17817cs.DC
收藏

GPU内存与利用率估计用于训练感知的资源管理:机遇与局限

GPU Memory and Utilization Estimation for Training-Aware Resource Management: Opportunities and Limitations

IT University of Copenhagen(哥本哈根信息技术大学);University of Copenhagen(哥本哈根大学)

Ehsan Yousefzadeh-Asl-Miandoab, Reza Karimzadeh, Danyal Yorulmaz, Bulat Ibragimov, Pınar Tözün

AI总结:

本文分析了三种GPU内存估计方法的优劣,通过合成数据集评估了其准确性与通用性,并指出分析模型、CPU库和ML方法在通用性和硬件适应性上的局限。

摘要:

将深度学习训练任务集中化可以提高GPU利用率,但会带来资源竞争、严重延迟和内存不足(OOM)失败的风险。准确的内存估计对于可靠的集中化至关重要,而GPU利用率估计——作为竞争的代理指标——能够实现干扰感知调度。现有的GPU内存估计器分为三种范式——分析模型、CPU侧库和基于ML的估计器——每种都有不同的局限:依赖详细的模型规格、侵入性集成、泛化能力差和延迟开销大。GPU异质性进一步复杂了估计,因为相同的任务在不同代的硬件上可能表现出不同的内存足迹。GPU利用率仍然相对研究较少,进一步复杂化的是非加性利用率指标和GPU异质性。我们对每种范式中的代表性估计器——Horus、PyTorch FakeTensor和我们的轻量级ML估计器——进行了系统分析,评估了准确性、通用性和开销。我们构建了一个涵盖MLP、CNN和Transformer的合成数据集,具有受控的架构变化,并训练MLP和Transformer基于的估计器进行内存预测,并进行利用率估计。我们的评估揭示了关键的权衡,并验证了估计器在真实世界未见过的模型上的有效性。仍然存在重大挑战:分析模型缺乏泛化能力,无法轻易扩展到新的GPU架构或准确反映内存优化节省;CPU侧库带来侵入性集成开销;而分析和ML估计器依赖模型规格或计算图,限制了在多样化架构和硬件变体上的泛化能力。我们发布了所有数据集、工具和成果以支持进一步研究。

英文摘要:

Collocating deep learning training tasks improves GPU utilization but risks resource contention, severe slowdowns, and out-of-memory (OOM) failures. Accurate memory estimation is essential for robust collocation, and GPU utilization estimation -- a key proxy for contention -- enables interference-aware scheduling. Existing GPU memory estimators span three paradigms -- analytical models, CPU-side libraries, and ML-based estimators -- each with distinct limitations: dependence on detailed model specifications, intrusive integration, poor generalization, and varying latency overhead. GPU heterogeneity further complicates estimation, as identical tasks can exhibit different memory footprints across hardware generations. GPU utilization remains comparatively understudied, further complicated by non-additive utilization metrics and GPU heterogeneity. We conduct a systematic analysis of representative estimators from each paradigm -- Horus, PyTorch FakeTensor, and our lightweight ML-based estimator -- evaluating accuracy, generalizability, and overhead. We construct a synthetic dataset spanning MLPs, CNNs, and Transformers with controlled architectural variations, and train MLP- and Transformer-based estimators for memory prediction, and experiment with utilization estimation. Our evaluation reveals key tradeoffs and validates estimators against real-world unseen models. Significant challenges remain: analytical models lack generalization and cannot easily be extended to new GPU architectures or accurately reflect memory optimization savings; CPU-side libraries impose intrusive integration overhead; and both analytical and ML-based estimators rely on model specifications or computation graphs, limiting generalization across diverse architectures and hardware variants. We release all datasets, tools, and artifacts to support further research.

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

↑