A Practical Guide to Faster Inference for Chinese LLMs

    This article turns recent benchmark buzz around Chinese large language models into an engineering playbook. It explains how to replace vague "overall capability" claims with a reproducible evaluation framework, how to split inference latency into prefill (TTFT) and decode (TPS) bottlenecks, and which general techniques—prefix caching, chunked prefill with continuous batching, speculative decoding, quantization, and thinking-budget control—underpin so-called fast modes. It also covers why coding benchmarks can show single-task reversals and how to turn speed into operable metrics through dual dashboards, tiered routing, canary rollback, and capacity planning.

    1. Introduction: From Leaderboard Noise to Engineering Usability

    The Chinese LLM space keeps moving. Some newer entrants have been benchmarked side by side with two mainstream production-grade models, landing in between them on aggregate scores and entering the top tier of mainstream Chinese models. On coding tasks, a few individual benchmarks even show a reversal in the leader’s favor. On inference speed, a reported fast mode peaks at roughly two thousand tokens per second of decode throughput, with the thinking phase and the answer phase at about nine hundred and eighteen hundred tokens/s respectively, and a median response time of around three seconds.

    For developers, the value of these numbers is not “who is first.” It is the clear engineering thread they expose: model competition is shifting from parameter count toward effective throughput per unit cost and interaction experience. Setting specific product attributes aside, this article abstracts the phenomenon into three actionable technical questions: how to build a trustworthy evaluation baseline, how to decompose inference latency, and how to use engineering means to turn “fast” into a repeatable deployment capability.

    2. Evaluation Baseline: Breaking “Overall Capability” into Verifiable Dimensions

    A statement like “overall capability falls between two leading models” must be broken down into reproducible measurements before it can guide selection. Cover at least four categories of dimensions.

    The first is knowledge and understanding, measured with multiple-choice questions, reading comprehension, and long-document summarization, focusing on accuracy and hallucination rate. The second is code and structured generation, measured with function completion, cross-file refactoring, unit test generation, and front-end 3D scene assembly, focusing on runnability rate and first-pass rate. The third is reasoning and planning, measured with multi-step math, logic puzzles, and tool-call sequence planning, focusing on final answer correctness and intermediate step consistency. The fourth is interactive performance, measured with time to first token, decode rate, and end-to-end median latency.

    One point deserves emphasis: there is a systematic gap between leaderboard scores and business outcomes. The business side should build a “small golden set,” desensitize real requests into fixed regression cases, and run them after every model or inference configuration change. A minimal regression evaluation skeleton looks like this:

    1. # Pseudocode: minimal viable regression evaluation skeleton
    2. cases = load_golden_set("biz_cases.jsonl") # real requests, desensitized and fixed
    3. def run(model_client, cfg):
    4. rows = []
    5. for c in cases:
    6. t0 = now()
    7. resp = model_client.chat(c.prompt, **cfg)
    8. rows.append({
    9. "case_id": c.id,
    10. "ttft_ms": resp.first_token_ms, # time to first token
    11. "tps": resp.decode_tokens_per_sec, # decode rate
    12. "e2e_ms": now() - t0, # end-to-end latency
    13. "pass": judge(c.expected, resp.text) # business check
    14. })
    15. return summarize(rows) # output P50/P95, pass rate, cost per unit

    3. Latency Breakdown: Slow First Token and Slow Streaming Are Two Different Problems

    Data such as “median response time around three seconds and decode rate above a thousand tokens/s” must be split into two segments, or the bottleneck will be misdiagnosed.

    The first segment is the prefill phase, which determines time to first token (TTFT). It is affected by input length, attention computation complexity, and batching strategy, and rises sharply in long-document scenarios. The second segment is the decode phase, which determines streaming speed (TPS). It is affected by memory bandwidth, batch size, quantization strategy, and sampling parameters. Many teams complain that “the model is slow” when the real issue is a slow first token; other scenarios suffer from tokens that trickle out too slowly, which is a decode bottleneck. The optimization approaches for the two are completely different.

    A practical diagnostic is to plot a latency-versus-input-length curve. If the curve climbs steeply at long inputs, prioritize prefill optimization (for example, chunked prefill and prefix reuse). If the curve shifts as a whole while the slope stays the same, prioritize decode optimization (for example, higher batch concurrency and adjusted quantization precision).

    4. General Engineering Techniques Behind Fast Modes

    A so-called fast mode is usually a combination of several mature techniques in the industry, not a single switch. Understanding them helps you reproduce similar results on your own inference service.

    • Prefix cache reuse: cache invariant parts such as system prompts, tool definitions, and long documents to avoid repeated prefill.
    • Chunked prefill and continuous batching: split long inputs into chunks and interleave them with new requests to raise throughput and lower tail latency.
    • Speculative decoding: use a small model or draft head to guess several tokens, then have the main model verify them in parallel, significantly reducing decode steps when the hit rate is high.
    • Quantization and operator fusion: reduce weight and activation bit width within an acceptable accuracy range to relieve memory bandwidth pressure.
    • Thinking budget control: set token limits and early-stop policies for the thinking phase to avoid needless long chain reasoning that inflates latency.

    All of these can be hosted on common cloud product categories such as container platforms, object storage, message queues, logging services, and monitoring and alerting: use a container platform for elastic scaling, object storage for models and caches, a message queue for request peak shaving, and logging and monitoring for continuous TTFT/TPS observation.

    5. Why Single-Task Reversals Happen in Coding

    A single-task reversal in coding benchmarks is not surprising. Code tasks are highly structured, models are densely distributed over them in training corpora, and benchmarks often focus on runnability and local correctness. Tasks such as 3D scene assembly and visualization generation have a relatively convergent answer space, so models can score high on the “it runs” bar; cross-file refactoring and long-context consistency maintenance demand more engineering capability and fluctuate more.

    Therefore, selection should not rely on a single aggregate score but should weight dimensions according to the business task mix. If your business is mainly front-end pages and script generation, give runnability rate more weight; if it is mainly legacy system modernization, focus on long context and multi-turn consistency.

    6. Implementation Advice: Turning “Fast” into an Operable Metric

    First, build a dual-metric dashboard: the business side tracks pass rate and human adoption rate, while the engineering side tracks TTFT, TPS, P95 latency, and cost per token. Second, apply tiered routing: send simple requests to a low-latency configuration and complex requests to a high-quality configuration, splitting traffic with rules or a small classifier. Third, apply canary and rollback: validate any inference configuration change with a small traffic share first, and keep one-click rollback. Fourth, do capacity planning: estimate memory and concurrency from peak QPS and average input/output length, and reserve headroom for bursts.

    7. Conclusion

    The focus of competition among Chinese LLMs is shifting from leaderboard rank toward effective throughput per unit cost and a stable experience. For developers, what is truly reusable is the methodology: unify the evaluation baseline, decompose latency structure, reproduce the fast experience with general engineering techniques, and keep iterating on operable metrics. Master this approach and, no matter how models are replaced, you can quickly judge whether to switch, when to switch, and how to switch.