Chinese Large Language Models: Technical Progress and Engineering Practice Explained

    This article examines the shift in China's large language model landscape from parameter-count competition to efficiency, covering Mixture-of-Experts (MoE) sparse activation, a five-dimension evaluation matrix, the engineering reasons behind lower training costs, and how to deploy and tune models on general cloud infrastructure. It also lists common pitfalls around total parameters, leaderboard scores, data compliance, cost scope, and full-scale replacement.

    1. Introduction: From a Parameter Race to an Efficiency Race

    The most notable change in China’s large model space over the past two years is that the industry’s focus has moved away from simply stacking parameters toward a combined competition on architectural efficiency, training cost, and inference throughput. Early discussions often centered on “how many billions of parameters,” but engineering practice has gradually shown that what really determines whether a model is usable is output per unit of compute, memory footprint, and cost per token. This article takes a typical Chinese large model technical route as a sample, abstracts its technical characteristics, and provides practical evaluation and deployment methods.

    Note that this article does not evaluate or recommend any specific vendor’s product. Instead, it analyzes “Mixture-of-Experts architecture + high-precision training + low-cost inference” as a common class of industry technical approach.

    2. Technical Foundation: Mixture-of-Experts Architecture and Sparse Activation

    2.1 The Essential Difference Between Dense and Sparse Models

    In a traditional dense architecture, every input token passes through all parameters for computation, so parameter count and compute volume are roughly linearly correlated. A Mixture-of-Experts (MoE) architecture splits the feed-forward layers into multiple parallel “expert” networks and introduces a gating network to select a few experts for each token.

    The result: the total parameter count can be very large, but the number of parameters actually activated per token is small. Taking a publicly known configuration from the industry as an example, the total parameter count is roughly over 670 billion, while only about 30-something billion are activated per token, an activation ratio of roughly 5% to 6%. This means memory must hold all parameters, but compute consumption is counted only for the activated portion.

    2.2 Engineering Constraints Introduced by Sparse Architecture

    Sparsification is not free of cost. Engineering must handle three types of problems:

    • Load imbalance: the gate may route a large number of tokens to a few experts, leaving some devices idle while others are overloaded.
    • Communication overhead: when experts are distributed across different devices, token routing introduces additional collective communication cost.
    • Training stability: gating output needs to be constrained by auxiliary losses (such as a load-balancing loss), otherwise it can easily degrade.

    Therefore, when evaluating an MoE model, you cannot look only at total parameters; you also need to check whether the activation ratio, expert granularity, and parallel partitioning strategy match your own cluster conditions.

    3. Capability Evaluation: How to Objectively Judge Whether a Large Model Is Good Enough

    Much discussion stops at “high or low benchmark scores,” which is far from sufficient in engineering terms. It is advisable to build an evaluation matrix across the following five dimensions:

    1. Language understanding and generation quality: long-text summarization, consistency across multi-turn dialogue, and instruction following.
    2. Code and structured output capability: code completion, cross-file understanding, and structured generation such as JSON or tables, which can be measured by a unified unit-test pass rate.
    3. Reasoning and math capability: multi-step reasoning and symbolic operations, noting the difference between “memory-based correctness” and “reasoning-based correctness.”
    4. Long-context handling: effective context length and “mid-section information recall rate,” the latter often overlooked.
    5. Engineering metrics: time to first token, output tokens per second, cost per token, and the throughput degradation curve under concurrency.

    Illustrative evaluation call logic (pseudocode, with generic interface names):

    1. # Unified evaluation framework: compare models horizontally under the same prompt set and decoding parameters
    2. CASES = load_cases("eval_set.jsonl")
    3. def run_eval(model_client, cases=CASES, temperature=0.0):
    4. results = []
    5. for c in cases:
    6. out = model_client.generate(
    7. prompt=c["prompt"],
    8. temperature=temperature, # Fixed at 0 during evaluation to ensure reproducibility
    9. max_tokens=c.get("max_tokens", 1024),
    10. )
    11. results.append({
    12. "id": c["id"],
    13. "score": c["scorer"](out), # Rule matching / unit test pass / human rating
    14. "latency_ms": out.latency_ms,
    15. "tokens": out.output_tokens,
    16. })
    17. return summarize(results) # Quality score + P50/P95 latency + cost per token

    The key point: fixed decoding parameters, a fixed prompt set, and a fixed scorer — otherwise no comparison holds.

    4. Cost Breakdown: Why “Cheap” Does Not Mean “Cutting Corners”

    The source material mentions that a certain class of models has a training cost in the range of a few million US dollars, significantly lower than the common investment for dense models of the same scale. The engineering explanation for this phenomenon can be summarized in three points:

    • Sparse activation reduces compute demand: floating-point operations in both training and inference are counted by activated parameters rather than total parameters.
    • Precision and parallel strategy optimization: mixed-precision training, operator fusion, and combinations of pipeline and tensor parallelism can all compress actual overhead.
    • Data and training pipeline efficiency: data cleaning quality, curriculum-style training scheduling, and cost control in the distillation and post-training stages.

    It must be emphasized that low training cost reflects engineering efficiency, not an inevitable reduction in the capability ceiling. Judging capability still requires returning to the evaluation matrix in Section 3. At the same time, publicly claimed cost figures usually cover only a specific scope (such as renting compute for a single pre-training run) and do not include all labor, data, and trial-and-error costs, so readers should stay cautious.

    5. Implementation: Deploying and Tuning on General Cloud Resources

    For enterprise users, the focus after model selection is how to run stably at a controllable cost. A closed loop can be built on a combination of general cloud capabilities:

    • Container platform: hosts inference services and works with elastic scaling to handle traffic peaks.
    • Object storage: stores model weights, evaluation sets, and training corpora.
    • Message queue: smooths out peaks and fills valleys, and makes long-text processing tasks asynchronous.
    • Logging service and monitoring alerts: collects latency, memory usage, and error rates, with threshold-based alerts.
    • Load balancing and gateway: provides unified authentication, rate limiting, and canary releases.

    Key tuning measures on the inference side include: KV Cache reuse, Continuous Batching, quantization (such as quantizing weights to fewer bits), and selecting model size by business tier — simple intent recognition goes to a small model, complex reasoning goes to a large model, with a routing layer making the decision.

    A simplified routing strategy example:

    1. def route(prompt: str) -> str:
    2. if len(prompt) < 200 and is_simple_intent(prompt):
    3. return "small_model" # Low latency, low cost
    4. if requires_code_or_math(prompt):
    5. return "reasoning_model" # High-capability tier
    6. return "default_model"

    6. Common Pitfalls and Risk Notes

    1. Treating total parameters as compute: in MoE scenarios the two are decoupled, so capacity planning must look at activated parameters and memory.
    2. Looking only at leaderboard scores: leaderboards differ greatly from real business distributions, so you must build your own evaluation set.
    3. Ignoring data compliance: training and inference data need desensitization, classification, and audit trails.
    4. Overlooking cost scope: when comparing quotes, confirm whether they include tokens in both input and output directions, and whether they include cache and batching discounts.
    5. Replacing everything at once: a canary rollout is recommended, keeping a rollback path and a human fallback.

    7. Conclusion

    The technical competitiveness of Chinese large models is shifting from “stacking parameters” to “competing on efficiency and engineering completeness.” For developers and enterprises, the pragmatic path is: first build a reproducible evaluation system, then do capacity planning based on activated parameters, memory, and cost per token, and finally use general cloud infrastructure to achieve elastic deployment and continuous tuning. The capabilities Baidu AI Cloud offers in model serving and compute scheduling can serve as one of the infrastructure options for enterprises building the loop described above.