Maya:利用GPU运行时仿真优化深度学习训练工作负载
Maya: Optimizing Deep Learning Training Workloads using GPU Runtime Emulation
AI总结:
针对大型基础模型训练优化中手动试错低效、现有性能建模系统存在语义鸿沟的问题,提出Maya通过GPU运行时仿真拦截API调用捕获完整工作负载行为,实现低误差预测并识别出可降低56%训练成本的配置。
摘要:
训练大型基础模型的成本高达数亿美元,因此部署优化至关重要。当前方法要求机器学习工程师在昂贵的计算集群上通过易出错的试错法手动设计训练方案。为实现训练配置的高效探索,研究人员开发了性能建模系统。然而,这些系统迫使用户将工作负载转换为自定义规范语言,在实际工作负载与其表示之间引入了根本性的语义鸿沟。这一鸿沟造成了固有的权衡:系统要么支持狭窄的工作负载集以保持可用性,要么需要限制实际采用的复杂规范,要么通过简化的性能模型牺牲预测准确性。我们提出Maya,一种通过透明设备仿真消除这些权衡的性能建模系统。通过在训练框架和加速器设备之间的窄接口上运行,Maya无需代码修改或转换即可捕获完整的工作负载行为。Maya拦截未修改训练代码的设备API调用,直接观察低级操作,在保持易用性和通用性的同时实现准确的性能预测。我们的评估表明,Maya在不同模型和优化策略上实现了低于5%的预测误差,识别出与现有方法相比可降低高达56%训练成本的配置。
英文摘要:
Training large foundation models costs hundreds of millions of dollars, making deployment optimization critical. Current approaches require machine learning engineers to manually craft training recipes through error-prone trial-and-error on expensive compute clusters. To enable efficient exploration of training configurations, researchers have developed performance modeling systems. However, these systems force users to translate their workloads into custom specification languages, introducing a fundamental semantic gap between the actual workload and its representation. This gap creates an inherent tradeoff: systems must either support a narrow set of workloads to maintain usability, require complex specifications that limit practical adoption, or compromise prediction accuracy with simplified performance models. We present Maya, a performance modeling system that eliminates these tradeoffs through transparent device emulation. By operating at the narrow interface between training frameworks and accelerator devices, Maya can capture complete workload behavior without requiring code modifications or translations. Maya intercepts device API calls from unmodified training code to directly observe low-level operations, enabling accurate performance prediction while maintaining both ease of use and generality. Our evaluation shows Maya achieves less than 5% prediction error across diverse models and optimization strategies, identifying configurations that reduce training costs by up to 56% compared to existing approaches.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。