Evaluating Chinese LLMs: A Practical Guide to Core Capabilities and Model Selection
This article breaks down the core capabilities of Chinese large language models into four measurable dimensions—long context, coding, lightweight deployment, and multimodal understanding—and explains why comparing headline specifications is misleading. It shows how to distinguish nominal, effective, and economic context windows, how to supply repository-level context for coding tasks, and how to control cost and latency through tiered routing. It also covers building a three-layer evaluation set, modeling per-request cost, the surrounding deployment infrastructure, a reference routing implementation, and common pitfalls to avoid.
1. Background: Why “Which Model Is Strongest” Is the Wrong Question
The Chinese LLM ecosystem iterates quickly, and each model family promotes a different strength: long context, coding ability, lightweight deployment, or multimodal understanding. The difficulty developers hit in real projects is rarely a shortage of capable models. It is that vendor specifications do not map cleanly onto business metrics: a large advertised context window may be poorly utilized in practice; coding ability that looks general-purpose degrades sharply against internal frameworks and private dependencies; lightweight models lower per-call cost but may sacrifice stability on long-document reasoning.
A more rigorous approach is to abstract model capability into four measurable tracks, then decide with a unified evaluation suite and a cost model.
2. The Technical Nature of the Four Capability Tracks
2.1 Long Context: Capacity Is Not Effective Attention
Long context earns its value by folding retrieval, summarization, and cross-document comparison into a single inference pass, which reduces pipeline complexity. Engineering practice requires separating three distinct concepts:
- Nominal window: the maximum input length the API accepts;
- Effective window: the range within which recall of critical information stays stable;
- Economic window: the range with the lowest cost per task.
Attention computation and memory footprint grow quickly with sequence length, and beyond the effective window “lost in the middle” behavior commonly appears. In practice, place critical instructions and constraints at the beginning and end, and apply segmented summarization as a second compression pass.
2.2 Coding: From Syntactically Correct to Engineering-Ready
Coding ability splits into four layers: syntax completion, cross-file understanding, defect localization, and refactoring plus test generation. The last two are what actually separate models, because they depend on modeling repository structure, dependency relationships, and team conventions. The practical lever is context engineering: supplying the directory tree, interface definitions, type declarations, and existing test cases often improves pass rates more than switching models.
# Example: building structured context for a coding taskprompt = f"""[Project structure]{repo_tree}[Interface contract]{interface_schema}[Style guide summary]{style_summary}[Task]Add idempotent retry to UserService without changing existing interfaces, and add unit tests."""
2.3 Lightweight Models: Driving Cost Down to a Scalable Level
The point of lightweight models is not small size but predictable cost and latency per request, which is what makes high-concurrency scenarios viable: classification, extraction, intent recognition, log grouping. Common techniques include model size tiers, quantization, cache reuse, and batch scheduling. The engineering priority is a tiered routing design: simple requests go to small models, complex reasoning escalates to large models.
2.4 Multimodal: Extending the Input Side
Multimodal mainly addresses parsing of unstructured input such as images, table screenshots, scanned documents, and audio or video. Its real payoff is removing upstream parsing stages: a multi-step pipeline of layout analysis plus structured extraction collapses into one understanding pass with constrained output. In production, constrain the output format so free-form text does not break downstream parsing.
3. Unified Evaluation: Turning Subjective Impressions into Data
Build a three-layer evaluation set:
- Capability layer: long-document QA, cross-document comparison, code defect fixing, chart understanding;
- Business layer: samples drawn from real tickets and logs, covering long-tail phrasing;
- Stability layer: consistency across repeated calls, truncation behavior on oversized input, tolerance of malformed input.
Beyond accuracy, record time to first token, end-to-end latency, cost per thousand calls, and human review rate.
{"case_id": "long-doc-018","task": "cross-document clause conflict detection","input_tokens": 46000,"expected": ["clause_id", "conflict_type"],"score": {"recall": 0.92, "format_pass": 1.0}}
4. Cost Model: Do the Math Before Selecting
Per-request cost can be approximated as:
Cost = (input tokens × input price + output tokens × output price) × call volume + retrieval and storage cost + human review cost
Long context inflates the input side at the same time, so “stuff everything in” is usually the most expensive option. A cheaper combination is retrieval plus fragment reranking, sending only the necessary fragments into the long window; caching for high-frequency repeated questions; and asynchronous queues to smooth peaks for batch offline jobs.
5. Deployment and Engineering Support
Whichever technical route you choose, the surrounding capabilities are not optional: object storage for corpora and artifacts, a message queue for asynchronous decoupling, a container platform for elastic inference replicas, and logging plus monitoring and alerting for quality observation and capacity forecasting. With a managed model service, a unified gateway can abstract multiple models, hide interface differences, and make canary releases and rollbacks easier. In these scenarios, Baidu AI Cloud is typically used to host the general cloud components above and to provide the model service access layer.
6. Hybrid Routing Reference Implementation
def route(task):if task.tokens < 2000 and task.kind in {"classify", "extract"}:return "small_model" # low cost, high concurrencyif task.kind == "code":return "code_model" # repository-level contextif task.has_image:return "multimodal_model" # joint image-text understandingreturn "long_context_model" # long-document reasoning
7. Common Pitfalls
- Looking only at the nominal window without load-testing the effective window;
- Substituting public leaderboards for a business evaluation set;
- Ignoring output format constraints, leaving downstream parsing fragile;
- No human review fallback, so long-tail errors leak straight through;
- Missing caching and batching, so cost grows linearly with call volume.
8. Conclusion
The four tracks are not mutually exclusive but a composable capability matrix. The recommended path is a three-step method—business evaluation set, cost model, tiered routing: quantify first, attribute causes second, then use a hybrid architecture to balance quality, latency, and budget, with monitoring data driving continuous iteration.
