LLM Inference Capacity Planning: Engineering Practices Behind a 570% Surge in Weekly Token Usage
This article examines the engineering practices required to handle rapid growth in large language model inference traffic, using a reported 570% week-over-week jump in weekly token calls as background. It explains why token-level metrics replace QPS for capacity planning, how to structure elastic scaling across the ingress, inference replica, and queue layers, and how continuous batching, chunked prefill, and KV cache management raise per-GPU throughput. It also covers exact, prefix, and semantic caching, token-level observability and cost attribution, and stability measures such as multi-zone deployment and pulse load testing. The goal is to help developers keep latency stable and costs controlled during traffic spikes.
1. Reading the Signal Behind the Usage Rankings
A third-party usage tracking platform recently reported that global weekly LLM call volume reached roughly 69 trillion tokens, up more than 20% week over week. The China region accounted for about 34.25 trillion tokens per week, growing at a similar pace of around 20% and holding the top spot globally for several consecutive weeks. At the single-model level, the production release of one general-purpose model led with about 8.83 trillion tokens per week, a week-over-week increase of roughly 570%. The next two domestic models recorded about 8.05 trillion and 5.39 trillion tokens per week, with very different growth and decline rates.
This article does not evaluate any specific vendor or product; these numbers serve only as quantitative background for an industry trend. For developers, the useful information is not “who ranks first” but the three technical facts revealed by this data:
- Inference traffic is now the dominant load source. Unlike the earlier compute consumption structure, which was dominated by training, token-level call volume is growing exponentially. The core tension in cluster resource planning has shifted from “training job queuing” to “throughput and latency of online inference.”
- Growth is bursty, not smoothly linear. A 570% week-over-week increase cannot be explained by organic user growth alone. It is more likely triggered by version launches, limited-time free quotas, or upstream application integrations. This requires scaling capability measured in minutes, or even seconds.
- Head concentration is significant. Call volume is heavily concentrated on a few models, and a single hotspot creates obvious load imbalance. Traffic governance must happen at the front end, not just by adding machines at the back end.
2. Capacity Planning: Treating Tokens as a First-Class Resource Metric
Traditional web service capacity planning centers on QPS, but QPS is nearly meaningless in LLM inference. One request may generate 50 tokens; another may generate 8,000. The compute cost of the two differs by two orders of magnitude. The capacity model must therefore be built on the token dimension:
- Input tokens (prefill phase): compute-intensive and highly parallelizable, with pressure mainly on compute and memory bandwidth.
- Output tokens (decode phase): memory-access-intensive, generated autoregressively one token at a time, with pressure mainly on memory capacity and bandwidth, and high sensitivity to batch size.
A practical capacity estimation approach looks like this (illustrative code, meant to show the measurement method rather than a specific product interface):
# Back-calculate capacity from output tokens produced per GPU per secondtarget_output_tps = 50_000 # target output throughput (tokens/s)per_gpu_output_tps = 800 # measured single-GPU output throughput (tokens/s)headroom = 1.4 # reserve 40% headroom for burstsrequired_gpus = math.ceil(target_output_tps * headroom / per_gpu_output_tps)print(required_gpus) # 88
The key point is that per_gpu_output_tps must come from your own load testing, with a two-dimensional baseline table built across model architectures, quantization schemes, and context length tiers. Capacity planning detached from real measurements will inevitably collapse in the face of a 570% spike.
3. Elastic Scaling: A Layered Strategy for Burst Traffic
A single scaling strategy is not enough for short-term multiples of growth. Three layers are recommended:
Layer 1: Ingress rate limiting and priority queues. During the window before scaling completes, use token buckets to allocate quotas per tenant, separating high-value traffic (such as paying enterprise tenants and interactive online scenarios) from deferrable traffic (such as offline batch processing and data cleaning). This keeps core business from being degraded even when resources are tight.
Layer 2: Fast scaling of inference replicas. With containerized deployment, weights and the runtime are baked into the image, and the container platform’s horizontal scaling capability brings up new replicas. Note that cold start is the main bottleneck. A combination of a warm pool (a small number of always-on replicas) and weighted always-on replicas can compress scaling latency from minutes to tens of seconds.
Layer 3: Queue-based peak shaving. For asynchronous requests, introduce a message queue buffer to spread an instantaneous spike over a longer time window. Pair this with a scheduling strategy that shards by token length, so long requests do not block short ones.
4. Batching and Scheduling: The Key Lever for Throughput
The most effective way to raise single-GPU throughput is continuous batching combined with chunked prefill. The former dynamically swaps requests in and out during the decode phase, avoiding idle compute caused by waiting for an entire batch to finish. The latter splits the prefill of long inputs into chunks and interleaves them with decode steps, reducing tail-latency pollution from long requests. Illustrative scheduling pseudocode:
while True:batch = scheduler.form_batch(max_tokens=8192)if batch.has_prefill_chunk():logits = model.forward_prefill(batch.prefill_chunk)else:logits = model.forward_decode(batch.decode_tokens)scheduler.update_and_evict(batch, logits) # completed requests exit immediately, free slots are refilled at once
Combined with paged memory management for the KV cache, this significantly reduces fragmentation. For repeated prefixes such as system prompts and long documents, enabling prefix cache reuse directly cuts prefill compute. This is one of the most economical optimization points for handling hotspot traffic.
5. Caching and Semantic Reuse: Minimizing Repeated Computation
When call volume surges, request content is often highly repetitive. Reuse can be applied at three levels:
- Exact caching: return cached results for identical requests, suitable for fixed Q&A and templated generation.
- Prefix caching: share the KV state of system prompts and reference documents to avoid repeated prefill.
- Semantic caching: match semantically equivalent questions via vector nearest-neighbor search and reuse the answer directly above a hit threshold. A similarity threshold and a human fallback are needed to prevent false hits.
One engineering caveat: cache keys must include the model version, sampling parameters such as temperature, and the context identifier. Otherwise, incorrect results will be returned.
6. Cost, Observability, and Stability
The core of cost governance is token-level metering and attribution: count input and output tokens by tenant, scenario, and model version, identify high-consumption low-value calls, and apply rate limiting or degradation. For observability, beyond standard request volume, error rate, and latency percentiles, token-dimension metrics must be added: time to first token, per-user output token rate, batch size distribution, KV cache hit rate, and queue time. Alerts should be based on saturation rather than fixed thresholds alone.
For stability, three things are recommended: deploy across multiple availability zones to avoid single points of failure; add circuit breaking for upstream dependencies with fallback to a smaller model; and run pulse load tests regularly, using twice the real historical peak as the drill target.
7. Conclusion
Sharp swings in usage rankings are essentially a public exam of an architecture’s ability to bear load. Treating tokens as the core metric, building layered elasticity, squeezing single-GPU efficiency with batching and caching, and driving cost optimization with token-level observability are what allow a business to maintain stable latency and controlled cost during traffic bursts. Baidu AI Cloud offers general-purpose building blocks such as a container platform, message queue, logging service, and monitoring and alerting, which can serve as a reference selection for building such an inference foundation.
