LLM Inference Speed: The New Battleground in the Second Half of the Model Competition

    As benchmark scores and parameter counts converge, inference speed has become a standalone product capability. This article breaks down speed into measurable engineering metrics such as TTFT and single-stream output rate, examines why deployment architecture matters more than raw model size, and outlines five layers of optimization—from model architecture and inference engines to parallelism, serving, and cloud infrastructure—along with a practical performance audit workflow for developers.

    1. The Shift: Speed Is Now a Standalone Product Capability

    Over the past year, discussions about models focused almost entirely on leaderboard scores and parameter counts. Recently, however, a clear change has emerged: more and more model services are putting “tokens generated per second” directly into their product descriptions. One AI coding tool has begun a canary rollout of a high-speed inference version, and an inference service platform now offers model serving tailored for high-speed scenarios. Speed is no longer a footnote in an evaluation report; it is a capability that can be sold and versioned on its own.

    An overseas tech blogger compiled a chart covering open-weight models released in the past two years with total parameter counts of at least 300 billion. The x-axis is total parameters, the y-axis is single-stream output speed (tokens/s), and the highest speed achievable at each parameter tier is connected into a “speed frontier.” Four representative points sit on this frontier: a high-speed variant of roughly 50 billion parameters from a startup team reaches about 2,000 tokens/s; the “flash” version of an open-weight model reaches about 1,500 tokens/s on a specialized inference platform; the official “turbo” version from a device manufacturer reaches about 1,000 tokens/s; and another ultra-large model reaches about 850 tokens/s on high-density accelerator nodes.

    What developers should notice is not the ranking but two structural facts.

    First, the frontier line is flat. As parameter counts scale from the 300 billion level to larger sizes, the maximum achievable speed drops only from 2,000 to just over 800 tokens/s. The main constraint on speed is no longer “how big the model is” but “how the system runs it.”

    Second, the same model can vary by more than an order of magnitude depending on deployment. In the chart, the official service for an ultra-large model runs at about 50 tokens/s, while the same model on high-density accelerator nodes approaches 850 tokens/s. The model has not changed—what changed is the parallelism strategy, memory layout, batching approach, and interconnect bandwidth.

    2. Breaking “Speed” Down into Measurable Engineering Metrics

    Before optimizing, the vague notion of “fast” must be decomposed into measurable metrics; otherwise, no optimization can be properly attributed. The industry typically tracks four quantities:

    • Time to First Token (TTFT): the time from request submission to receiving the first token, which determines whether the experience feels responsive.
    • Inter-token latency (the inverse of single-stream output speed): the interval between tokens, which determines the smoothness of long-text generation and code completion.
    • System throughput (tokens/s or QPS): the total tokens produced by the cluster per unit time, which determines unit cost.
    • Effective utilization: which resource—memory bandwidth, compute, or network bandwidth—is the bottleneck, which determines whether scaling is linear.

    It is important to note that single-stream speed and system throughput often pull against each other. Increasing batch size can significantly boost throughput and amortize cost, but it slows single-stream output; conversely, pursuing extreme single-stream speed sacrifices concurrency density. A “high-speed version” is essentially an deliberate choice to favor single-stream speed in latency-sensitive interactive scenarios.

    Illustrative metric collection logic (pseudocode, expressing measurement methodology only):

    1. # Count only the decode phase to avoid prefill contaminating single-stream speed metrics
    2. def measure_decode(requests):
    3. for req in requests:
    4. t0 = now()
    5. first = stream_next(req) # record TTFT
    6. ttft = now() - t0
    7. n, last = 1, now()
    8. for tok in stream_rest(req): # time each token
    9. n += 1
    10. now_ = now()
    11. inter_token.append(now_ - last)
    12. last = now_
    13. report(ttft=ttft, tps=(n - 1) / (last - t0), tokens=n)

    3. Where Speed Comes From: Five Actionable Optimization Layers

    3.1 Model and Architecture: Make Each Token Cheaper

    Mainstream acceleration techniques include sparse expert structures (activating only a subset of parameters), longer attention compression and sliding-window strategies, linear or hybrid attention to reduce the quadratic cost of long contexts, and distilling smaller high-frequency versions. One rule of thumb in engineering: decoding is autoregressive, and every token requires reading all weights, so memory bandwidth often becomes the bottleneck before compute does. This is why “slightly fewer parameters plus a sparser structure” is often more effective than simply adding more compute.

    3.2 Inference Engine: Eliminate Redundant Computation

    • KV Cache management: use paged memory management to reduce fragmentation, and share cache across requests with identical prefixes (system prompts and code repository contexts benefit especially).
    • Continuous batching: dynamically batch at the request level to avoid idle time from waiting for the slowest request.
    • Speculative decoding: a small model drafts and a large model verifies, accepting multiple tokens in a single forward pass—one of the most direct ways to improve single-stream speed.
    • Quantization and operator fusion: low-bit weights and fused attention operators reduce both bandwidth pressure and kernel launch overhead.

    3.3 Parallelism and Deployment: Where the Order-of-Magnitude Gap Appears

    Ultra-large models cannot fit on a single GPU and must be partitioned. Tensor parallelism reduces per-layer compute latency but requires frequent communication; pipeline parallelism improves utilization but introduces bubbles; expert parallelism with efficient All-to-All communication suits sparse structures. What truly creates the gap is the interconnect: tensor parallelism within a high-bandwidth domain combined with pipeline and data parallelism across nodes is a common pattern. Placing communication-intensive parallelism on insufficient bandwidth causes a cliff-like drop in speed.

    3.4 Serving and Scheduling: Turning Peak Capability into a Stable Experience

    Request routing should use prefix affinity to send requests with the same context to the same instance, improving cache hit rates; hot and cold models should be loaded in tiers to avoid thrashing; long streaming outputs need reasonable timeouts and backpressure; and monitoring and alerting should continuously track TTFT and P99 latency rather than averages alone.

    3.5 Cloud Infrastructure: Leveraging General-Purpose Capabilities

    When deploying on Baidu AI Cloud, general-purpose capabilities can be combined: a container platform hosts elastic inference instances, object storage holds model weights and datasets, a message queue smooths request spikes, logging and monitoring provide observability, and high-speed networking with high-performance storage alleviates parallel communication and weight-loading bottlenecks. The key principle is to decouple “model loading, scaling, and observability” from “inference kernel optimization” so each can iterate independently.

    4. Practical Recommendations: An Ordered Performance Audit

    1. Establish a baseline: fix the input/output length distribution and measure TTFT, single-stream speed, P99, and cost per token.
    2. Locate the bottleneck: observe memory bandwidth usage, compute utilization, and communication wait time to determine whether the system is memory-bound or communication-bound.
    3. Validate one point at a time: change only one variable at a time (quantization first, then speculative decoding, then parallelism tuning) to avoid gains masking each other.
    4. Deliver in tiers: route interactive completion through a high-speed, low-latency channel and offline batch processing through a high-throughput, low-cost channel.
    5. Run continuous regression: incorporate speed metrics into the release process to prevent performance regressions after model upgrades.

    5. Conclusion

    As model capability gaps narrow, speed becomes a direct variable in user experience: whether code completion feels responsive, whether users are willing to wait for long-document Q&A, and whether an AI agent can complete multi-step calls within budget all depend on how many tokens can be produced stably per second. For developers, the pragmatic path is not to chase a single “fastest solution” but to establish their own metric definitions and optimization order, iterating continuously across model architecture, inference engine, parallel deployment, and service scheduling to fully unlock the performance potential of the same model.