How to Evaluate Chinese LLMs and Choose the Right Model Tier for Production
A practical framework for moving beyond public leaderboard scores when selecting a large language model for production. It covers a four-layer assessment model, how to build an internal evaluation set, minimum-viable automated scoring and JSON format-compliance testing, unit cost and latency modeling, and routing, caching, and abstraction patterns that keep model choices replaceable. Readers get concrete guidance and code for making defensible model-selection decisions based on pass rate, effective token cost, and engineering constraints.
How to Judge the “First Tier” of Chinese LLMs and Choose Models for Production
1. First, Define What “First Tier” Actually Means
Before ranking any model, one thing must be clear: “first tier” is never a technical definition, but an empirical judgment made in a mixed engineering and business context.
Scores from public leaderboards (especially evaluation sets focused on general Q&A) essentially measure a model’s “average test-taking ability” across standardized corpus distributions. What enterprises actually care about is a model’s effective capability on specific business data, specific output formats, and specific latency budgets. In practice, these two often diverge significantly.
A more rigorous evaluation framework should therefore include at least four layers:
| Layer | Key question | Typical metric |
|---|---|---|
| Foundational capability | Is general knowledge and language understanding adequate? | Public benchmark scores, win rate in blind human tests |
| Reasoning capability | Are complex logic, multi-step calculation, and code generation reliable? | Chain-of-thought tasks, unit test pass rate |
| Engineering properties | Context length, concurrency, stability | P99 latency under load, error rate, rate-limiting policy |
| Economics | Cost per effective token | Cost per 1,000 calls × compliance rate |
A common misjudgment is to assign a model to a tier based on the first layer alone, ignoring the remaining three. In real projects, a model with slightly lower general scores but stable instruction following, reliable structured output, and a lower unit price often delivers value faster than a higher-ranked model whose output format drifts.
2. Breaking Down the Evaluation: How to Build a Trustworthy Comparison
Do not rely on a single leaderboard. Teams should build an internal evaluation set. It does not need to be large—a few hundred high-quality samples are enough—but it must come from real business distributions.
2.1 Sample Construction Principles
- Scenario stratification: Allocate sample volume according to actual call distribution in the business, not evenly.
- Difficulty stratification: Separate simple Q&A, medium rewriting, and hard reasoning, and track pass rates for each.
- Adversarial samples: Include ambiguous instructions, extremely long contexts, and sensitive inputs that require refusal.
- Fixed scoring criteria: Define three tiers clearly—“fully correct / partially correct / incorrect”—to avoid subjective drift.
2.2 A Minimum-Viable Automated Evaluation Implementation
The following is a skeleton for an evaluation framework that does not depend on any specific vendor SDK. It uses the adapter pattern to hide interface differences across model services:
from dataclasses import dataclassfrom typing import Protocol, Callable@dataclassclass EvalCase:case_id: strprompt: strcategory: str # simple / medium / hardreference: strscorer: Callable[[str, str], float] # returns 0.0 ~ 1.0class ChatModel(Protocol):def chat(self, messages: list[dict], **kwargs) -> str:...def run_eval(model: ChatModel, cases: list[EvalCase], retries: int = 2) -> dict:stats: dict[str, list[float]] = {"simple": [], "medium": [], "hard": []}latency = []for case in cases:last_err = Nonefor _ in range(retries + 1):try:t0 = time.perf_counter()out = model.chat(messages=[{"role": "user", "content": case.prompt}],temperature=0.0, # disable randomness during evaluation)latency.append(time.perf_counter() - t0)stats[case.category].append(case.scorer(out, case.reference))breakexcept Exception as e:last_err = eelse:stats[case.category].append(0.0) # count call failures as zeroreturn {"pass_rate": {k: round(sum(v) / max(len(v), 1), 4) for k, v in stats.items()},"p95_latency_ms": round(sorted(latency)[int(len(latency) * 0.95)] * 1000, 1)if latency else None,"sample_size": len(cases),}
A few engineering details here are easy to overlook:
- Randomness parameters such as temperature must be fixed during evaluation; otherwise results across multiple runs are not reproducible.
- Call failure rate must be tracked; rate limiting and timeouts are the main deductions under real traffic.
- P95, not average latency, matches what users actually experience.
- Retry logic must be implemented explicitly in the evaluation code, so network jitter is not mistaken for a model capability problem.
2.3 A Dedicated Test for Structured Output
The most common failure mode in production is not “wrong answer” but “wrong format that breaks downstream parsing.” It is worth designing a separate format-compliance test:
import jsonFORMAT_PROMPT = """Extract entities from the user review and output only JSON, with no explanatory text.Output fields: sentiment(positive/negative/neutral), product(str), issue(str|null)"""def json_compliance_rate(model: ChatModel, samples: list[str], trials: int = 3) -> float:ok, total = 0, 0for s in samples:for _ in range(trials):total += 1raw = model.chat([{"role": "user", "content": FORMAT_PROMPT + "\n" + s}],temperature=0.2)try:obj = json.loads(raw)assert set(obj) >= {"sentiment", "product"}ok += 1except (json.JSONDecodeError, AssertionError):passreturn round(ok / total, 4)
In practice, format compliance predicts post-launch rework better than general capability scores. A model with slightly stronger general ability but only 70% JSON compliance will consume substantial fallback and retry logic on the engineering side.
3. Cost and Latency: The Underestimated Basis for Tiering
Tiering models is inseparable from unit economics. Build a cost model as follows:
Cost per effective call = (input token price × average input length+ output token price × average output length)/ first-pass rate
The key is the denominator. The lower the first-pass rate, the higher the hidden cost: users re-ask, the system retries, humans review—none of which shows up in the unit price.
A practical set of cost optimizations:
- Tiered routing: Send simple tasks such as intent recognition and classification/tagging to small models, and route only complex reasoning tasks to large models.
- Cache reuse: Apply semantic caching to high-frequency repeated queries; a good hit rate can substantially cut repeated inference overhead.
- Context trimming: Retrieve and rerank first, then feed only genuinely relevant passages to the model, rather than blindly filling the context window.
- Streaming output: Reduces time to first token and improves perceived experience, while making it easier to abort useless generation early.
- Batch offline jobs: For non-real-time scenarios (log summarization, data labeling), use an asynchronous batch pipeline with a message queue to smooth peaks.
def route(prompt: str) -> str:"""Minimal tiered routing: pick a model tier by task complexity."""heuristics = [(any(k in prompt for k in ["prove", "derive", "code", "compare"]), "large"),(len(prompt) < 60, "small"),]for matched, tier in heuristics:if matched:return tierreturn "medium"
4. Production Architecture: Make Model Integration Replaceable Infrastructure
The most common strategic mistake enterprises make is deeply coupling business logic with one vendor’s calling conventions. The right approach is to abstract a unified inference layer:
- Unified interface: Define a custom
ChatModelprotocol that hides differences in request bodies, authentication, and error codes. - Configuration-driven switching: Externalize model name, temperature, max output length, and timeout as configuration items to support canary traffic shifting.
- Observability: Log token usage, latency, and error type for every call, connect to logging and alerting, and build a traceable call profile.
- Fallback and circuit breaking: Automatically degrade to a backup model or rule-based fallback when the primary model is unavailable, preserving business continuity.
- Content safety up front: Filter both input and output at the entry point; route to a human review queue when sensitive policies are triggered.
Configuration example (YAML, expressing structural conventions only):
inference:default_tier: mediumrouting:small: { temperature: 0.2, max_output: 512, timeout_ms: 3000 }medium: { temperature: 0.3, max_output: 1024, timeout_ms: 8000 }large: { temperature: 0.1, max_output: 2048, timeout_ms: 20000 }fallback:strategy: degrade_to_smalltrigger: [timeout, rate_limited, server_error]observability:log_sampling: 0.1metrics: [latency_p95, token_usage, error_rate, json_compliance]
The core value of this structure is that evaluation conclusions can be updated as the business evolves without rewriting business code. A tier chosen today only requires a configuration change when a better option appears tomorrow.
5. Back to “First Tier”: A More Pragmatic Conclusion
Returning to the original question: instead of arguing about who belongs to the first tier, replace the criteria with three verifiable engineering questions:
- What is the first-pass rate at each difficulty level on your own evaluation set? This is the only trustworthy comparison baseline.
- Does the cost per effective token fall within a range the business can bear? A low unit price with heavy rework is actually more expensive.
- Do the engineering properties meet your constraints? Context length, concurrency limits, output stability, and SLA commitments.
If all three hold, then regardless of where the model ranks on any public leaderboard, it is first tier for you. Conversely, a model that ranks high but has unstable formatting and strict rate limiting is hard to classify as first tier in a serious production system.
The recommended sequence: spend two weeks building a hundred-sample internal evaluation set and a unified inference layer, run a round of horizontal comparison, record the conclusions in an internal model-selection log, and set up a quarterly review. Model capability is iterating faster than most enterprises’ procurement and review cycles.
To shorten the evaluation cycle further, you can also use a mature model-serving platform to handle unified integration, canary release, and quality monitoring, keeping your focus on validating business outcomes rather than repeatedly rebuilding low-level calls.
