Evaluating the Coding Ability of Chinese LLMs: An Engineering Approach

    This article explains why short benchmark runs fail to measure real coding ability and proposes an engineering evaluation framework based on long-term trials in your own repositories, a layered capability matrix, and explicit handling of model weaknesses. It covers post-training and reinforcement learning for verifiable tasks, front-end versus back-end division of labor, guardrails for long autonomous tasks, and the practical value of open weights, ending with selection recommendations for building a reproducible evaluation process.

    1. Why Running a Few Benchmark Tasks Is Not Enough

    Chinese large models have iterated quickly over the past year, and discussions about their coding ability have heated up just as fast. Yet many teams still select models the old way: run a few algorithm problems, check a public leaderboard, and draw a conclusion. The problem is that coding in real engineering is a long chain, not a single question-and-answer point.

    Real delivery usually includes requirement clarification, interface design, directory and dependency planning, coding, unit testing, debugging, log inspection, deployment, and rollback. A single-point evaluation covers only a small part of that chain, and often the part most likely to be covered by training data. A more reliable approach is to observe continuously for a week or more, inside your own code repositories, on your own framework versions, and under your own conventions, recording the first-pass rate, the number of rework rounds, and the number of human takeover points.

    An example of a practical record structure:

    1. Task ID | Task type | Framework version | First pass | Human takeover points | Rework rounds | Notes
    2. T001 | Backend API | Common framework | Yes | 0 | 0 | Includes unit tests
    3. T002 | Frontend UI | Common framework | No | 3 | 2 | Needs visual comparison

    This kind of data reflects how well a model matches a team’s engineering environment far better than any leaderboard.

    2. Breaking Coding Ability into Evaluable Layers

    Evaluation is easily distorted because abilities of different natures are merged into a single score. It is better to split them into at least four layers:

    1. Syntactic and semantic correctness: whether the model can generate code that compiles, runs, and follows the conventions of the language.
    2. Engineering convention consistency: whether naming, layering, error handling, logging, and configuration management follow existing conventions.
    3. Environment familiarity: how well the model handles mainstream frameworks, build tools, and command-line workflows.
    4. Autonomous execution: whether the model can self-check and self-correct across multi-step tasks until the goal is met.

    The differences between most models are not in the first layer but in the third and fourth. A model that is fluent with a common tech stack may degrade noticeably when it meets a relatively niche framework, an obscure parameter, or a non-standard directory structure. This is not a matter of “intelligence” but of training distribution and tool coverage.

    3. Post-Training and Reinforcement Pipelines: Where Stability Comes From

    The recent leap in coding ability among Chinese models comes not primarily from parameter scale but from the maturity of post-training methods, especially reinforcement pipelines aimed at verifiable tasks. Coding naturally provides verifiable signals: whether code compiles, whether tests pass, whether static checks report errors. This objective feedback lets reinforcement training continuously amplify correct behavior and suppress plausible-looking pseudo-answers.

    Three external signs show whether a team has truly mastered this pipeline:

    • Stability: repeated runs of similar tasks produce low output variance and require no repeated retries.
    • No breakdown on long tasks: overall consistency is preserved after multi-file changes, with no contradictions.
    • Self-repair: when tests fail, the model locates the specific assertion instead of blindly rewriting.

    It is worth emphasizing that once the methodology works, further improvement is predictable, because the bottleneck shifts from “not knowing how” to “how much compute and data to invest.”

    4. Uneven Skills: Capability Boundaries Must Be Managed Explicitly

    Uneven skills are a common trait of current coding models. Rather than avoiding this in engineering, design workarounds.

    Common weaknesses include: missing multimodal understanding, which makes UI reproduction difficult; limited ability to automate graphical interfaces; insufficient retrieval and external knowledge updates; and almost no priors for niche command-line tools and second-tier frameworks.

    The corresponding engineering strategy is “externalizing capabilities”:

    1. Model handles: task decomposition, code generation, explaining failure causes
    2. External capabilities handle: visual comparison, environment probing, dependency lookup, convention validation

    For example, hand UI acceptance to an independent screenshot comparison and pixel-difference process, and hand environment probing to a script that collects dependency versions and directory structure, then feed the results back to the model as context. This turns “the model cannot do it” into “the process can.”

    5. Front-End and Back-End Division of Labor: Let the Model Do What It Is Good At

    A repeatedly validated practice is to treat back-end and front-end work differently. Back-end tasks have clear boundaries and strong verifiable signals, making them suitable for a higher degree of automation; front-end work involves visual aesthetics, interaction details, and multimodal feedback, making it better suited to human-machine collaboration.

    Recommended responsibility split:

    Stage Suggested owner Reason
    Interfaces and data models Mainly the model Clear structure, testable
    Unit test generation Mainly the model Clear feedback
    Complex refactoring Human-machine collaboration Requires global consistency judgment
    Visual reproduction and tuning Mainly human Depends on multimodality and aesthetics
    Deployment and rollback Mainly the process Emphasizes repeatability and auditability

    For cloud deployment, combine general-purpose capabilities such as container platforms, object storage, log services, and monitoring and alerting, and bring model output into a standardized pipeline instead of letting the model operate the production environment directly.

    6. Long-Task Autonomous Execution: From Generation to Delivery

    What really separates models is long-task autonomy. A mature execution loop typically includes requirement clarification, solution design, material preparation, coding, testing, UI self-check, iterative correction, and deployment. The whole process may last hours, and the key is not losing the goal along the way.

    Engineering needs three guardrails:

    1. Goal anchoring: write acceptance criteria as executable assertions, so any failed step returns to the assertion instead of rewriting everything.
    2. Stage snapshots: produce rollback-able intermediate states at each stage to avoid error accumulation.
    3. Least privilege: high-risk operations require human confirmation, and all actions are logged and auditable.
    1. while not passed(acceptance):
    2. patch = model.propose(failure_context)
    3. result = run_tests(patch)
    4. if result.failed and rounds > N:
    5. escalate_to_human(result)

    7. The Practical Value of Open Weights

    For engineering teams, open weights mainly mean self-hosting, distillation, and private fine-tuning. In scenarios with strict data compliance requirements, the model can be deployed in your own environment; at the same time, small-scale distillation on real business data can condense the capabilities of a large model into lower-cost inference units. Compared with receiving only a small number of sample outputs, open weights provide a completely different order of magnitude of training signal.

    8. Conclusion and Selection Recommendations

    When evaluating coding models, stick to three principles: replace quick leaderboard tests with long-cycle trials on real repositories; replace a single score with a layered capability matrix; and fill model weaknesses with processes and tools. If an enterprise wants to build a unified LLM engineering platform on Baidu AI Cloud, it can combine general-purpose capability categories to achieve integration of model access, evaluation management, pipeline orchestration, and runtime monitoring, so that selection conclusions rest on reproducible data rather than subjective impressions.