ServeCast: Predicting LLM Serving Throughput and Latency Across Models from Microbenchmarks
Abstract
Deciding how to deploy an LLM means predicting its throughput and latency under varying load. Benchmarking every candidate model on every GPU is expensive, and prediction is complicated by continuous batching and by request contexts that evolve. We introduce ServeCast, a performance model that follows requests with variable prompt and output lengths through admission, prefill, and decode under limited GPU memory. Its explicit parameters describe the LLM architecture and the clock and memory bandwidth of the GPU, and three timing coefficients are calibrated with microbenchmarks. To predict how a different LLM is served on the same GPU, ServeCast may transfer the performance model. The transfer updates the explicit parameters and keeps the timing coefficients fitted on a different LLM, so no re-profiling is needed. Our extensive numerical evaluation spans three GPUs, six LLMs, and three trace-derived workloads, comparing ServeCast with Vidur, a widely used simulator. When both are calibrated on the target, the aggregate mean absolute percentage error (MAPE) of ServeCast is 6.4% for mean request throughput, 11.9% for time to first token (TTFT), and 7.5% for time per output token (TPOT), against 8.9%, 25.0%, and 8.6% for Vidur, respectively. Under cross-model transfer, throughput and TPOT errors are comparable to those of Vidur, which requires calibration for each model/GPU pair, while ServeCast's aggregate TTFT predictions are still more accurate.
Create a lesson
Metadata
- Categories
- cs.PF, cs.DC
- Comments
- 25 pages, 3 figures, 15 tables. Code: https://github.com/servecast/servecast
Related papers
High-Throughput Serving of Nemotron 3.5 Transcribe with Regime-Aware Megakernels and Kernel Fusion
Shared title terminologycs.PFAditya Chatterjee, Sanjay Singh Chauhan, Mayank Jain et al.
Decomposing Predictive Kubernetes Autoscaling for Large Language Model Serving Under Long Startup Delays
Shared title terminologycs.PFTianrui Liu, Xiaohai Hu
HiPerfCC-KVCache: Accelerating Confidential LLM Serving with Hierarchical KV Caching
Shared title terminologycs.PFHaoxuan Xu, Shaoyu Wang, Minghao Lin et al.
LLMRunner: Closed Workload Model Performance Testing Framework for LLM Servings
Shared title terminologycs.PFArush Upadhyaya, Debadatta Mishra
WINIC: An Automatic Cycle-Accurate Multi-Platform Microbenchmarking Tool for Instruction Performance Metrics
Shared title terminologycs.PFTobias Rühl, Jan Laukemann, Georg Hager et al.
Sparse Predict and Demote: Optimal Scheduling with Minimal Size Advice
Shared title terminologycs.PFChengyi Liu, Thodoris Lykouris, Junxuan Shen et al.