How to Evaluate and Select Chinese LLMs: Capability, Cost, and Production Engineering
Choosing among Chinese LLMs is no longer about finding the "strongest" model—it's about finding the best fit for your task profile, latency budget, compliance boundaries, and cost constraints. This guide covers how to build reproducible evaluation benchmarks, measure engineering metrics that matter in production, calculate per-successful-task cost, enforce security and observability requirements, and design a reference architecture that treats models as replaceable components. A pre-launch checklist and routing pseudocode are included.
From “Model Onboarding” to “Engineering Selection”
Over the past year, the supply of Chinese-developed LLMs has grown significantly: new models are released more frequently, and hosted inference catalogs, unified gateways, and model aggregation platforms have begun folding more Chinese models into a single calling experience. For developers, this creates a counterintuitive shift: models are no longer scarce—having too many comparable models has become the new problem. Teams used to ask “which model is the strongest?”; the better question now is “under my data distribution, latency budget, compliance boundaries, and cost constraints, which model delivers the highest overall return?”
First, clarify the concepts. A “unified inference catalog” or “model marketplace” essentially wraps models from different providers into a similar calling shape: authentication, quotas, billing, logging, rate limiting, and version identifiers are kept as consistent as possible, while the business side selects backend models through a routing layer. It reduces integration cost, not selection cost. What truly determines outcomes is still task fit, context organization, prompt engineering, retrieval quality, the representativeness of your evaluation sets, and the post-launch feedback loop.
In general-purpose cloud environments such as Baidu AI Cloud, these capabilities typically map to generic categories like model inference services, API gateways, container platforms, object storage, log services, and monitoring/alerting. But the architectural principles are vendor-agnostic: the key is to treat the “model” as a replaceable component rather than hard-wiring business logic into any single call.
1. Define the Task Profile Before Comparing Model Strength
The first step in model selection is not running benchmarks—it’s decomposing your tasks into measurable profiles. Build a table describing each business scenario: input length distribution, output length distribution, peak concurrency, allowed latency, streaming or not, multi-turn or not, dependence on external knowledge, tool calling requirements, involvement of sensitive data, and the cost of failure. Even within “Q&A,” customer service fallback, code completion, financial report summarization, and medical risk warnings have completely different evaluation criteria.
Common tasks fall into several categories: (1) Chinese content creation and rewriting, which values stylistic stability, factual restraint, and format compliance; (2) enterprise knowledge Q&A, which values citation consistency after retrieval hits, well-bounded refusals, and context utilization; (3) code generation and review, which values syntactic correctness, applicable patches, unit test pass rates, and security flaw detection; (4) structured extraction, which values stable fields, enum constraints, and repairable errors; (5) complex reasoning and planning, which values step decomposition, tool orchestration, and interpretable intermediate states. Once the task profile is written down, many “who’s stronger” debates disappear, because candidate models usually only diverge meaningfully on two or three dimensions.
2. Capability Evaluation: From “Feels Good” to Reproducible
Public leaderboards are only useful for initial screening; they cannot replace a private benchmark. Public data is prone to overfitting, and business corpora differ in distribution from public corpora. A more robust approach is a three-layer evaluation set: the first layer is a regression set built from historical real tickets, logs, and human annotations, ensuring new versions don’t degrade; the second is a stress set containing long documents, noisy inputs, conflicting instructions, over-privilege requests, and adversarial prompts; the third is an exploration set for observing generalization on unseen tasks.
Scoring should combine automated and human methods. Automated metrics can cover format validity rate, JSON parseability, field accuracy, citation hit rate, code compilation rate, unit test pass rate, repetition rate, and sensitive-word trigger rate. Human review focuses on factual correctness, tone compliance, hallucination, leakage, and whether the user’s true intent was fulfilled. For multi-turn dialogue, record “within-turn consistency” and “cross-turn memory contamination.” For retrieval-augmented scenarios, distinguish “retrieval failure,” “generation failure,” and “fusion failure”—otherwise recall problems get misdiagnosed as model problems.
A reproducible experiment fixes at least four things: input snapshots, prompt versions, decoding parameters, and random seeds or equivalent controls. On the output side, preserve raw responses, retry counts, token usage, latency percentiles, and final human verdicts. Without this metadata, “comparisons” easily degenerate into screenshot wars.
3. Engineering Metrics Matter More Than Any Single Answer
In production, users experience the system, not an individual generation. Latency should be measured by time-to-first-token and full-completion percentiles; throughput by requests served per unit time; stability by timeout rate, rate-limit rate, retry amplification, and degradation behavior at peak. Don’t judge the context window by its nominal length alone—measure “effective context”: when key information is buried in the middle or end of a long document, or in conflicting positions across multiple documents, can the model still locate and cite it?
Tool-calling ability deserves standalone evaluation. Many enterprise scenarios don’t lack a pretty answer—they lack a model that can select the right tool from a controlled function set, fill in valid parameters, respect permission boundaries, and stop on failure. Define four metric classes here: “action success rate,” “parameter validity rate,” “over-privilege interception rate,” and “loop-call rate.” For workflows requiring high determinism, have the model produce a plan and let deterministic code execute the state machine; never let a model directly operate high-risk resources.
Stability design includes timeouts, circuit breaking, degradation, and fallback. A common strategy: a primary model handles complex samples, a lightweight model handles high-frequency simple samples, and rules or retrieval templates handle high-risk scenarios with fixed answers. Routing should consider not just cost but business criticality: transactions, funds, identity, medical, and legal requests should prioritize audit, refusal, and human handoff paths even at higher cost.
4. Cost Is Not Unit Price—It’s Unit Business Value
Model cost is often reduced to per-token input/output pricing, but real cost also includes wasted retries, bloated prompts, repeated context, human review triggered by low-quality answers, cache misses, peak scaling, log retention, and security audits. A better metric is “cost per successful task”: count all model calls, retrieval calls, tool calls, human intervention, and failure rollbacks needed to complete a task.
Cost reduction should also be engineered. Make prompts templated and versioned to avoid repeatedly stuffing unchanging instructions into long contexts; summarize session state to preserve facts rather than stacking raw text; rerank and deduplicate retrieval results to cut useless fragments; enable semantic caching for frequent identical requests, but set consistency boundaries; use batch processing for offline evaluation, document pre-screening, and embedding-style preprocessing, while online paths prioritize tail latency. For scenarios where data must stay within a boundary, evaluate private or dedicated-cloud deployment—but include operations, upgrades, capacity utilization, and security hardening in the calculation, not just license or instance prices.
5. Compliance, Security, and Observability Are Launch Gates
Data boundaries deserve special attention when selecting Chinese models. Classify enterprise data first: public data, internal data, personal information, sensitive personal information, and heavily regulated data. Each level maps to different handling strategies: masking, minimal injection, local retrieval, sending summaries instead of raw text, prohibiting training retention, and enabling audit logs. Outbound output also requires considering content safety, copyright risk, factual disclaimers, and human review entry points.
Observability should cover four layers: the request layer records tenant, scenario, model version, prompt version, and latency; the quality layer records automated scores and human sampling; the security layer records injection detection, over-privilege tool calls, and inbound/outbound sensitive entities; the cost layer records tokens, cache hits, retries, and per-task cost. Beyond dashboards, what matters more is executable alerting: when refusal rates spike abnormally, citation hit rates drop, tail latency degrades, or per-success cost surges, the system can automatically shift traffic, roll back, or enter a human queue.
6. Reference Architecture: Make Models Replaceable Components
A robust architecture typically looks like: business service → model gateway → policy routing → multiple model backends → evaluation and log feedback loops. The gateway handles authentication, rate limiting, auditing, and prompt-injection defense; routing selects models by scenario, tenant, risk level, latency budget, and cost policy; the execution layer handles retries, timeouts, and degradation; the evaluation layer scores asynchronously and feeds failed samples back into the regression set.
Illustrative pseudocode, deliberately not bound to any specific SDK:
function answer(req):policy = load_policy(req.scene, req.risk_level, req.tenant)ctx = build_context(req, policy) # retrieval, masking, summarization, tool listcandidates = route(policy, ctx) # primary model / lightweight model / rule fallbackfor model in candidates:resp = call_with_timeout(model, ctx, policy.timeout_ms)if passes_format(resp) and passes_safety(resp):audit_log(req, ctx, resp, model.version)return maybe_stream(resp)return fallback_or_human_ticket(req)
The point isn’t the calling syntax—it’s that every call is traceable: who triggered it, which version was used, what context was read, why this model was chosen, and what compensation follows failure. Only then can you run fair A/B experiments: randomly bucket the same traffic into different backends and compare successful-task rate, user correction rate, session completion rate, and complaint rate—not just subjective preference.
7. Pre-Launch Checklist
Before going live, confirm each item: Is the task profile quantified? Does the private benchmark cover normal, boundary, and adversarial samples? Are prompts and decoding configurations pinned? Are there refusal, fallback, and human handoff paths? Are versions, usage, latency, and security events logged? Are rollback thresholds defined? Is data classified and masked? Have peak scaling and rate limiting been evaluated? Is there a weekly quality review and sample feedback mechanism? Is cost measured as “cost per successful task” rather than “number of calls”?
The final conclusion should be restrained: there is no scenario-independent “best Chinese model”—only combinations that fit better under specific constraints. For most teams, the optimal solution is often “one strong general-purpose model for complex tasks + one low-cost model for high-frequency traffic + retrieval and rules for determinism + an evaluation loop that continuously retires degraded versions.” When new Chinese models enter a unified inference catalog, there’s no need to chase every release. Keep the integration layer thin, the evaluation layer thick, and the data boundary hard—models will naturally become measurable, replaceable, and evolvable production assets.
