LLM Inference Speed: The New Focus of Competition in the Second Half of the LLM Race
This article explains why inference speed has become a key product metric as open-weight models reach comparable capability levels. It covers how to measure speed with standardized metrics such as TTFT, TPOT, throughput, and tail latency; where speed gains come from across the model, runtime, deployment, and serving layers; and how to run repeatable benchmarks that reflect real traffic. It also outlines a cost-effective optimization order and common pitfalls, helping teams balance larger models against faster, cheaper delivery.
1. Why Speed Has Become a Standalone Competitive Metric
For the past two years, discussions about large language models have centered on two things: parameter count and benchmark scores. But once mainstream open-weight models broadly entered the 300-billion-parameter range, a practical problem emerged: capability gaps are narrowing, while the gaps users actually perceive are widening. Users do not read leaderboards. They notice how long the first sentence takes to appear and whether the output streams fast enough to keep up with their reading.
Competition has therefore moved into its second half. The first half was about whether a model can produce the right answer; the second half is about whether it can do so within an acceptable wait. A gradual rollout of an AI coding tool now emphasizes a high-speed mode, an inference service platform offers a dedicated tier for high-speed model variants, and a device vendor has released a model version built around extremely fast output. Behind these moves is the same judgment: speed has been upgraded from an engineering metric to a product metric.
One notable industry observation comes from an overseas technical blogger who compiled the performance of open-weight models released in the past two years with at least 300 billion total parameters under different deployment setups. Plotting total parameters against tokens generated per second and connecting the highest speed in each sample produces a “speed frontier.” Typical points on that frontier fall roughly between 800 and 2,000 tokens per second: the smallest tier, at just over 300 billion parameters, reaches about 2,000 tokens per second with a self-developed inference runtime; a mid-sized tier reaches about 1,500 tokens per second on a specialized inference platform; a device vendor’s extreme-speed version reaches about 1,000 tokens per second; and a very large model, even on rack-scale accelerator hardware, produces about 850 tokens per second on a single stream.
The real value of this chart is not any specific number but the two patterns it reveals. First, the speed frontier is a curve that declines slowly as parameter count rises, showing a structural tension between “bigger” and “faster.” Second, the same model can vary several-fold in speed across deployment setups, showing that the main variable behind speed is often not the model itself but the engineering system around it.
2. Breaking “Fast” Down into Measurable Metrics
Discussing speed requires a shared set of definitions; otherwise, people end up talking past each other. Engineering practice usually breaks it into four metrics:
- Time to first token (TTFT): the time from sending a request to receiving the first token, which drives the intuitive sense of whether the system “feels stuck.”
- Time per output token (TPOT/ITL): the interval between adjacent tokens after the first one, which determines whether the output “streams smoothly.”
- End-to-end throughput (tokens/s or requests/min): the system’s total output per unit of time, which determines cost and the concurrency ceiling.
- Tail latency (P95/P99): the experience and timeout rate of long-tail requests, which determines production stability.
It is worth stressing that a vendor’s advertised “N thousand tokens per second” is typically a single-stream speed under ideal conditions—an upper bound measured with short inputs, long outputs, no concurrency contention, and fully warmed-up kernels. Real workloads often involve long inputs and non-trivial concurrency, so you must reproduce results with a load-test set that matches your traffic distribution rather than copying the advertised number. A simple self-check is to record input length, output length, concurrency, and the four metrics above together to build your own baseline.
3. Where Speed Comes From: A Complete Optimization Chain
1. Model side: reduce the computation itself
The most direct approach is sparsification. A mixture-of-experts architecture activates only a small subset of parameters per token, keeping single-token computation low even with a large total capacity—the main structural reason a 300-billion-parameter model can still be fast. Next is quantization, which lowers weights and some activations from higher precision to fewer bits, reducing memory footprint and bandwidth pressure. Then there is speculative decoding with a draft model, which pairs small candidate generation with large-model verification, turning multiple serial forward passes into one parallel verification. Options such as multi-token prediction, layer pruning, and distillation share the same goal: reduce the number of serial steps needed to generate the same content.
2. Runtime side: keep the GPU fed
Inference bottlenecks are often not compute but memory bandwidth and scheduling gaps. Common engineering techniques include paged KV cache management to reduce fragmentation, prefix caching to reuse identical system prompts and long documents, continuous batching to dynamically group different requests, operator fusion and efficient attention kernels to reduce memory accesses, and CUDA graphs or graph capture to cut launch overhead. A schematic service configuration is shown below (it expresses parameter relationships only and is not the interface of any specific product):
runtime:kv_cache: paged # Paged management to reduce fragmentationprefix_cache: on # Reuse system prompts and document prefixesbatching: continuous # Dynamic batching to improve utilizationspeculative: {draft: small_model, accept_len: 3}quantization: w8a8 # Low-bit weights and activationslimits:max_num_seqs: 256 # Concurrency limit; determine via memory load testingmax_model_len: 32768
3. Deployment side: trade parallelism and hardware topology for speed
Tensor parallelism splits computation within a layer, pipeline parallelism splits layers, and expert parallelism splits expert distribution; their combination determines the trade-off between single-request latency and overall throughput. Higher parallelism makes a single request faster but increases communication overhead and the number of cards required, so there is an economic optimum determined by network bandwidth. At the hardware level, high-bandwidth memory, fast in-machine interconnects, and rack-scale solutions can markedly improve bandwidth-bound scenarios, but marginal gains diminish as parameter count grows—consistent with the slow decline of the speed frontier noted earlier.
4. Serving side: routing, caching, and degradation
Speed in production is largely determined by scheduling: classify requests by input length and estimated output length, sending short requests to a low-latency pool and long requests to a high-throughput pool; apply semantic caching to frequent repeated questions; during peak periods, proactively degrade non-critical paths to a smaller model or shorter output; and use streaming output to return the first token to the user as quickly as possible, so that “perceived speed” improves ahead of “actual speed.”
4. How to Benchmark Scientifically: A Reusable Method
- Build a corpus close to real traffic: cover four typical scenarios—short input with short output, long-document summarization, multi-turn dialogue, and code completion—with proportions set to match your actual online distribution.
- Fix variables for step-wise experiments: first fix concurrency and sweep input length, then fix input and sweep concurrency, plotting the latency-throughput curve to find the inflection point rather than a single point.
- Separate cold start from steady state: warm up for several rounds before sampling, so compilation and cache-loading time are not counted in the conclusions.
- Record cost and quality at the same time: if a speed gain comes at the cost of a clear quality drop, evaluate it separately; track accuracy or human ratings in parallel.
- Establish a regression baseline: after each change to the runtime version, quantization scheme, or parallelism configuration, rerun the same load test to prevent performance regressions.
5. Engineering Recommendations and Common Pitfalls
For most teams, the most cost-effective order is: first enable prefix caching and continuous batching, then quantization and speculative decoding, and only then consider increasing parallelism or changing hardware. The reason is simple: the first two categories of changes add almost no hardware cost yet often deliver several-fold gains.
Pitfalls to avoid include: looking only at single-stream peak speed while ignoring P99; putting advertised numbers directly into capacity planning; setting batch wait time too long in pursuit of throughput, which slows the first token; overlooking the memory impact of long-tail, extra-long inputs; and aggressively quantizing without a quality baseline.
If you build on the cloud, you can prioritize using a container platform to host the inference runtime, object storage to hold model weights, a message queue to smooth request spikes, and logging plus monitoring and alerting to observe TTFT and P99, while using elastic scaling to handle traffic fluctuations. In this category of general-purpose capabilities, Baidu AI Cloud provides standardized, cataloged components that make it easy for teams to assemble and tune the chain described above themselves.
6. Conclusion
Speed has become a new competitive metric not because it matters more than capability, but because it delivers capability into users’ hands. By treating speed as a first-class concern—measuring it with unified metrics, optimizing layer by layer across model, runtime, deployment, and serving, and continuously running regression tests with business-representative benchmarks—teams can make controlled trade-offs between “bigger and stronger” and “faster and cheaper,” rather than passively accepting numbers handed to them by others.
