Flagship LLM Inference at 400 tok/s: How to Get Speed Without Losing Capability

    This article breaks down how a flagship-level model can sustain 400 tok/s output while remaining competitive on capability. It covers the key inference metrics, the main decoding and serving optimizations behind the speedup, the product workflows unlocked by lower latency, a reproducible evaluation method, and practical guidance for choosing between speed and cost.

    1. A common assumption is being challenged

    For the past year or two, “fast” and “small” have often been treated as synonyms in model serving. Services marketed as “high-speed” or “ultra-fast” are usually lightweight models: parameters are reduced, each decoding step becomes cheaper, and output speed rises. The tradeoff is reduced performance on complex reasoning, long-context understanding, and code generation. Users have generally accepted this exchange: if you want speed, you should not expect flagship-level capability.

    A recent public demonstration from a vendor challenges that assumption directly. In the demonstration, a flagship-level model’s high-speed channel reached an output rate of 400 tok/s, roughly 7 times the normal channel, with time to first token (TTFT) below 1 second. At the same time, in public code-generation evaluations, the model remained in the flagship tier and did not lose capability because of the speedup.

    The number becomes more intuitive when translated into human terms. A blink takes about 0.3 seconds. At 400 tok/s, the model writes about 120 tokens in that time, which is roughly a hundred-plus characters in Chinese. In other words, by the time you blink, a small but readable passage has already appeared on the screen.

    This change deserves careful analysis. It is not merely an “experience optimization.” It moves product forms that were previously impractical because of high latency back into the feasible range. The discussion below is organized into five layers: metric definitions, technical paths, product impact, evaluation methods, and engineering implementation.

    2. First, define the metrics: what tok/s actually means

    Before discussing speed, the measurement must be unified. Otherwise, comparisons easily become “everyone talks past each other.” In production, at least five metrics materially affect experience:

    1. TTFT (Time To First Token): The time from sending a request to receiving the first output token. It determines how long users wait after pressing Enter before seeing a response. For interactive scenarios, it is the primary experience metric. TTFT is mainly affected by the prefill stage and is strongly correlated with input length.
    2. TPOT / ITL (Time Per Output Token / Inter-Token Latency): The average interval between adjacent tokens. Its reciprocal is the commonly referenced “output rate.” When users watch text appear token by token, this is the metric they perceive.
    3. Per-stream tok/s: The output rate of a single request. The 400 tok/s figure belongs to this category.
    4. Aggregate throughput: The total number of tokens produced by the server per unit time across all concurrent requests. The public demonstration’s “50 roles answering simultaneously with aggregate throughput of about 1000 tok/s” refers to this metric. It is not the same as per-stream speed.
    5. Tail latency and stability (P95/P99): Even if the average rate looks good, frequent stalls on long-tail requests can still break the product experience. Production acceptance must examine percentiles, not only averages.

    These metrics often pull against one another. Packing more requests into the same batch can raise aggregate throughput, but per-stream speed and TTFT may worsen. Conversely, abandoning batching for extreme single-stream speed can cause compute cost per token to rise sharply. Therefore, “400 tok/s” and “thousand-level aggregate throughput” must be described and evaluated separately; they cannot be used to endorse each other.

    A simple calculation shows the practical significance of speed. Generating an 8,000-token frontend file takes about 160 seconds at 50 tok/s, nearly three minutes. At 400 tok/s, it takes about 20 seconds. For iterative workflows where the goal is “make a change and see the result,” this difference determines whether you can iterate 20 times or 200 times in a day.

    3. Why a flagship model can be fast: four main decoding-stage technical paths

    The core conclusion is straightforward: this kind of speedup mainly comes from per-token compute efficiency and scheduling efficiency in the decoding stage, not from “switching to a smaller model.” Commonly recognized acceleration techniques can be grouped into four main paths, and they often need to be combined to achieve several-fold gains.

    3.1 Sparse activation: capacity for capability, small activation for cost

    The basic idea of the Mixture-of-Experts (MoE) architecture is to make the total parameter count very large to preserve knowledge capacity and expressive power, while routing each token to only a small number of experts. The parameters actually involved in computation are far smaller than the total parameter count. As a result, “capability” is determined by total capacity, while “speed and cost” are determined by activation volume.

    This explains a key question: why can some models with flagship-level quality run a high-speed channel? A large parameter count does not necessarily mean a large amount of computation per token. Architecture design plays a decisive role here.

    3.2 Speculative decoding: letting a flagship model verify multiple tokens in one forward pass

    This is one of the most direct techniques for improving single-stream speed in recent years. Standard autoregressive decoding requires a full forward pass for each generated token. It is serial and cannot be parallelized, so speed is naturally limited. Speculative decoding changes this serial structure:

    • A low-cost “draft” source quickly guesses the next k tokens.
    • The target large model verifies these k tokens in parallel with a single forward pass.
    • The accepted prefix is retained according to the acceptance criterion; rejected tokens are discarded and regenerated by the large model.

    The draft source can be a small model, a multi-token prediction head inside the model, or retrieval-based n-gram matching. For highly repetitive content such as code and templated text, the acceptance rate of retrieval-based drafting can be surprisingly high. The key point is that, as long as the acceptance criterion is designed correctly, the final output distribution remains consistent with the target model. This is lossless acceleration: capability is not discounted because of speed.

    The speedup depends on the balance between two factors: the draft acceptance rate and the additional verification overhead. Higher acceptance and cheaper verification produce greater gains. This also explains why code generation benefits especially from this mechanism: the structure and repetitiveness of code make draft hit rates significantly higher than for free-form text.

    3.3 Quantization and kernel optimization: reducing the absolute time of every step

    • Low-precision inference: Weights and activations use FP8, INT8, or even lower-bit representations, improving matrix multiplication throughput and reducing memory bandwidth pressure. Modern accelerators have dedicated support for low-precision matrix operations, making this one of the most cost-effective optimizations.
    • KV Cache optimization: For long-context decoding, the bottleneck is often not compute but KV cache memory usage and read bandwidth. Paged cache management reduces fragmentation and improves concurrency capacity. Structures such as Grouped Query Attention (GQA) make the number of KV heads much smaller than the number of query heads. Quantizing the cache itself can also significantly reduce bandwidth pressure.
    • Prefix caching: In multi-turn conversations, requests with long system prompts, and code completion scenarios, request prefixes are highly repetitive. Caching and reusing the prefix KV can reduce prefill cost from “recompute every time” to “use on cache hit,” directly improving TTFT.
    • Operator fusion and IO-aware attention kernels: These reduce the number of intermediate result reads and writes. Decoding is a typical memory-intensive workload, and many optimization gains come from “reading memory once less,” not from “computing a little more.”

    3.4 Scheduling and serving architecture: separating prefill and decode

    Prefill is compute-intensive: large matrix multiplications saturate compute. Decode is memory-intensive: each token requires reading the weights again, with low compute utilization. Mixing the two in the same batch can slow each other down. Prefill for long-input requests can block the decoding rhythm of other requests, causing TPOT jitter.

    A common engineering approach is prefill/decode disaggregated deployment, allowing the two workload types to run on the parallel strategies and hardware forms they are best suited for. Combined with continuous batching (requests leave the batch as soon as they finish, and new requests can join at any time) and chunked prefill (splitting long prefills into small chunks and interleaving them with decoding to control single-block duration), the system can maintain high throughput without sacrificing per-stream speed.

    On top of this, there is a set of “last mile” engineering details: streaming responses, routing and queueing strategies, connection reuse, nearby access, rate limiting, and backpressure. Metrics such as TTFT below 1 second are often determined collectively by these seemingly minor components.

    Summary: Several-fold speedup does not come from a single “silver bullet.” It is the combined result of architecture sparsification, lossless decoding acceleration, low-precision kernels, and scheduling architecture optimization. To judge whether a speedup is “lossless,” the most reliable method is not to rely on marketing claims, but to compare capability scores on the same evaluation set and verify whether the output distribution matches the standard channel.

    4. Once latency crosses a threshold, product forms change

    One often-overlooked fact is that human reading speed has an upper limit. Fluent Chinese reading is about 5–8 characters per second, roughly 5–10 tok/s. When model output speed far exceeds reading speed, the sense of waiting disappears. Users no longer “submit a task and go make coffee”; instead, they “speak, modify, and watch” in a continuous loop.

    Specific scenarios include:

    (1) One-shot generation of long artifacts. Ten-thousand-character codebases, complete pages, and long documents shift from “submit and leave” to “watch it finish writing.” This is not just about mood. Developers can observe the generation path in real time and interrupt immediately if the direction goes off track, saving the token cost of an entire retry round.

    (2) Real-time creative loops. Take graphics/shader tasks as an example: the user inputs a natural-language description, the model produces shader code in real time, and the rendering window displays the result synchronously. If the result is unsatisfactory, the user adds another instruction; the code changes and the image updates almost immediately. In the public demonstration, such tasks iterated from a single sentence to a physically correct 3D scene (including accretion disks, gravitational lensing, and particle effects) within tens of seconds, with output speed maintained in the 200–390 tok/s range.

    The key here is not “fast” but the number of iteration rounds per unit time. When feedback for a single modification drops from more than ten seconds to sub-second, the number of approaches you can try in the same ten minutes increases by an order of magnitude, and the quality of the final artifact naturally differs. Speed becomes a multiplier of quality.

    (3) From sketch to runnable prototype. Input a hand-drawn wireframe, and tens of seconds later output a runnable page with structure, styling, and interaction logic. The value of the prototype stage is “fast falsification”: the sooner you see something runnable, the sooner you discover that the direction is wrong.

    (4) Real-time changing world state. In games or simulation scenarios, natural language can directly change themes, elements, and visual styles. Such interactions were previously limited by “wait more than ten seconds per change” and could only be implemented as offline configuration. Once latency drops, they become interactive product capabilities.

    (5) Multi-agent concurrency. Having dozens of roles respond simultaneously tests aggregate throughput rather than single-stream speed. This is a system-side metric that must be solved through batching and scheduling. It is a different optimization path from single-stream speedup.

    The conclusion can be summarized in one sentence: once speed crosses a certain threshold, it is no longer an experience parameter but a feasibility parameter.

    5. Test it yourself: a reproducible parallel evaluation method

    Public demonstrations are only references. Real selection must be tested independently. A reasonable approach is to run multiple channels in parallel on the same machine, use exactly the same prompts, and record both the timeline and artifact quality.

    Control variables carefully: model version, sampling parameters (temperature, top_p, max_tokens), network environment, and test time window must be fixed. Split-screen parallelism only solves “starting at the same moment”; it does not solve differences in server-side queueing and cache hits. Therefore, tests must be repeated multiple times, using the median and P95 rather than drawing conclusions from a single run.

    A minimal measurement script (pseudocode; replace interface fields according to the actual service contract):

    1. import time, json, statistics
    2. import requests
    3. def measure(endpoint, headers, payload, rounds=5):
    4. records = []
    5. for _ in range(rounds):
    6. t0 = time.perf_counter()
    7. ttft, tokens = None, 0
    8. with requests.post(endpoint, headers=headers, json=payload,
    9. stream=True, timeout=600) as resp:
    10. resp.raise_for_status()
    11. for raw in resp.iter_lines():
    12. if not raw:
    13. continue
    14. event = json.loads(raw)
    15. if ttft is None and event.get("delta"):
    16. ttft = time.perf_counter() - t0
    17. tokens += event.get("delta_token_count", 0)
    18. total = time.perf_counter() - t0
    19. records.append({
    20. "ttft_s": ttft,
    21. "total_s": total,
    22. "tokens": tokens,
    23. # Steady-state rate: exclude TTFT from the denominator to avoid skewing the result.
    24. "tps": tokens / max(total - (ttft or 0), 1e-6),
    25. "finished": bool(event.get("finish_reason")),
    26. })
    27. return {
    28. "ttft_p50": statistics.median(r["ttft_s"] for r in records),
    29. "tps_p50": statistics.median(r["tps"] for r in records),
    30. "total_p95": sorted(r["total_s"] for r in records)[-1],
    31. "drop_rate": sum(not r["finished"] for r in records) / rounds,
    32. }

    Common pitfalls:

    • Do not estimate token speed using character or byte counts. Different tokenizers can split the same Chinese text differently by more than 10%. Use the usage fields returned by the server.
    • Distinguish cold start from steady state. The first request often has no prefix cache, so TTFT can be significantly higher. Mixing cold-start and steady-state results makes the statistics meaningless.
    • Quality must be compared in the same table as speed. Frontend pages must actually render, shaders must actually compile, and unit tests must actually pass. Measuring only token flow rate without measuring artifact runnability is equivalent to not testing at all.
    • Record failures and truncations. Stream interruptions, timeouts, and truncated output can artificially inflate “average speed” and must be counted separately.

    6. Selection and cost: when speed is worth paying for

    Speed is not free, and it is not always necessary. Engineering practice usually handles workloads in two categories:

    Batch offline workloads (data cleaning, batch annotation, offline generation) are insensitive to latency. The optimization goals are cost per token and aggregate throughput. Such workloads should increase batch size and GPU utilization as much as possible rather than pursuing single-stream speed.

    Interactive workloads (coding assistants, real-time creation, conversation) are highly sensitive to latency. The optimization goals are TTFT and steady-state TPOT. Faster decoding means more tokens produced in the same waiting time, giving users higher “effective throughput.”

    Two cost perspectives are also worth calculating:

    1. Output per unit time. With token price unchanged, an N-fold increase in decoding speed means N times as many iteration rounds can be completed in the same duration. For self-hosted inference clusters billed by GPU hour, the metric “GPU-hour cost ÷ output tokens” will directly decline.
    2. Tiered routing. A common pattern is to use the high-speed channel for drafts, previews, and rapid iteration, and the standard channel for final verification and delivery. Or the reverse: use the high-speed channel for final generation because output per unit time is higher, with the standard channel as a fallback. Which is more cost-effective depends on the business’s tolerance for quality variance and cost, and must be tested empirically.

    Stability governance is equally indispensable: rate limiting and quotas, timeout and stream-interruption retries, idempotent design, a switch to fall back to the standard channel, and cost dashboards by business dimension.

    7. Implementation checklist: turning “fast” into deliverable engineering capability

    • Define acceptance metrics: TTFT, TPOT, aggregate throughput, P95 tail latency, and stream interruption rate. Do not compare until all five are available.
    • Establish a baseline: Fix the test set and sampling parameters, and retain reproducible scripts and raw logs.
    • Quality gates: Artifact runnability, compile/test pass rate, and manual spot checks as admission conditions for the accelerated channel.
    • Caching strategy: Place stable system prompts, templates, and code context at the prefix position to improve prefix cache hit rate. The hit rate itself should be a monitoring metric.
    • Streaming experience optimization: Render structure first and fill in details later, so users see a “skeleton” when the first token arrives instead of waiting for a blank screen.
    • Observability: Connect TTFT, TPOT, error-code distribution, and interruption rate to monitoring and alerting. Log services should retain request-level traces to help locate long-tail issues.
    • Elasticity and peak shaving: Use container platforms for elastic scaling, message queues to absorb burst traffic, and object storage for generated artifacts and intermediate caches to avoid peak traffic overwhelming interactive channels.
    • Canary and A/B testing: Validate new channels with small traffic first, comparing real business metrics (task completion rate, rework rate, output per person) rather than only benchmark scores.

    8. Conclusion: speed eventually becomes part of capability

    Returning to the original question: why can a flagship model be both fast and strong? The answer is not mysterious: capability comes from model capacity and training quality; speed comes from algorithms and systems engineering on the decoding path. These two things are architecturally decoupled. As long as the acceleration method is lossless (for example, speculative decoding preserves the output distribution under a correct acceptance criterion), there is no need to choose one over the other.

    What truly needs caution is treating “fast” as the endpoint. 400 tok/s has no value in itself. The value lies in the workflows it unlocks: from the three-stage “submit, wait, check” process to a continuous loop of “speak, modify, and watch”; from whether something can be done correctly once to how many approaches can be tried in ten minutes.

    When latency falls below a certain threshold, speed is no longer a performance metric but a prerequisite for product design. It changes not the waiting time, but which things become worth trying.