Real-World Code Generation Test of an Open-Source Chinese LLM: Lessons from a Frontend Project

    A real frontend project reveals where an open-source Chinese large language model already delivers practical value—and where it still falls behind leading proprietary models. The evaluation covers project completeness, requirement understanding, UI quality, and generation speed, with particular focus on filtering logic and complex form validation.

    1. Why Run a Real Project-Level Evaluation?

    Over the past two years, new large language models have been released at an increasingly rapid pace. Every launch is often accompanied by claims that a model is “revolutionary,” “better than the competition,” or comparable to the strongest models available internationally. Developers, however, understand a basic reality: benchmark scores and marketing claims can differ significantly from performance in real engineering scenarios.

    Benchmark and competition problems mainly show a model’s upper bound on structured tasks. Real-world project requirements are different. They often contain ambiguity, implicit constraints, and dependencies across multiple modules. These requirements test a model’s depth of understanding, ability to reconstruct the intended behavior, and engineering completeness.

    For this evaluation, I used a real frontend project that was already under development. I provided the complete requirements document to a newly released open-source Chinese LLM and asked it to generate a runnable application end to end. The process and results are documented here for reference.

    The test design was straightforward:

    • Input: A requirements document covering a login page, a product list page, and a form page, including interaction logic, filtering options, and field-validation rules.
    • Output requirement: A complete, directly accessible project. No specific technology stack was required.
    • Evaluation criteria: Feature completeness, requirement-understanding accuracy, UI quality, and generation speed.

    2. Overall Experience: Usable, but Weak on Details

    The overall conclusion is clear: the model reached a usable engineering baseline, but its understanding of detailed requirements was limited, and its generation speed was relatively slow.

    Stability and Speed

    At the beginning of the test, the service displayed a queue message, and the generation process only started after a retry. From submitting the requirements to completing the project, the process took more than 30 minutes. This is significantly slower than the few-minute generation time offered by some leading proprietary models.

    The queue and rate limits may have been related to free-tier usage, so the delay cannot be attributed entirely to the model itself. Nevertheless, for developers who need to iterate quickly, the waiting time represents a real cost.

    The positive aspect was that the output was not a collection of disconnected code snippets. It was a complete project with an accessible address that could be opened directly. From an engineering perspective, this is important because it closes the final gap between generated code and a runnable application.

    Login Page: Relatively High Completion

    The login page is a typical CRUD-style scenario. The requirements document also included common components such as a carousel. The model reproduced the page reasonably well: the structure was complete, the main functionality was present, and the result was close to something that could be deployed after further refinement.

    This suggests that for mature page patterns with clear semantics, current code-generation capabilities are already reasonably reliable.

    List Page: Filtering Options Were Missing

    Problems became more apparent on the list page. The requirements document explicitly described filtering conditions and interaction logic, but all filtering options were missing from the generated result. This was not an isolated issue on a single page; it appeared across multiple list pages.

    This behavior is particularly revealing. Filtering requires the model to understand the mapping between data fields, filter conditions, UI controls, and state interactions. That is a form of reasoning across multiple related entities.

    The basic page structure is a familiar pattern that a model can reproduce from existing examples. However, the field-level logic hidden in the requirements document requires the model to truly understand the specification before implementing it. The missing filters therefore expose a weakness in requirement understanding rather than in basic code generation.

    Form Page: Incomplete Reconstruction of Validation Logic

    The form page showed a similar pattern. The page could run overall, but the field types, validation rules, and relationships between fields differed noticeably from the requirements.

    Complex forms are among the most detail-sensitive parts of frontend development. Whether a field is required or optional, and whether validation occurs on blur or on submission, directly affects functional correctness. The model clearly struggled with reconstructing fine-grained constraints of this kind.

    UI Style: Practical Engineering, Limited Design Polish

    The overall visual style was conventional and functional. It was better than many rough prototypes, but still fell short of the polish commonly seen in mature component-library templates.

    The result prioritized engineering usability over visual refinement. That is sufficient for prototype validation, but a user-facing product would still require manual design and UI improvements.

    3. Comparison with a Leading Proprietary Model

    I had previously implemented the same project requirements using a leading proprietary model. The comparison was as follows:

    Dimension Open-Source Chinese Model Leading Proprietary Model
    Overall completeness Comparable Comparable
    List-page filtering logic Missing Correctly understood and implemented
    Complex form reconstruction Noticeable deviations Accurate field relationships, validation, and interaction details
    Generation speed More than 30 minutes Approximately 3 minutes

    The two models were already fairly close in their ability to produce working pages. The main differences appeared in requirement-understanding precision and response speed.

    This is the direction in which open-source Chinese models still need to improve. The goal is not simply to generate more code, but to understand requirements more accurately.

    4. Reflections on Open Source and the Future of AI

    1. The Core Value of Open Source Is Control and Verifiability

    Open-source models can be deployed in private environments, helping organizations meet data-security and compliance requirements. They also allow the community to independently verify model capabilities instead of relying solely on vendor claims.

    This is particularly important in data-sensitive industries such as finance and government services.

    2. “Benchmarking Against” Other Models Requires a Realistic View

    Similar parameter sizes and benchmark scores do not necessarily indicate similar performance in engineering scenarios.

    The most reliable way to evaluate a model is to run it against your own real business requirements.

    3. The Ecosystem Matters More Than Isolated Model Capability

    For open-source models to close the gap meaningfully, the model itself is only one part of the solution. Supporting toolchains, inference optimization, and cloud services are also important.

    With cloud-based container services, GPU computing resources, and monitoring and alerting systems, organizations can deploy, stress-test, and gradually validate open-source models at a relatively low cost. This creates a complete implementation path that combines open-source models with cloud infrastructure.

    5. Conclusion

    The most important lesson from this evaluation is that open-source Chinese LLMs have already reached a useful engineering baseline for general code generation. They are particularly suitable for building prototypes and developing standard pages.

    However, they still lag behind leading international models in complex requirement understanding and detailed reconstruction. Generation speed is another weakness.

    The transparency and controllability provided by open source remain its long-term advantages. For developers, maintaining a rational approach—testing models with real scenarios and selecting them according to actual requirements—is more valuable than following the hype surrounding any individual release.