What Open-Source LLMs Really Offer: A Practical Framework for Evaluating Chinese Open-Source Models Against Global Leaders
This article presents a reproducible framework for evaluating whether open-source large language models can turn a requirements document into a maintainable frontend codebase. Using a spec covering login, list, and form pages, it scores outputs across requirement comprehension, engineering completeness, delivery format, and response efficiency, then explains why "close to the frontier" often fails in real projects. It closes with a reusable scoring rubric, practical prompting recommendations, and the ecosystem value of open, privately deployable models.
1. Background: Observations from a Real Project
A recent release of a Chinese open-source large model performed strongly in public evaluations, and community discussion quickly picked up the claim that its capabilities are “approaching the international first tier.” Conclusions like this usually come from single demos or leaderboard scores. What developers actually care about is different: in a real engineering workflow, can the model reliably turn a requirements document into a deliverable that runs, stays maintainable, and can be extended?
To avoid being pulled off course by emotional assessments, I used a reproducible method. I prepared a frontend requirements document covering three page types—login, list, and form—handed it to the model for end-to-end generation, and then ran a structured evaluation across four dimensions. To be clear, this article does not recommend or compare any specific product. Instead, it abstracts the exercise into a general evaluation framework that teams can reuse for tool selection and internal adoption.
2. Evaluation Framework: Four Dimensions That Decide Whether It Is Usable
2.1 Depth of Requirement Comprehension
This is where model capability really separates. Surface structure—number of pages, routes, component hierarchy—is easy to reproduce. The hard part is implicit constraints: how filter conditions interact, dependencies between fields, when validation fires, and how empty and error states are handled. When comprehension depth is insufficient, the model “looks done,” but the interaction logic is missing.
2.2 Engineering Completeness
This covers directory organization, state management, API abstraction, error boundaries, accessibility, and consistency of the styling system. Engineering completeness determines whether the output is a demo or a codebase that can evolve.
2.3 Delivery Format
Whether the model can provide an accessible preview URL, whether build and run instructions are included, and whether it generates reusable components instead of one-off snippets all directly affect integration cost.
2.4 Response Efficiency
End-to-end latency is shaped by queueing policy, concurrency limits, free-tier quotas, and model size. Efficiency is not the only metric, but in iterative development, waiting time noticeably changes the workflow experience.
3. Practical Observations: Typical Behavior Across the Three Page Types
Login Page: Close to Expectations
Requirements such as carousels, form validation, and remembered login state were basically covered—the kind of output you can tweak and ship. These pages have standard structures and mature patterns, so most models handle them well.
List Page: Comprehension Starts to Diverge
The page skeleton was correct, but functional requirements—filter conditions, sorting, and pagination interactions—were missing. The problem was not occasional but systematic: the model tends to build the visual structure first and add logic afterward, and the logic is the part most likely to be simplified.
Form Page: Complex Constraints Not Fully Reproduced
Field dependencies, conditional required fields, asynchronous validation, and state transitions after submission are the core difficulties of a form page. In practice, fields were often “flattened” into static inputs, validation rules were dropped, and interaction details did not match the document.
Style and Efficiency
The UI style leaned engineering-oriented: neat but lacking design polish. End-to-end latency was clearly longer than frontier-level solutions. Part of the speed gap comes from service policy, but it is also a reminder that in real projects, efficiency and stability are part of capability.
4. Root-Cause Analysis: Why “Close” Does Not Mean “Usable”
- Training objective biased toward “it runs”: the model prioritizes getting code to execute and tends to skip complex branches.
- Attention decay over long documents: the longer the requirements, the more easily detailed constraints get averaged out.
- No execution feedback loop: without immediate feedback from compilation, testing, and preview, the model struggles to self-correct.
- Context organization: stuffing the entire document in at once is less effective than layered, structured input.
5. A Reusable Evaluation Method
Teams should build a small benchmark set that covers the three page types and several typical interactions, with a fixed scoring sheet:
Dimension Weight Scoring focusRequirement comprehension 40% Filter interactions / field dependencies / validation timingEngineering completeness 25% Directory / state / error boundaries / accessibilityDelivery format 20% Preview / build instructions / component reuseResponse efficiency 15% End-to-end latency / stability
Rerun it after every model or prompt-strategy change, record pass rates and manual rework time, and build a comparable trend curve instead of drawing conclusions from a single experience.
6. Practical Recommendations for Better Generation Quality
- Layer the document: split “global constraints,” “page structure,” and “interaction details” into three sections and confirm each one.
- Enumerate explicitly: list filter conditions, field inventories, and validation rules in tables to reduce ambiguity.
- Generate in steps: produce the skeleton and routes first, then add logic, then unify the style.
- Introduce feedback: in environments that support tool calls, let the model run builds and self-tests to close the loop.
- Agree on engineering conventions: declare the directory structure, state management approach, and styling system up front to keep output consistent.
An example of how to write a requirements fragment:
## List Page Constraints- Filters: category (single select), price range (range), publish date (date)- Interaction: changing the category resets the price range- Empty state: show a placeholder and a "Clear filters" entry when there is no data
7. Open Source and Ecosystem Value
The value of open-source models does not lie in a single “matching” score. It lies in private deployment, fine-tuning, auditability, and embedding into your own toolchain. As Chinese open-source models keep closing the gap with the international frontier on general capability, enterprises gain lower migration costs and stronger control over their data, while developers can run evaluations, fine-tuning, and integration locally—turning the model into part of the engineering infrastructure. Viewing the gap rationally and building your own evaluation and engineering standards is the right path to turn “close” into “usable.”
