arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.01616cs.DCcs.LGcs.PF
收藏

Phantora:在基于仿真的机器学习系统性能估计中最大化代码复用

Phantora: Maximizing Code Reuse in Simulation-based Machine Learning System Performance Estimation

Duke University(杜克大学);Meta;University of California, Berkeley(加州大学伯克利分校)

Jianxing Qin, Jingrong Chen, Xinhao Kong, Yongji Wu, Tianjun Yuan, Liang Luo, Zhaodong Wang, Ying Zhang, Tingjun Chen, Alvin R. Lebeck, Danyang Zhuo

AI总结:

Phantora提出混合仿真方法,在容器化环境中直接执行未修改的ML框架并模拟GPU与通信操作,实现高保真性能估计,避免重新实现,支持LLM训练框架且仅需单GPU。

摘要:

现代机器学习(ML)训练工作负载对计算和通信资源提出了大量需求。因此,准确的性能估计对于指导系统设计决策(如并行化策略的选择、集群配置和硬件配置)变得越来越关键。现有的基于仿真的性能估计需要在仿真器中重新实现ML框架,这需要大量的人工努力,并且随着ML框架的快速发展难以维护。本文介绍了Phantora,一种用于ML训练工作负载性能估计的混合GPU集群仿真器。Phantora在分布式容器化环境中按原样执行未修改的ML框架。每个容器模拟大规模集群中GPU服务器的行为,而Phantora拦截并模拟与GPU和通信相关的操作,以提供高保真的性能估计。我们将这种方法称为ML系统的混合仿真,与模拟静态工作负载的传统方法形成对比。混合仿真的主要优势在于它允许在仿真中直接复用ML框架源代码,避免了重新实现的需要。我们的评估表明,Phantora提供了与静态工作负载仿真相当的准确性,同时开箱即用地支持三个最先进的LLM训练框架。此外,Phantora在单个GPU上运行,消除了传统基于轨迹的仿真器所需的资源密集型轨迹收集和工作负载提取步骤。Phantora已在https://github.com/QDelta/Phantora开源。

英文摘要:

Modern machine learning (ML) training workloads place substantial demands on both computational and communication resources. Consequently, accurate performance estimation has become increasingly critical for guiding system design decisions, such as the selection of parallelization strategies, cluster configurations, and hardware provisioning. Existing simulation-based performance estimation requires reimplementing the ML framework in a simulator, which demands significant manual effort and is hard to maintain as ML frameworks evolve rapidly. This paper introduces Phantora, a hybrid GPU cluster simulator designed for performance estimation of ML training workloads. Phantora executes unmodified ML frameworks as is within a distributed, containerized environment. Each container emulates the behavior of a GPU server in a large-scale cluster, while Phantora intercepts and simulates GPU- and communication-related operations to provide high-fidelity performance estimation. We call this approach hybrid simulation of ML systems, in contrast to traditional methods that simulate static workloads. The primary advantage of hybrid simulation is that it allows direct reuse of ML framework source code in simulation, avoiding the need for reimplementation. Our evaluation shows that Phantora provides accuracy comparable to static workload simulation while supporting three state-of-the-art LLM training frameworks out-of-the-box. In addition, Phantora operates on a single GPU, eliminating the need for the resource-intensive trace collection and workload extraction steps required by traditional trace-based simulators. Phantora is open-sourced at https://github.com/QDelta/Phantora.

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

↑