arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.06982cs.LG
收藏

机器学习集群效率:利用ML生产力有效吞吐分析与优化大规模Google TPU系统

Machine Learning Fleet Efficiency: Analyzing and Optimizing Large-Scale Google TPU Systems with ML Productivity Goodput

Google(谷歌);Harvard University(哈佛大学)

Arissa Wongpanich, Tayo Oguntebi, Jose Baiocchi Paredes, Yu Emma Wang, Phitchaya Mangpo Phothilimthana, Ritwika Mitra, Zongwei Zhou, Naveen Kumar, Vijay Janapa Reddi

AI总结:

针对大型Google TPU ML集群,提出MPG指标以衡量效率,并系统分析性能瓶颈,提供优化策略,实证显示显著改进。

摘要:

近年来,机器学习(ML)工作负载已部署在仓库级计算(WSC)环境中,也称为ML集群。随着大型模型的兴起和ML应用需求的增长,对ML集群的计算需求不断增加,衡量和提高此类系统的效率变得日益关键。然而,目前尚无成熟的方法来表征ML集群性能并据此识别潜在的性能优化点。本文基于Google的TPU对ML集群进行了大规模分析,引入了一个框架来捕获集群范围的效率,系统地评估性能特征,并为集群识别优化策略。我们首先定义ML集群,概述其组成部分,并分析一个在生产环境中包含数千个加速器、运行多样化工作负载的Google ML集群实例。我们的研究揭示了几个关键见解:第一,ML集群不仅限于硬件层,模型、数据、框架、编译器和调度层对性能有显著影响;第二,ML集群的异构性给表征单个工作负载的性能带来了挑战;第三,传统的基于利用率(utilization)的指标不足以用于ML集群的表征。为应对这些挑战,我们提出了“ML生产力有效吞吐”(MPG)指标来衡量ML集群效率。我们展示了如何利用该指标在ML系统栈的各层面对集群进行表征。我们还提出了使用MPG识别和优化性能瓶颈的方法,为管理仓库级ML系统提供了通用策略。最后,我们展示了将这些方法应用于面向内部Google TPU工作负载的真实ML集群的定量评估结果,并观察到了切实的改进。

英文摘要:

Recent years have seen the emergence of machine learning (ML) workloads deployed in warehouse-scale computing (WSC) settings, also known as ML fleets. As the computational demands placed on ML fleets have increased due to the rise of large models and growing demand for ML applications, it has become increasingly critical to measure and improve the efficiency of such systems. However, there is not yet an established methodology to characterize ML fleet performance and identify potential performance optimizations accordingly. This paper presents a large-scale analysis of an ML fleet based on Google's TPUs, introducing a framework to capture fleet-wide efficiency, systematically evaluate performance characteristics, and identify optimization strategies for the fleet. We begin by defining an ML fleet, outlining its components, and analyzing an example Google ML fleet in production comprising thousands of accelerators running diverse workloads. Our study reveals several critical insights: first, ML fleets extend beyond the hardware layer, with model, data, framework, compiler, and scheduling layers significantly impacting performance; second, the heterogeneous nature of ML fleets poses challenges in characterizing individual workload performance; and third, traditional utilization-based metrics prove insufficient for ML fleet characterization. To address these challenges, we present the "ML Productivity Goodput" (MPG) metric to measure ML fleet efficiency. We show how to leverage this metric to characterize the fleet across the ML system stack. We also present methods to identify and optimize performance bottlenecks using MPG, providing strategies for managing warehouse-scale ML systems in general. Lastly, we demonstrate quantitative evaluations from applying these methods to a real ML fleet for internal-facing Google TPU workloads, where we observed tangible improvements.

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

↑