arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2612.00096cs.DC
收藏

UltraSim:在GPU上以数据包级别模拟大规模AI集群

UltraSim: Simulating Large-Scale AI Clusters at Packet Level on GPUs

University of Edinburgh(爱丁堡大学);Tencent(腾讯)

Man-Kit Sit, Matej Sandor, Yi-Chieh Wang, Guangming Sheng, Nick Lau, Luo Mai

AI总结:

UltraSim是一款在GPU上运行的数据包级AI集群模拟器,通过分离流的顺序与时序实现并行处理,模拟速度远超SimAI、ns-3等工具,将AI集群配置探索时间从数周缩短至数小时。

摘要:

在大规模集群上高效部署大语言模型(LLM)工作负载需要探索并行化、部署位置和通信的多种配置,而这在生产集群上是不现实的。数据包级模拟提供了这种探索所需的保真度,但基于CPU的模拟器在数千个GPU上的每个训练步骤需要数小时,因此设计探索需要数周时间。GPU模拟器为了速度而牺牲了因果性或AI集群的无损传输。我们提出UltraSim,这是一种完全在GPU上作为单个持久内核运行的AI集群数据包级模拟器。我们的关键观察是,LLM工作负载的流及其顺序在模拟前是已知的,只有它们的时序取决于网络。这种分离使UltraSim能够并行处理数千个流的数据包,同时保留因果性和无损传输。在一个物理GPU上,UltraSim在3小时内完成DeepSeek V4-Pro的2048-GPU训练步骤的模拟,而SimAI在两天内无法完成。它模拟LLM训练和推理的速度分别比SimAI快109倍和138倍,并且在8个GPU上的同步强化学习步骤与实际部署的偏差在4.7%以内。在单个4096-GPU全对全操作中,它比ns-3快82倍,往返时间和流完成时间的偏差在0.1%以内。UltraSim将AI集群配置探索从数周缩短到数小时。

英文摘要:

Deploying LLM workloads efficiently on a large cluster requires exploring many configurations of parallelisation, placement, and communication, which is impractical on a production cluster. Packet-level simulation provides the fidelity this exploration needs, but CPU-based simulators need hours per training step across thousands of GPUs, so a design sweep takes weeks. GPU simulators trade off causality or the lossless transport of AI clusters for speed. We present UltraSim, a packet-level simulator for AI clusters that runs entirely on a GPU as a single persistent kernel. Our key observation is that the flows of an LLM workload and their order are known before the simulation, and only their timing depends on the network. This separation lets UltraSim process the packets of thousands of flows in parallel while preserving causality and lossless transport. On one physical GPU, UltraSim simulates a 2,048-GPU training step of DeepSeek V4-Pro in 3 hours, which SimAI does not finish in two days. It simulates LLM training and inference up to 109x and 138x faster than SimAI, and a synchronous reinforcement learning step on eight GPUs within 4.7% of the real deployment. On a single 4,096-GPU all-to-all it is 82x faster than ns-3, with round-trip and flow completion times within 0.1%. UltraSim reduces AI cluster configuration exploration from weeks to hours.

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

↑