UltraSim: Simulating Large-Scale AI Clusters at Packet Level on GPUs
Man-Kit Sit, Matej Sandor, Yi-Chieh Wang, Guangming Sheng, Nick Lau, Luo Mai
Abstract
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.
Create a lesson
Related papers
Clock-Variable Discrete Simulated Bifurcation: A GPU Algorithm for Large-Scale Discrete-Phase Optimization
Shared title terminologycs.DCYaocheng Chen, Jiapei Zhuang
Ossim: OS-Driven Live Simulation for Cluster-Scale Full-Stack Evaluation (Extended Version)
Shared title terminologycs.DCYiliang Wan, Jonas Kaufmann, Yihan Yang et al.
Effective Parallel Discrete Event Simulation on NUMA Machines through Ubiquitous Simulation-Object State
Shared title terminologycs.DCFrancesco Quaglia
HPC Navigator: A Researcher's App for Using Shared GPU Clusters with AI Agents
Shared title terminologycs.DCSebastian Haan
RONDO: Segment-Level Continuous Batching for Multi-Tenant Flow-VLA Serving
Shared title terminologycs.DCJiahua Huang, Weiwei Lin, Wentai Wu et al.
CES: A Validated, Reproducible, and Scalable Simulator for the Edge-Cloud Continuum
Shared title terminologycs.DCNam Do, Rezwan Ahmad Nayreed, Henna Kokkonen et al.