TokenSimV3: Full-Stack Simulation for Agentic LLM Serving and Hardware-Software Co-Design
Zhuohang Bian, Songhan Huang, Zhuoran Li, Feiyang Wu, Chengkai Sheng, Teng Ma, Yun Liang, Youwei Zhuo
Abstract
Evaluating large language model (LLM) serving policies and emerging hardware architectures directly on physical multi-node clusters is slow and prohibitively expensive. Simulation provides a fast alternative, yet existing simulators largely target single-node execution with flat memory and independent requests, offering little help in real deployments governed by distributed communication, multi-tier KV Cache management, and stateful agentic workflows. We present TokenSimV3, a fast, extensible full-stack simulator for multi-node agentic and disaggregated LLM serving. First, TokenSimV3 reproduces the distributed agent serving environment across heterogeneous attention models and a three-tier KV Cache hierarchy spanning GPU memory, host DRAM, and shared cluster storage. Second, to avoid exhaustive profiling, TokenSimV3 unifies sparse local measurements with physical scaling laws to extrapolate across million-token contexts and multi-node collectives. Validated on production GB200/GB300 clusters, TokenSimV3 predicts multi-node agent throughput within 7.1%-9.9% error and single-node time-to-first-token within 0.20%-7.47% error up to 1M context, while running up to 57x faster than existing serving simulators and 553x faster than packet-level network simulators. We further use TokenSimV3 to uncover system design insights across programmable KV Cache policies, Prefill-Decode and Attention-FFN disaggregation, Groq LPX accelerators, and High-Bandwidth Flash (HBF) storage. TokenSimV3 is publicly available at https://github.com/pku-lemonade/TokenSim.
Create a lesson
Metadata
- Comments
- 14 pages, 16 figures, 2 tables
Related papers
Ossim: OS-Driven Live Simulation for Cluster-Scale Full-Stack Evaluation (Extended Version)
Shared title terminologycs.DCYiliang Wan, Jonas Kaufmann, Yihan Yang et al.
μSmith: An Agentic Factory for the Fastest Specialized LLM Serving Engines
Shared title terminologycs.DCYaoyao Ding, Qidong Su, Baorun Mu et al.
Presage: Server-Aware Configuration and Predictive Scheduling for LLM Agent Serving
Shared title terminologycs.DCBotao Zhu, Xiaoyi Fan, Yifei Zhu
When, Which, and What to Fork: The Launch-Policy Design Space for LLM Agents
Shared title terminologycs.DCZirui Wang, Mohamed M. Kassem, Adam Barker
RePrism: Joint Request and Representation Scheduling for LLM Agent Serving
Shared title terminologycs.DCXijiang Shen, Aoli Zhu, Yanbo Tan et al.
Contexture: Runtime Context Eviction for High-Throughput Agent Serving
Shared title terminologycs.DCColin Hong, Bryan Shan, Wei Siong Pang et al.