Choosing Chinese LLMs: A Developer’s Evaluation Guide

    A practical framework for evaluating large language models from China against real application requirements. Learn how to use leaderboards, build a private evaluation set, compare capabilities and operating costs, weigh cloud APIs against self-hosting, and keep model selection current through continuous evaluation.

    1. Why Model Selection Has Become an Engineering Discipline

    Over the past two years, the number of large language models developed in China has grown rapidly, with new releases frequently claiming to rival leading models. For developers and technical decision-makers, this brings more choice, lower costs, and a growing open-source ecosystem. It also creates information overload, inconsistent evaluation criteria, and conflicting rankings.

    Common use cases include:

    • Conversation and text generation: Customer support, content creation, and knowledge-based question answering.
    • Coding: Frontend page generation, code completion, and bug fixes.
    • Long-context processing: Summarizing lengthy documents and understanding entire code repositories.
    • Multimodal tasks: Image understanding, document parsing, and video analysis.

    These workloads place very different demands on a model. Rather than asking “Which model is best?”, ask “Which model provides the best overall fit for my application?”

    This guide presents a systematic framework for answering that question.

    2. How to Interpret and Use Model Leaderboards

    Model evaluations take several forms: arena-style rankings for web development tasks, broad capability benchmarks, and blind human-preference voting.

    These rankings are useful, but choosing whichever model ranks first is a common mistake.

    Limitations of Leaderboards

    • Task-distribution bias: Arena-style rankings reflect the tasks users submit, which may not represent your workload. A high WebDev ranking does not necessarily indicate strong mathematical reasoning or long-document processing.
    • Capabilities cannot be reduced to one score: Model performance is multidimensional. One model may excel at coding while another handles long documents better. Those strengths are not directly interchangeable.
    • Rankings become outdated: Leaderboards change frequently. A selection made three months ago may no longer be the best fit.

    Use Rankings to Build a Shortlist

    Treat leaderboards as candidate filters, not final decision-makers:

    1. Select three to five promising models from the leading candidates.
    2. Build a private evaluation set from your own application data. Typically, 50–200 real examples provide a practical starting point.
    3. Evaluate candidates with a consistent script, then combine automated scores with human review.

    The following is a simple evaluation skeleton using an OpenAI-compatible API style:

    1. import requests
    2. CANDIDATES = [
    3. {"name": "model-a", "base_url": "https://your-gateway/v1", "api_key": "xxx"},
    4. {"name": "model-b", "base_url": "https://your-gateway/v1", "api_key": "yyy"},
    5. ]
    6. def run_eval(model_cfg, cases):
    7. scores = []
    8. for case in cases:
    9. resp = requests.post(
    10. f"{model_cfg['base_url']}/chat/completions",
    11. headers={"Authorization": f"Bearer {model_cfg['api_key']}"},
    12. json={
    13. "model": model_cfg["name"],
    14. "messages": [{"role": "user", "content": case["prompt"]}],
    15. },
    16. timeout=60,
    17. )
    18. output = resp.json()["choices"][0]["message"]["content"]
    19. scores.append(judge(case, output)) # Automated metrics or human scoring
    20. return sum(scores) / len(scores)

    The judge function represents your evaluation logic; it is not implemented in this skeleton.

    The central requirement is that your evaluation set should come from real application workloads, rather than relying solely on public benchmark questions.

    3. Core Dimensions for Model Evaluation

    Regardless of which products you consider, build a comparison matrix covering at least the following dimensions.

    Task Fit

    • General conversation and instruction following: Does the model reliably understand complex instructions? Does it refuse legitimate requests too often?
    • Coding: Can it generate a runnable frontend page in one attempt? Can it correctly use function calling?
    • Reasoning: How well does it handle mathematics, logic, and multistep planning?
    • Context length: The advertised context window may differ from the amount of context the model can use effectively. Test it with your own inputs.

    Engineering and Integration Effort

    • API compatibility: Does the model support a commonly used API format? How much work would switching require?
    • Streaming and concurrency: Evaluate throughput and time to first token under high concurrency.
    • SDKs and documentation: Check documentation completeness, error-code clarity, and support for the languages and regions relevant to your team.

    Reliability and Compliance

    • SLAs and rate limits: Production deployments need suitable quotas, predictable rate-limit policies, and failure-recovery capabilities.
    • Data security: Determine whether submitted data is used for training and whether private deployments or dedicated instances are available.
    • Content compliance: Assess whether the service meets applicable regulatory requirements and provides sufficient control for sensitive use cases.

    Cost Structure

    Token pricing is only the visible part of the cost. Also consider:

    • Hidden costs: Retries, timeouts, and rework caused by inadequate outputs.
    • Caching savings: Whether repeated prefixes, such as long system prompts, qualify for cached-input pricing.
    • Batch discounts: Whether offline workloads can use batch APIs at a lower unit cost.

    4. Cloud APIs vs. Self-Hosted Open-Weight Models

    Another architectural decision is whether to call a hosted API or deploy an open-weight model on your own inference infrastructure.

    Dimension Cloud API Self-hosted open-weight model
    Initial setup Low; access generally begins after account setup Requires GPU resources and operations work
    Available capability Often provides access to flagship models Depends on the model and model size selected
    Data control Data leaves your environment; assess the implications Data can remain within your private environment
    Cost model Usage-based token charges Provisioned compute costs; potentially more economical at high volume
    Update cycle Provider manages ongoing upgrades You control updates but must maintain the deployment

    A common approach is a hybrid architecture: run sensitive core workloads on private infrastructure, use APIs for long-tail and exploratory workloads, and route requests through a unified model gateway with fallback support.

    The following pseudo-YAML illustrates a gateway configuration:

    1. routes:
    2. - name: chat-default
    3. primary: model-a
    4. fallback: model-b # Switch if the primary is rate-limited or unavailable
    5. - name: code-assist
    6. primary: model-c
    7. cache:
    8. prefix_cache: true # Cache repeated system-prompt prefixes
    9. rate_limit:
    10. per_tenant_qps: 20
    11. observability:
    12. log_tokens: true
    13. trace_sample_rate: 0.1

    The gateway’s main value is to make models replaceable components, rather than tightly coupling them to application code. When a new model becomes available, you can update routing and rerun evaluations before migrating.

    5. A Practical Five-Step Selection Process

    Use the following workflow to turn evaluation into a repeatable decision process:

    1. Define the use case and hard constraints. Specify input and output formats, latency requirements, data-compliance requirements, and budget limits.
    2. Build a candidate pool. Use leaderboards, community feedback, and model reputation to shortlist three to five candidates, covering both open-weight models and commercial APIs.
    3. Create a consistent evaluation process. Build a private test set and combine automated metrics, such as accuracy and pass rate, with human assessments of relevance and safety.
    4. Run a limited production rollout. Start with 5%–10% of real traffic and monitor latency, error rates, and user feedback.
    5. Evaluate continuously. Rerun the evaluation set quarterly or whenever a candidate receives a major version update.

    6. Conclusion

    There is no permanent answer to model selection. Leaderboards and community feedback can narrow the field, but the final decision should rest on your data, your use cases, and your evaluations.

    Treat models as replaceable infrastructure components. Use a gateway to decouple them from application logic, and use continuous evaluation to keep selection decisions current.

    With that process in place, deciding whether to adopt the next model release becomes an evidence-based engineering decision—not a reaction to its leaderboard position.