Mystique:实现生产级AI基准的精确且可扩展生成
Mystique: Enabling Accurate and Scalable Generation of Production AI Benchmarks
AI总结:
Mystique利用PyTorch执行轨迹以算子粒度捕获AI模型运行时信息,通过轻量级数据采集和ET可组合性,实现生产级AI基准的精确、可扩展且可移植的生成。
摘要:
构建大规模AI计算集群以支持快速增长的深度学习工作负载,是当今云服务提供商积极研究的课题。生成精确的基准测试在为此领域设计快速迭代的软硬件解决方案中起着至关重要的作用。实现可扩展性的两个根本挑战是:(i)工作负载的代表性,以及(ii)将集群中的变化快速纳入基准测试的能力。为克服这些问题,我们提出了Mystique,一个用于生产级AI基准生成的精确且可扩展的框架。它利用PyTorch执行轨迹(ET)——一种以图格式在算子粒度上捕获AI模型运行时信息及其元数据的新特性。通过采集集群中的ET,我们能够构建可移植且具有代表性的AI基准。Mystique具有可扩展性,因为其轻量级的数据收集方式在运行时开销和插桩工作量方面都很小。它还具有自适应性,因为ET的可组合性允许对基准创建进行灵活控制。我们在多个生产级AI模型上评估了我们的方法,并表明使用Mystique生成的基准在执行时间和系统级指标上都与原始AI模型高度相似。我们还展示了所生成基准跨平台的可移植性,并演示了由执行轨迹的细粒度可组合性所支持的若干用例。
英文摘要:
Building large AI fleets to support the rapidly growing DL workloads is an active research topic for modern cloud providers. Generating accurate benchmarks plays an essential role in designing the fast-paced software and hardware solutions in this space. Two fundamental challenges to make this scalable are (i) workload representativeness and (ii) the ability to quickly incorporate changes to the fleet into the benchmarks. To overcome these issues, we propose Mystique, an accurate and scalable framework for production AI benchmark generation. It leverages the PyTorch execution trace (ET), a new feature that captures the runtime information of AI models at the granularity of operators, in a graph format, together with their metadata. By sourcing fleet ETs, we can build AI benchmarks that are portable and representative. Mystique is scalable, due to its lightweight data collection, in terms of runtime overhead and instrumentation effort. It is also adaptive because ET composability allows flexible control on benchmark creation. We evaluate our methodology on several production AI models, and show that benchmarks generated with Mystique closely resemble original AI models, both in execution time and system-level metrics. We also showcase the portability of the generated benchmarks across platforms, and demonstrate several use cases enabled by the fine-grained composability of the execution trace.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。