Evaluating and Selecting Chinese LLMs for Coding: A Practical Guide
This article examines why developer sentiment toward Chinese large language models shifts quickly after each release, and argues that coding capability must be assessed across four independent dimensions: attention stability under long context, instruction following and generalization from post-training, performance on unseen complex tasks, and actual resource consumption for equivalent work. It provides practical metrics such as constraint retention rate, first-pass rate, human intervention count, and a per-task cost formula, along with a five-step evaluation workflow and common pitfalls to avoid.
1. Behind the Hype: How One Benchmark Flipped Public Opinion
A notable pattern appears around the release of each new generation of Chinese large language models: the tone of developer discussion swings noticeably. Before release, the conversation centers on “the core capabilities are already usable.” After release, it pivots almost immediately to “the engineering details are still lacking.” This shift is not driven by emotion; it reflects an upgrade in how developers evaluate models. Once a model clears the “it runs” threshold, the focus moves from “can it do this” to “is it stable, is it affordable, and does it need constant human rescue.”
For that reason, judging a generation of coding models requires more than an aggregate score. Four independent dimensions matter: attention stability under long context, instruction following and generalization gained from post-training, performance on complex scenarios that were never disclosed, and the actual cost of completing the same task. Each is covered below.
2. Dimension 1: Attention Decay in Long Context Is the Real Usability Bottleneck
The previous generation was the first domestic option to become genuinely competitive at the “basically usable for coding” line. However, beyond roughly 100,000 tokens of context, attention quality degraded quickly, showing up as forgotten early constraints, completed changes being reverted and redone, and lost cross-file reference relationships. These issues are nearly invisible in short samples but are amplified many times over in real repository-level tasks, causing usability to drop sharply.
To assess this in engineering terms, quantify it with a constraint retention rate: inject several hard constraints in the middle of a long context (naming conventions, a ban on introducing a certain class of dependency, interface signatures that must be preserved), then check whether the model still honors them in the later stages of the task.
constraint retention rate = hard constraints still honored in the final task stages / total hard constraints injected
Empirical thresholds: below 0.8, long tasks essentially require human takeover; above 0.95, the model is suitable for unattended automation pipelines.
3. Dimension 2: Post-Training and Scenario Coverage Determine the “Right the First Time” Rate
The highest rating in an evaluation does not mean “the code compiles.” It means three requirements are met simultaneously: almost no logic errors, the intent behind the requirement is understood correctly on the first attempt, and the model can reason through and finish a project without deep user intervention. These three capabilities come primarily from high-quality task data and broad scenario coverage during post-training, not from parameter count alone.
To judge whether a model reaches that tier, evaluate first-pass rate and human intervention count together:
def evaluate(pass_at_first_try, human_interventions, hidden_cases_passed):score = 0.5 * pass_at_first_try - 0.3 * human_interventions \+ 0.2 * hidden_cases_passedreturn score # higher means closer to a "managed" state
Among these, the hidden case pass rate best reflects generalization, because it rules out the memorization effect on publicly known problem sets.
4. Dimension 3: Public Leaderboards vs. Hidden Problems Carry Different Information Value
Public problems may have been trained on and tuned against repeatedly, so a high score does not fully equal strong capability. More informative are first-time, higher-complexity unpublished engineering problems: the model has not seen them before, cannot win through memorization, and the results sit closer to the real distribution.
A healthy evaluation setup should keep a mixed structure of “public + hidden” problems and rotate the hidden set periodically. If a model only barely passes the hidden problems and repeatedly revises one or two high-difficulty steps two or three times, capability has crossed the line but stability still needs polishing. If it cannot complete the project at all, a substantial gap to the usability line remains.
5. Dimension 4: Inference Consumption at Comparable Capability Is the Real Cost Driver
When capabilities are close, cost differences often decide whether something can ship. Compare two solutions with similar scores: one produces about 560 tool calls and roughly 260,000 output tokens; the other has a comparable number of tool calls but only about 170,000 output tokens. The gap usually comes from less ineffective exploration, fewer repeated reads and writes, and more concise explanatory output.
Note that such comparisons often involve a tier mismatch (one side running at the highest inference tier, the other at a higher tier), so the conclusion should be stated as a “relative advantage within a comparable capability range,” not an absolute one. For actual selection, convert cost into comparable metrics:
cost per task ≈ tool calls × cost per call + output tokens × output unit price + human intervention hours
6. A Practical Evaluation and Selection Method
- Build your own task set: pull 5–10 medium-complexity tasks from real repositories, covering different ecosystems such as frontend, backend, systems languages, and scripting tools.
- Force long context: inject all files a task needs in full, verifying attention stability rather than fragment-level ability.
- Record process metrics: tool call count, output volume, number of repeated revision rounds, and human intervention points.
- Compare two tiers: run at both the highest and a higher tier, and observe the inflection point of the capability–cost curve.
- State conclusions with room to spare: distinguish “verified facts” from “observations under a specific configuration.”
7. Common Pitfalls
- Looking only at the total score, not the process: a high score may come from a large volume of ineffective calls.
- Substituting public problems for real tasks: this tends to overestimate generalization.
- Ignoring tier differences: comparisons across different inference tiers must be explicitly labeled.
- Treating “can complete” as “can be managed”: unattended operation demands stability and low intervention, not one-off success.
8. Conclusion
The significance of this generation of Chinese models is that it moves coding capability from “usable in a demo” to the doorstep of “usable in engineering,” closes the long-context gap, demonstrates generalization in hidden scenarios, and pushes consumption to a lower level. For developers, the more pragmatic approach is to build your own evaluation baseline and make decisions with process metrics rather than a single score. On the cloud platform side, general capabilities such as container platforms, log services, monitoring and alerting, and object storage can be combined to link model invocation, process traceability, and cost observability into a closed loop, so evaluation results genuinely serve continuous iteration in production.
