How to Choose a Chinese LLM: Technical Evaluation and Production Practices

    Choosing the right Chinese large language model is no longer about picking the top benchmark score. This guide explains how to break down business scenarios into task families, build a reproducible evaluation set with golden, regression, and adversarial data, and score candidates across instruction following, long-context usage, tool-calling reliability, hallucination rate, and multimodal support. It also covers cost control per request path, layered model routing, and a practical engineering checklist for deployment.

    1. The Real Problem: From Leaderboards to Scenarios

    A cloud provider recently added two Chinese open-source LLMs to its inference platform, and the developer community immediately started debating them. Events like this highlight a practical reality: the number of Chinese LLMs and the speed of their iteration have far outpaced what an individual developer can track. As supply shifts from scarce to abundant, the core question changes too. It is no longer “is there a usable model?” but “which model fits best under my business constraints?”

    The most common mistake teams make is deciding based on public benchmark leaderboards. Leaderboards measure general capability on standardized questions, while real workloads often carry strong domain bias, long-tail distributions, and strict format requirements. So the first step is to abandon the search for an all-around champion and deconstruct the scenario instead.

    Start by breaking the business into enumerable task families, for example:

    • Extraction and structuring: contract element extraction, log attribution, form filling;
    • Generation and rewriting: marketing copy, code comments, summarization and compression;
    • Reasoning and planning: multi-step tool calls, data pipeline orchestration;
    • Conversation and companionship: multi-turn context retention, tone and emotion control.

    Different task families are sensitive to entirely different capability dimensions. Extraction tasks are extremely sensitive to instruction following and output stability; planning tasks depend more on long context and multi-step consistency; conversational tasks impose hard requirements on latency and time to first token.

    2. Build a Reproducible Evaluation Set

    Any selection decision made without your own evaluation set is a gamble. A minimal viable evaluation system has three layers of data:

    1. Golden set: 100–300 manually and carefully labeled samples covering typical and boundary cases, used for the final decision;
    2. Regression set: sampled from historical production requests and anonymized, used to guard against regressions after version upgrades;
    3. Adversarial set: abnormal samples such as prompt injection, extremely long inputs, ambiguous instructions, and mixed languages, used for stability stress testing.

    Metrics should separate capability metrics from engineering metrics. Capability metrics include task success rate, field-level accuracy, and format compliance rate; engineering metrics include time to first token, output tokens per second, and error rate under concurrency. A sketch of the evaluation skeleton:

    1. def evaluate(model_client, dataset):
    2. result = {"success": 0, "format_ok": 0, "latency": []}
    3. for case in dataset:
    4. start = time.time()
    5. out = model_client.chat(case.prompt)
    6. result["latency"].append(time.time() - start)
    7. if check_answer(out, case.gold):
    8. result["success"] += 1
    9. if validate_schema(out, case.schema):
    10. result["format_ok"] += 1
    11. n = len(dataset)
    12. return {k: (v / n if isinstance(v, int) else v) for k, v in result.items()}

    The key is to compare candidates horizontally under the same questions, the same judging logic, and the same hardware and network conditions. Otherwise the conclusions do not transfer.

    3. Break Down Capability Dimensions: Don’t Be Fooled by a Single Score

    Score candidate models structurally across five dimensions:

    • Instruction following: whether output reliably matches the specified format, fields, and length;
    • Long-context usage: the ability to locate key information in long documents, watch for the “lost in the middle” effect;
    • Tool-calling reliability: the validity rate of generated function arguments and the ability to self-correct across turns;
    • Knowledge freshness and hallucination rate: how well the model handles domain-specific terms, and whether its refusal mechanism is sound;
    • Multimodal and multilingual support: whether mixed image-text input or low-resource language support is needed.

    One practical engineering trick: separate format compliance from model capability and govern it on its own. Constrained decoding, structured output templates, and post-validation with retry can significantly reduce dependence on the model’s own formatting ability. For example:

    1. def robust_call(client, prompt, schema, retry=2):
    2. for _ in range(retry + 1):
    3. raw = client.chat(prompt, response_format="json")
    4. try:
    5. return validate_and_parse(raw, schema)
    6. except SchemaError:
    7. prompt += "\nThe previous output did not meet the field requirements. Return only valid JSON."
    8. raise RuntimeError("Schema validation failed after multiple attempts")

    4. Cost and Architecture: Put the Bill on the Request Path

    Model cost cannot be judged by unit price alone; look at cost per unit of business output. Roughly: cost per task ≈ (input tokens + output tokens) × unit price + retry overhead + orchestration overhead. In long-context scenarios the input share is very high, so context compression, retrieval augmentation, and cache reuse usually cut costs more effectively than switching models.

    For architecture, layered routing is recommended: use a small-parameter model or a rules engine for high-frequency simple requests first, and escalate to a large-parameter model only when the match fails or confidence is low. Combined with semantic caching (reusing historical results for similar requests) and batch processing for offline tasks, you can compress peak spend without sacrificing quality. Observability is equally essential: feed token consumption, latency distribution, and failure reasons into logging and alerting, and build a cost dashboard attributed by business line.

    5. Engineering Deployment Checklist

    • Abstract a unified model gateway that hides interface differences between vendors, so business code is not locked to a single implementation;
    • Establish canary release and rollback mechanisms: validate a new version on shadow traffic before switching over the main path;
    • Anonymize sensitive data and minimize input, and define clear boundaries for data retention and compliance;
    • Define fallback strategies: on timeout, rate limiting, or non-compliant content, fall back to templates or a human queue;
    • Turn prompts and evaluation sets into team assets under version control.

    6. Conclusion

    The pool of Chinese LLM options will keep growing, so selection should not be a one-off decision but a continuously running evaluation pipeline. Break scenarios down finely, make evaluation solid, account for cost clearly, and decouple the architecture — that is how you keep engineering control in the face of rapid model iteration. If you need ready-to-use model services along with general cloud capabilities such as data, containers, and log monitoring, Baidu AI Cloud offers composable infrastructure, letting teams focus on the business and on evaluation itself.