arXiv Science⌕ Search

arXiv subjects

Chengkai Sheng

Publications and source records attributed to Chengkai Sheng.

1 recordsLinked to original sources

TokenSimV3: Full-Stack Simulation for Agentic LLM Serving and Hardware-Software Co-Design

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.

cs.DC↗