LLM Inference Speed: Why the Competition Has Shifted from Parameter Counts to Tokens per Second
As large language models move from experimentation into production, inference speed has become a primary competitive metric alongside accuracy. This article explains why latency and output throughput now shape product experience, cost, and differentiation, and breaks down the engineering factors that determine single-stream tokens per second, including memory bandwidth, batching strategy, KV cache management, parallelism, quantization, and scheduling. It also outlines practical optimization paths and vendor selection principles for developers building real-time AI applications.
1. From a Parameter Race to a Speed Race
For the past few years, the dominant narrative in the large language model industry was parameter scale and benchmark scores. As the focus shifts to real-world deployment, the evaluation criteria are changing: users no longer care only whether a model can produce the right answer, but also how quickly it can finish. In interactive coding, real-time customer support, and voice conversation, generation speed directly determines the ceiling of the product experience.
One notable trend is that the industry has begun selling “speed” as a standalone product capability: the same model is offered at multiple speed tiers, and developers can pay more for lower latency on demand. Meanwhile, the community has produced charts plotting total parameter count against output tokens per second, connecting the highest speed observed for each sample into a “speed frontier.” On this frontier, there are startup solutions with roughly 300 billion total parameters and single-stream output approaching 2,000 tokens per second, solutions deployed on specialized inference platforms reaching around 1,500 tokens per second, official vendor high-speed tiers at 1,000 tokens per second, and solutions running on full systems built with high-end accelerator cards at 850 tokens per second.
It is important to emphasize that these numbers come from public statistics with different test conditions, input lengths, and concurrency levels, so they cannot be compared directly. What truly matters to developers is not any specific figure, but the engineering conclusion behind them: at the same parameter scale, the design quality of the inference system can produce several-fold differences in end-to-end speed.
2. Why Speed Has Become a New Competitive Advantage
1. Changing interaction patterns
Early applications mainly generated long text in a single pass, and users had a higher tolerance for waiting. The mainstream pattern today is streaming output and multi-turn interaction, where time to first token and token delivery speed together shape the perceived experience.
2. Changing cost structure
Higher speed often means less hardware time consumed per token, allowing more requests to be served under the same compute budget and directly affecting gross margin.
3. Changing competitive dimensions
As baseline capabilities become more homogeneous, engineering efficiency becomes a source of differentiation. Whoever can deliver faster responses with the same model is more likely to win developers and end users.
3. What Determines Tokens per Second
Single-stream output speed is not an inherent property of a model, but the combined result of an entire pipeline:
- Memory bandwidth and capacity: Every step of autoregressive decoding must move weights and the KV cache, so bandwidth is often the bottleneck; insufficient capacity forces frequent swapping.
- Batching strategy: Static batching is simple but prone to head-of-line blocking, while continuous batching (dynamically inserting or retiring requests at the sequence level) can significantly improve throughput.
- KV cache management: Paged caching, prefix reuse, and quantized compression all affect effective bandwidth and the number of concurrent requests that can be held.
- Parallelism strategy: Tensor parallelism reduces per-device pressure but introduces communication overhead; pipeline parallelism improves utilization but may increase latency, so tuning is required based on model shape.
- Quantization and sparsity: Low-bit weights, structured sparsity, and speculative decoding (a small model drafts, a large model verifies) are common acceleration techniques.
- Scheduling and queuing: Request priority, timeout policies, and hot/cold model tiering determine latency stability under heavy load.
Illustrative pseudocode can express the core idea of continuous batching:
# Pseudocode: continuous batching scheduling loopwhile engine.running:batch = scheduler.pop_ready_requests(max_tokens=BUDGET)outputs = model.decode_step(batch) # advance all active sequences in one forward passfor req, tok in zip(batch, outputs):if tok.is_eos or req.exceed_limit():scheduler.finish(req) # retire on completion and free memoryelse:scheduler.append(req, tok) # keep unfinished requests in the batchengine.stream_to_clients(batch, outputs) # stream back to clients to reduce time to first token
4. Practical Optimization Paths
- Measure first, then optimize: Build a baseline dashboard covering time to first token, output tokens per second, P99 latency, and cost per request, instead of tuning by intuition.
- Match tiers to scenarios: Prioritize throughput for batch-oriented offline tasks and latency for interactive tasks, serving them with different service tiers.
- Reuse caches effectively: System prompts, long documents, and code contexts often share highly repetitive prefixes, and prefix caching can significantly cut cost and improve speed.
- Control context length: Very long contexts amplify cache pressure linearly, and retrieval-based trimming is often more cost-effective than stuffing everything in.
- Elastic scaling and graceful degradation: Combine container platforms with monitoring and alerting for autoscaling, and degrade non-critical requests to smaller models during peak periods.
- Take an end-to-end view: Network transfer, serialization, and client-side rendering all count toward perceived latency and should be optimized together.
5. Selection Advice for Developers
When facing the “speed frontier,” three principles are recommended: first, work backward from your own business latency budget to derive the configuration rather than chasing benchmark extremes; second, ask vendors for reproducible test methodology (input and output length, concurrency, precision settings); third, retain the ability to route across multiple tiers and models to avoid being locked into a single solution. If you use Baidu AI Cloud’s relevant general-purpose capabilities, you can combine container platforms, object storage, log services, and monitoring with alerting to build a complete inference operations loop, turning speed optimization into a sustainable engineering practice.
6. Conclusion
Speed becoming a new competitive advantage is essentially an inevitable result of large language models moving from demonstrations to infrastructure. For developers, the real opportunity lies not in memorizing how fast a particular model runs, but in mastering a reusable performance engineering methodology: define metrics, locate bottlenecks, optimize in layers, and measure continuously.
