How Do Trillion-Parameter LLMs Reach 1,000 Tokens per Second? Decode Speed, Bottlenecks, Optimization, and Benchmarking

    Trillion-parameter LLMs are increasingly marketed as “ultra-fast,” with claims such as “1,000+ tokens per second” or “a full application in minutes.” This article explains what those numbers actually measure: tokens, TTFT and TPOT, end-to-end latency, and cluster throughput, and why token rates differ between Chinese and English. It then explains why decode speed is bound by GPU memory bandwidth and KV cache traffic, and walks through the main speedups: MoE sparse activation, low-bit quantization, speculative decoding, distributed parallelism, continuous batching, chunked prefill, and PD disaggregation. It also covers lighter-task approaches such as distillation, cascading, and RAG, and provides sample code plus a test matrix for benchmarking latency, throughput, and output quality.

    Recent months have seen a wave of “ultra-fast” LLM inference modes. Marketing claims like “thousands of tokens per second” and “complete applications in minutes” are everywhere. For developers, speed directly shapes the user experience, iteration velocity, and the cost of each request. But “tokens per second” is only the surface. It depends on the model’s architecture and precision, and also on memory bandwidth, parallelism strategy, and scheduling.

    This article is organized around a practical question: how do you evaluate an ultra-fast LLM inference mode? First, we clarify the key concepts and the underlying mechanisms. Then, we review the mainstream speedup techniques. Finally, we give a practical evaluation methodology.

    1. First, the Basics: What Does 1,000 Tokens per Second Really Mean?

    1.1 Token: The Model’s Basic Unit of Text

    A token is the basic unit a model uses to process text. With subword tokenizers such as Byte-Pair Encoding (BPE), common words and word roots are typically merged into a single token. Rare characters and symbols may be split into several tokens. How many Chinese characters a token corresponds to depends on the tokenizer the model uses.

    For rough estimates, 1 token is often taken as roughly equivalent to 1.5–2 Chinese characters. Strictly speaking, this is better stated as “one Chinese character is worth about 1.5–2 tokens.” By that rough conversion, 1,000 tokens/s is on the order of 1,500–2,000 Chinese characters per second.

    1.2 Generation Speed, Reading Speed, and Task Completion Speed

    Adults typically read Chinese silently at a few hundred characters per minute, or only a few to a dozen characters per second. Once generation speed exceeds reading speed by more than 100×, it mainly reduces waiting time, not reading time. In “generate now, use immediately” workloads, such as code generation and agent execution across multiple turns, this gap translates into visible efficiency gains.

    Task completion speed, however, depends more on three factors:

    • Time to the first token;
    • Round-trip latency for tool calls and external systems;
    • The accuracy of the generated output.

    Generation speed is just one part of the experience.

    1.3 Four Metrics to Keep Separate

    Metric Definition What it mainly affects
    Time to first token (TTFT) Time from sending the request to receiving the first token, driven mainly by the prefill phase How quickly the first output appears, and how responsive the interaction feels
    Output speed (TPOT) Average interval between consecutive tokens during generation; its reciprocal is tokens/s Smoothness of streaming output, and total time for long answers
    End-to-end latency per request TTFT + (output tokens − 1) × TPOT Actual completion time of a single task
    Cluster throughput Total tokens produced per unit time across all requests Cost per token, and concurrency the system can handle

    Whenever you see a “so many tokens per second” claim, ask three questions:

    • Is it for a single request or for cluster-wide throughput?
    • At what concurrency?
    • With what input and output lengths?

    Without these details, the numbers are not comparable.

    1.4 Token Rates Are Diluted in Mixed Chinese–English Workloads

    Token rates are not equivalent across languages:

    • After subword splitting, one token often covers only a few English characters.
    • A Chinese character may correspond to more than one token.

    As a result, a mixed Chinese–English codebase may deliver an effective output speed only one-third to one-half of that in pure Chinese conversations. The exact figure depends on the tokenizer’s vocabulary design. Only by converting to “effective characters per second” on real business text can you reflect what users actually experience.

    2. What Are Parameters? Starting with the “Neural Connections” Analogy

    2.1 Parameters Are Weights

    Parameters are the model’s weights. You can think of them as numerical matrices learned from large volumes of training data. Training repeatedly adjusts these values to minimize a loss function.

    Intuitively, this resembles how the strength of connections in the human brain changes with learning. The similarity ends there, though. An artificial neural network is a man-made computational structure, not a replica of biological mechanisms in the brain.

    2.2 The Storage Cost of “a Trillion Parameters”

    At 16-bit floating-point precision, the weights of a trillion-parameter model alone take roughly 2 TB of storage. That does not include:

    • The KV cache during inference;
    • Framework overhead;
    • Parallel communication buffers.

    If the weights do not fit in GPU memory, you need:

    • Multi-device tensor parallelism or pipeline parallelism;
    • Or offloading to host memory.

    The resulting communication and data movement further reduce speed.

    2.3 More Parameters Does Not Mean Smarter

    Parameter count sets a model’s capacity ceiling. Actual capability also depends on:

    • The quality and mix of training data;
    • Post-training methods;
    • Reasoning strategies used at inference time;
    • Task difficulty.

    It is widely accepted in the field that, for the same model architecture, loss decreases as a power law with parameters, data, and compute. Once data approaches exhaustion and marginal gains decline, adding more parameters becomes less cost-effective.

    More importantly, “a trillion parameters” usually refers to total parameters. In Mixture-of-Experts (MoE) models, each token is routed to only a few experts. The parameters actually used in a forward pass may be one-tenth of the total, or even less.

    This is precisely how a model can have a very large parameter count while keeping the compute per step manageable. We will return to this later.

    2.4 A Simple Estimate to Build Intuition Across Three Orders of Magnitude

    Many marketing figures are confusing because there is no consistent basis for estimation. The following simplified decode-only model helps build intuition. It counts only weight reads and ignores computation, communication, and cache hits, so use it for order-of-magnitude checks only.

    1. def decode_speed_ceiling(total_params, active_ratio=1.0, bits=16,
    2. bandwidth_gbps=1000, batch=1):
    3. """
    4. Estimate the theoretical decode-speed ceiling (tokens/s). For order-of-magnitude checks only:
    5. total_params : total parameter count of the model
    6. active_ratio : share of parameters involved in each step (1.0 for dense models)
    7. bits : effective bits per parameter (e.g. 16 / 8 / 4)
    8. bandwidth_gbps: effective memory bandwidth available to the device (GB/s)
    9. batch : number of requests decoded in parallel within the batch
    10. Assumption: generating one token requires reading all "active weights" once,
    11. and requests in the batch share that weight read.
    12. """
    13. weight_bytes = total_params * active_ratio * bits / 8
    14. return bandwidth_gbps / weight_bytes * batch
    • Dense model: 1 trillion parameters at 16-bit precision with 1,000 GB/s of effective bandwidth. The bandwidth supports only about 0.5 steps per second, a ceiling of under 1 tokens/s. A sub-1 result is no reason for confusion. In practice, you add up bandwidth across devices with tensor parallelism, or simply store the model at lower precision.
    • Sparse model: With the same weight footprint, if each token activates only 3% of the parameters, the ceiling under the same conditions is about 16 tokens/s, an order of magnitude higher than the dense case.
    • Add parallelism and decoding strategies: Raise the in-batch concurrency to 8. The weights are read once and serve 8 requests, so a single request can exceed 100 tokens/s. Add speculative decoding so that one weight read produces multiple tokens, and you approach “thousands of tokens per second.”

    This estimate shows that the ceiling depends on four factors: total parameters, active ratio, precision, and effective bandwidth. Parallelism and decoding strategies multiply on top of them.

    The model proves nothing about whether any specific product reaches a given speed. It simply gives you a yardstick for judging whether marketing claims are internally consistent.

    In practice, actual speed is usually below the theoretical value:

    • As batch size grows, compute units first approach their compute limit.
    • Attention reads, communication overhead, and scheduling losses keep accumulating.
    • Gains taper off.

    3. The Core Tension: Why “Smarter” Often Means “Slower,” and Whether It Must

    3.1 Inference Happens in Two Phases

    • Prefill: The model processes all input tokens in parallel and builds the KV cache that attention needs in one pass. Prefill is like reading the question, and it fully exploits the parallel compute capacity of the hardware, so it is compute-intensive. Longer inputs and higher concurrency increase TTFT.
    • Decode: The model generates output tokens one at a time. Each step appends the new token to the KV cache and runs a forward pass over all active weights. Decode is like answering word by word. The compute per step is small, but memory access is large, so it is memory-bound.

    3.2 The Memory-Bandwidth Bottleneck: Every Token Means “Re-Reading the Whole Brain”

    We can describe this bottleneck with arithmetic intensity: how many floating-point operations are completed for every byte moved from GPU memory.

    • Decode phase: Each step typically processes only one new token. Arithmetic intensity is roughly 2 × active parameters / bytes per parameter, which equals the number of active parameters at 16-bit precision. When the active parameter count is in the tens to hundreds of billions, this is generally still below the compute-to-bandwidth ratio of mainstream accelerators. In other words, much of the compute capacity sits idle while the hardware waits for data, and decode speed is determined largely by memory bandwidth.
    • Prefill phase: Thousands of tokens are computed together, and each weight read serves all of them. Arithmetic intensity grows by orders of magnitude, and the bottleneck shifts to compute.

    Here is an informal but intuitive analogy. Think of the parameters as all the knowledge in a highly learned scholar’s head:

    • When answering word by word, the scholar must “leaf through” that entire body of knowledge before writing each character.
    • For a short answer, there is very little to read.
    • As a result, speed depends on how fast the knowledge can be looked up, not on how capable the scholar is at solving the problem.

    The scholar is not necessarily slower. Each character simply costs one “look-up.”

    This is the root of the popular belief that “smarter means slower.” Strictly speaking, however, it describes the current state of engineering, not an inevitable law:

    • Long chains of thought and more tool calls inherently produce many tokens.
    • Techniques such as sparse activation, low-precision storage, and speculative decoding can make a stronger model run faster as well.

    3.3 KV Cache: The Hidden Variable in Long Contexts

    When generating the n-th token, attention must read the Key/Value vectors of all previous tokens. Estimated as layers × KV heads × head dimension × bytes per element, the cache for each token typically takes tens to hundreds of KB per layer per KV head. For example, with 64 layers, a head dimension of 128, and 16-bit precision, one token takes about 1 MB of KV cache.

    The cache also grows linearly with context length and concurrency. This leads to two consequences:

    • The longer the context, the slower the decode;
    • The KV cache quickly competes with model weights for GPU memory, which limits batch size and concurrency.

    3.4 The Tension Between “Scale for Capability” and “Trade Memory Traffic for Speed”

    The trade-off between capability and speed comes down to a race between GPU memory capacity and bandwidth:

    • The stronger the model, the more parameters and the longer the context it needs, and the sooner it hits the memory wall.
    • Almost every speedup technique answers the same question: how many bytes must be moved per token, and how many times?

    These techniques fall into three families:

    • Reduce the load directly: Read fewer weight bytes per step, through sparse activation or low-bit quantization.
    • Spread the cost: Make one data transfer serve multiple tokens or requests, through speculative decoding or continuous batching.
    • Reduce the number of transfers: Avoid repeated data movement or computation, through paged KV cache reuse, prefix reuse, and overlapping compute with communication.

    4. The Full Picture of Speedup Techniques: From Model Architecture to Serving Infrastructure

    Layer Representative techniques Main benefits Main costs
    Model architecture MoE sparse activation, attention head sharing, long-context extrapolation Lower compute per step; balances capacity and speed GPU memory demand remains high; routing can become imbalanced
    Numerical precision Weight quantization (e.g. 8/4-bit), KV cache quantization Directly reduces memory traffic; the most direct speedup Accuracy loss; requires calibration and layer-by-layer evaluation
    Attention and cache management Memory-aware fused attention kernels, paged KV cache, prefix cache reuse, sparse/linear attention Less redundant computation and memory fragmentation; large gains for long contexts Hit rates depend on the workload; long-range dependency modeling may change
    Decoding strategy Speculative decoding, multi-token prediction, structured constrained decoding Several-fold speedup for single-request decoding Drafting overhead; diminishing returns at high concurrency
    Parallelism Tensor, pipeline, and expert parallelism; high-bandwidth intra-node interconnects; high-speed inter-node networks Breaks single-device bandwidth and memory limits Communication overhead; declining scaling efficiency
    Scheduling and engine Continuous batching, chunked prefill, PD disaggregation, graph capture and operator fusion Higher cluster utilization, more stable latency, lower scheduling overhead Greater system complexity; parameters need tuning
    Product and service layer Streaming output, incremental front-end rendering, result caching Better perceived experience; fewer redundant calls Treats symptoms only; does not improve underlying speed

    4.1 Model Architecture: From “Everything Participates” to “Activate on Demand”

    MoE splits the feed-forward network into multiple experts. A router activates only a few of them for each token.

    • Total parameter count determines knowledge capacity.
    • The number of parameters active per token determines the cost of each step.

    The two are decoupled.

    In addition, Grouped-Query Attention (GQA) lets multiple query heads share one set of Key/Value heads, greatly shrinking the KV cache.

    Long-context extrapolation techniques help a model retain usable positional understanding beyond its training context length.

    4.2 Numerical Precision: Representing the Same Knowledge with Fewer Bits

    Decode speed is proportional to the number of bytes read per step, so low-bit quantization often offers the best return on effort. Common approaches include:

    • Weights at 8-bit, 4-bit, or even lower, while keeping activations at higher precision;
    • Group-wise scaling and per-channel quantization to limit accuracy loss;
    • Storing the KV cache at low bit widths.

    Quantization comes at a cost. At extremely low bit widths, outliers tend to dominate the error. You can mitigate this with finer group granularity, mixed precision, or rotation transforms. You should also run layer-by-layer evaluations on your target workloads.

    4.3 Attention and Cache Management: Cutting Repeated Reads and Writes

    Attention is the main bottleneck in the decode phase.

    • Memory-aware fused attention kernels keep tiled computation in on-chip cache. This avoids repeatedly reading and writing intermediate results in GPU memory.
    • Paged KV caches manage KV blocks much like an operating system manages memory pages. This reduces fragmentation and supports dynamic growth and cross-request sharing.

    In multi-turn conversations and agent workflows, prefixes such as system prompts and tool descriptions recur. With prefix cache reuse, these parts do not need to be prefilled again, so both TTFT and redundant compute drop noticeably.

    Cache hits depend on the workload, though. If every request contains a unique long document, the gains are limited.

    4.4 Decoding Strategy: Speculative Decoding

    Speculative decoding is one of the most important lossless acceleration ideas of recent years.

    1. A lightweight “draft” source first proposes several consecutive tokens. The source can be a small model, the target model’s own shallow layers, or retrieval-based matching over the input.
    2. The large model then verifies all the guesses in a single forward pass.
    3. The accepted prefix is kept as is. At the first rejected position, the token is re-sampled from a corrected distribution.

    The pseudocode below is illustrative. It shows how “lossless” is guaranteed:

    1. def speculative_decode(target_model, draft_source, gamma, rng):
    2. """
    3. gamma: draft length per round; draft: the sequence of draft tokens
    4. target_probs is the target model's next-token probability distribution at each position.
    5. Modified rejection sampling ensures the output distribution is
    6. exactly the same as sampling directly from the target model.
    7. """
    8. while not finished:
    9. draft = draft_source.propose(gamma) # 1. Propose gamma consecutive tokens
    10. probs = target_model.forward([prefix] + draft) # 2. One forward pass yields distributions at all positions
    11. for i, tok in enumerate(draft):
    12. p, q = probs[i][tok], draft_source.prob(i, tok) # p: target model; q: draft distribution
    13. if rng.random() < min(1.0, p / max(q, 1e-9)):
    14. accept(tok) # 3a. Accept
    15. else:
    16. resample(probs[i], q) # 3b. Reject: resample from max(0, p - q), normalized
    17. return
    18. accept(bonus_token(probs[-1])) # 4. If all tokens are accepted, emit 1 extra token

    Let α be the acceptance probability of a single draft token and γ the draft length. Each round produces on average about (1 − α^(γ+1)) / (1 − α) tokens.

    • Larger γ means a higher theoretical gain.
    • However, drafting takes time, and α tends to fall as γ grows, so the benefit has a ceiling.

    In engineering practice, measurements usually guide keeping γ small (e.g. 4–8). It can also be adjusted dynamically for predictable content such as code, structured text, and repeated fragments.

    Speculative decoding has three more engineering details:

    • Correctness: The “accept/reject + corrected sampling” mechanism above guarantees that the output distribution is exactly the same as sampling the target model one step at a time. The speedup therefore does not sacrifice output quality. This is the fundamental difference from “swapping in a smaller model” or “aggressive quantization.”
    • Diminishing returns at scale: Drafting adds verification compute. At low concurrency, this barely affects other requests. Under large-batch concurrency, however, the verification cost is spread across all requests, so the overall throughput gain narrows.
    • Where it fits best: Scenarios with highly repetitive content, such as code completion and templated output, see higher acceptance rates and more obvious speedups.

    4.5 Parallelism: Splitting One “Brain” Across Multiple Devices

    A single GPU cannot hold a trillion parameters, so distributed inference is a must. Common dimensions include:

    • Tensor parallelism: Shards each layer’s weights across GPUs, requiring communication at every layer;
    • Pipeline parallelism: Splits the model by layer and uses pipeline filling to hide bubbles;
    • Expert parallelism: Places different experts on different devices and forwards requests according to routing results;
    • Data parallelism: Uses multiple replicas to handle different requests.

    Within a node, systems usually rely on high-bandwidth interconnects. Across nodes, network bandwidth and latency often become the new bottleneck.

    The key to better scaling efficiency is overlapping computation with communication. For example, you can interleave the communication of one step with the computation of the next.

    4.6 Scheduling and Engines: Keeping the Hardware Busy

    • Continuous batching: Traditional static batching must wait until every request in a batch finishes before starting a new one. Continuous batching schedules at token granularity. A request leaves as soon as it finishes generating, and a new request takes its place immediately. This significantly improves device utilization and cluster throughput.
    • Chunked prefill: Prefilling a long prompt can monopolize compute resources and cause requests that are already decoding to stall. Splitting a long prefill into chunks and interleaving them with decoding keeps streaming output smoother.
    • PD disaggregation: Prefill and decode run in separate resource pools.
      • The prefill pool selects GPUs based on compute and targets fast first tokens.
      • The decode pool selects GPUs based on bandwidth and capacity and targets output speed and large batches.
      • Each pool can scale and be tuned independently.
      • The cost is that the KV cache must be transferred across pools, which demands more of the network and makes scheduling more complex.

    4.7 Engine and Compilation Optimizations

    • Operators: Fusing small operators, such as attention and normalization, reduces GPU memory reads and writes and kernel launch overhead.
    • Graph capture: Recording a sequence of operators as a fixed execution graph avoids the CPU overhead of launching them one by one. This matters especially for small batches.
    • Cache hit rates: Whether the KV cache and prefix cache can be reused depends on how requests are organized. Routing requests with the same prefix to the same replica markedly improves hit rates.

    4.8 Beyond Software: Hardware and Networking

    The following factors determine the ceiling of a single GPU and the scaling efficiency of distributed setups:

    • High-bandwidth memory;
    • On-chip cache capacity;
    • Intra-node interconnects;
    • High-speed networks.

    Compute-to-bandwidth ratios vary widely across hardware. The same set of optimizations can yield gains several times larger on one platform than on another. When selecting hardware, start from the memory-access characteristics of your target model, not just peak compute.

    5. Another Path: Make the Task Lighter

    The most direct way to speed up an LLM is to make it “dumber”: fewer parameters mean fewer weights to move at each step, and naturally higher speed.

    This path is often underestimated in engineering. The key is to make the model lighter while keeping its capability acceptable.

    5.1 Distillation: Passing the “Expert’s” Experience to a “Student”

    A strong model generates high-quality answers or preference data, and a small model learns its output distribution through soft-label knowledge distillation.

    • The student model may have only a few hundredths of the teacher’s parameters, yet be an order of magnitude faster.
    • Whether distillation preserves the teacher’s capability depends on task difficulty and data coverage.

    Open-ended reasoning and long-tail knowledge in niche domains are usually where capability loss is most visible.

    5.2 Cascaded Routing: Allocating a “Compute Budget” by Difficulty

    Simple requests are answered directly by a small model or the cache, while hard ones are escalated to a large model. The core principle is “solve the problem with the smallest model that can do it.” Example:

    1. def route_and_answer(request, small_model, large_model, cache):
    2. """Route by difficulty: simple requests take a lightweight path, hard ones are escalated to the large model, and repeated requests hit the cache."""
    3. key = normalize_and_hash(request) # Normalize and fingerprint to avoid duplicate calls
    4. if (cached := cache.get(key)) is not None:
    5. return cached # Cache hit: no model call
    6. if is_simple(request): # E.g. keyword classification, fixed-format extraction, short Q&A
    7. answer = small_model.generate(request, max_tokens=512)
    8. else:
    9. answer = large_model.generate(request, max_tokens=4096)
    10. cache.set(key, answer, ttl=3600) # Set cache TTL according to how time-sensitive the business is
    11. return answer

    Two points are critical:

    • The rules for judging “simple” must be reliable. You can start with rules or a lightweight classifier and escalate to the larger model whenever a prediction is uncertain or an error is detected.
    • The cache must have an expiry. Results need to expire, and they must be invalidated when the source data changes.

    5.3 Context Engineering: Read Less, Read More Accurately

    Long contexts inherently slow decoding. Retrieval-Augmented Generation (RAG) puts only relevant passages into the context. This is often both faster and more accurate than stuffing an entire document in, especially for long-document Q&A.

    In addition, placing repeated content in a reusable prefix and enforcing structured output can both reduce wasted tokens.

    5.4 Be Clear About the Trade-Offs: Quality, Speed, and Cost Cannot All Be Optimal

    All of these techniques explore the Pareto frontier of quality, speed, and cost. A practical approach is to build a tiered model portfolio and set a latency budget for each type of task.

    • Interactive completion: TTFT below 200 ms and output speed above 50 tokens/s.
    • Offline batch processing: Cost per million tokens matters most.

    Speed is an amplifier. It turns capability advantages into experience advantages, but it cannot replace capability itself. If a model lacks accuracy on complex reasoning, even the fastest output will not translate into business value.

    When choosing a model, “sufficient capability + fast enough speed + controllable cost” matters more than any single peak metric.

    6. How to Evaluate “High-Speed Inference” Scientifically

    6.1 Test Design: Fix the Variables, Then Change One

    • Fixed inputs: Use real business data (codebases, support tickets, documents) and keep prompt templates fixed.
    • Fixed decoding parameters: Set sampling parameters such as temperature according to the scenario. Note that “temperature 0” does not guarantee fully deterministic output in some inference engines. Batch composition and the order of parallel reductions can introduce small numerical differences.
    • Warm-up and steady state: Run a few warm-up rounds first to rule out cold starts and cache loading. Then collect measurements in steady state.
    • One variable at a time: Change a single factor per run, such as concurrency, input length, or whether speculative decoding is enabled.
    • Statistical reporting: Repeat each run multiple times. Report the mean together with P50/P90/P99 percentiles. A single best result has no reference value.

    6.2 Sample Load-Test Code

    The streaming example below uses only the Python standard library and illustrates how to take measurements. All endpoints and keys are placeholders.

    1. import json
    2. import time
    3. import urllib.request
    4. def measure_stream(url, api_key, prompt, max_tokens=512):
    5. """Stream a single generation and report time to first token, average token interval, and end-to-end throughput."""
    6. payload = json.dumps({
    7. "model": "<model-id>",
    8. "messages": [{"role": "user", "content": prompt}],
    9. "max_tokens": max_tokens,
    10. "stream": True,
    11. }).encode("utf-8")
    12. req = urllib.request.Request(
    13. url, data=payload, method="POST",
    14. headers={"Content-Type": "application/json",
    15. "Authorization": f"Bearer {api_key}"},
    16. )
    17. t0 = time.perf_counter()
    18. first_at, last_at, count = None, None, 0
    19. with urllib.request.urlopen(req, timeout=300) as resp:
    20. for raw in resp: # The server streams chunks in SSE format
    21. line = raw.decode("utf-8").strip()
    22. if not line.startswith("data:"):
    23. continue
    24. data = line[len("data:"):].strip()
    25. if data == "[DONE]":
    26. break
    27. chunk = json.loads(data)
    28. delta = (chunk.get("choices") or [{}])[0].get("delta", {}).get("content")
    29. if delta:
    30. now = time.perf_counter()
    31. first_at = first_at or now
    32. last_at = now
    33. count += 1
    34. t1 = time.perf_counter()
    35. ttft = (first_at - t0) if first_at else float("inf")
    36. tpot = (last_at - first_at) / max(count - 1, 1) if count > 1 else 0.0
    37. print(f"TTFT {ttft * 1000:.0f} ms | "
    38. f"avg token interval {tpot * 1000:.2f} ms | "
    39. f"output tokens {count} | "
    40. f"end-to-end throughput {count / (t1 - t0):.1f} tokens/s")

    Then collect the results across multiple rounds, concurrency levels, and input lengths in a table like the one below to reveal the performance curve:

    Scenario Input length Concurrency TTFT P50/P95 Output speed (tokens/s) End-to-end latency Cost per turn
    Short Q&A 500 1 — — — —
    Short Q&A 500 32 — — — —
    Long-document Q&A 32000 1 — — — —
    Code generation 8000 8 — — — —

    6.3 Match Metric Combinations to the Workload

    • Chat: Focus on TTFT and output speed, especially at the P95 percentile.
    • Code generation: Besides speed, look at first-pass acceptance rate and the number of correction rounds.
    • Long-document analysis: Focus on TTFT with long inputs and decode degradation as output grows.
    • Batch offline jobs: Focus on cost per token and throughput stability.

    6.4 Also Check Output Quality

    On the same business test set, compare pass rates, accuracy, and human ratings between the model at original precision and the model after quantization or speculative decoding.

    If a speed gain comes at the cost of a clear drop in quality, it is not worth it in most production scenarios.

    6.5 Look at the End-to-End Path, Not Just the Model

    The actual time for a request also includes:

    • Network transmission;
    • Gateway queuing;
    • Security filtering;
    • Front-end and back-end rendering.

    If the front end renders the entire Markdown output in one pass, the page may stutter no matter how fast generation is. Incremental rendering, virtual lists, and chunked output turn high-speed generation into a genuinely smooth experience.

    7. A Sober Look at “Thousands of Tokens per Second” Claims

    These numbers are not necessarily false. However, they are usually achieved under ideal conditions:

    • A single request or low concurrency;
    • Relatively short inputs;
    • High cache hit rates;
    • Highly predictable output.

    Speed drops noticeably in the following situations:

    • High concurrency: Compute resources become saturated, and each request gets a smaller share.
    • Long contexts: KV cache reads grow linearly.
    • Low cache hit rates: Repeated prefixes cannot be reused, so prefill costs cannot be amortized.
    • Highly uncertain outputs: In creative writing and open-ended reasoning, draft acceptance rates fall and speculative decoding gains shrink.
    • Long outputs: High speed only shortens the “wait for the second half.” TTFT still depends on queuing and prefill.

    To evaluate an ultra-fast inference mode, follow three steps:

    1. Check whether full test conditions are disclosed.
    2. Look at end-to-end latency, not peak rates.
    3. Check whether quality holds up.

    If possible, reproduce the results with your own business data. That is more convincing than any marketing claim.

    Conclusion

    Extreme inference speedup is not the achievement of any single technique. It comes from coordinated optimization across:

    • Model architecture;
    • Numerical precision;
    • Cache management;
    • Decoding strategies;
    • Parallelism and scheduling.

    For developers, the valuable question is not “Can it reach thousands of tokens per second?” It is:

    • In your target scenario, which stage is the slowest?
    • Which optimization gives the best return on effort?
    • Has quality stayed above the minimum bar?

    Build your own latency–quality–cost evaluation baseline, then combine speedup techniques as needed. Only then can an LLM’s speed advantage truly translate into product experience.