How to Evaluate the Gap Between Chinese Open-Source LLMs and Closed-Source Models
This article explains how to evaluate the practical gap between Chinese open-source LLMs and closed-source models through an engineering closed loop rather than public rankings or one-off demos. Using programmatic video generation from product materials as an example, it shows how to test semantic understanding, instruction following, code generation, tool use, error recovery, rendering consistency, long-task stability, cost, safety, and maintainability. It also compares the strengths of open-source and closed-source models and recommends building a task-based evaluation set for selection.
As parameter scales continue to increase, competition among large models has shifted from comparing parameter counts to comparing task completion ability. This is especially true as open-source models enter the trillion-parameter era. Developers are less concerned with whether a model has enough parameters and more concerned with whether it can reliably complete complex tasks in real business scenarios: understanding long documents, generating runnable code, calling tools, recovering after repeated failures, and balancing cost, security, and maintainability.
Therefore, evaluating the gap between Chinese open-source LLMs and closed-source models should not rely only on public leaderboards or a single demo. It should be based on a set of engineering-oriented evaluation methods. This article uses “from product documentation to programmatic video generation” as an example to show how real tasks can be used to assess model capabilities. It also analyzes the differences between open-source and closed-source models in capability, cost, ecosystem, and controllability.
1. Parameter Scale Does Not Equal Engineering Readiness
Parameter scale represents model capacity, but it does not directly translate into business results. Whether an engineering team can actually adopt a model usually depends on several factors:
- Semantic understanding: Can the model accurately extract product selling points, copy structure, target audience, and key messaging?
- Instruction following: Can the model strictly follow constraints such as resolution, duration, style, output directory, and file format?
- Code generation: Can the model produce maintainable, debuggable, and extensible frontend scripts or automation scripts?
- Tool calling: Can the model complete a sequence of actions such as reading materials, installing dependencies, executing rendering, exporting files, and checking results?
- Error recovery: When dependencies are missing, paths are incorrect, or rendering fails, can the model identify the issue and provide a repair plan?
- Safety awareness: Can the model request necessary confirmation before deleting files, performing bulk cleanup, or executing high-risk commands?
If a model performs well in a short demo but frequently forgets constraints, repeats failures, or cannot perform self-checks during multi-step tasks, its engineering readiness remains limited. On the other hand, an open-source model may still replace a closed-source model in specific scenarios if it has stable context retention, clear code structure, and repeatable execution, even if its parameter scale is not the largest.
2. Use Real Tasks Instead of a Single Benchmark
The most effective way to judge the gap between open-source LLMs and closed-source models is to design a task that is reproducible, verifiable, and comparable. Programmatic video generation is a strong stress-test scenario because it involves content understanding, code generation, resource management, rendering output, and quality acceptance at the same time.
A typical task can be defined as follows: based on a product website or product documentation, generate a vertical product launch video of about twenty seconds. The video should include scene transitions, text animations, data display, and an ending brand mark. The model needs to complete the following closed loop:
- Read product materials and extract the brand name, core selling points, page structure, and visual style.
- Design the video script, including scene order, copy rhythm, and animation logic.
- Write frontend pages or animation scripts to implement timeline control.
- Use a headless browser to render pages frame by frame.
- Encode the frame sequence into a video file.
- Compare key frames to confirm that the page preview matches the final output.
- Output time consumption, resource usage, and error logs for later optimization.
The value of this kind of task is that it does not only test whether the model “can write code.” It tests whether the model can complete the task in a real environment. For enterprises, the latter is often the key to successful deployment.
3. Evaluation Dimensions: From Generation Quality to Delivery Quality
In programmatic video generation, model performance can be evaluated from the following dimensions.
1. Content Understanding and Script Planning
The model must first understand the product materials. It needs to extract information suitable for video expression from website copy, feature descriptions, or product introductions, rather than simply stacking text. A good video script usually includes:
- A problem or pain point at the beginning;
- A showcase of core features;
- Key data or growth highlights;
- A summary of user value;
- A brand mark and call to action at the end.
If the model only lists information mechanically, its content organization ability is limited. If it can design scene rhythm based on product characteristics, it has stronger generative planning ability.
2. Frontend Code Generation and Maintainability
Because the video is rendered frame by frame from web pages, the quality of the frontend code generated by the model is critical. During evaluation, it is not enough to check whether the code can run. It is also necessary to check whether the structure is clear. For example:
- Are timeline, styles, and data logic separated?
- Is a unified time function used?
- Are excessive hard-coded magic numbers avoided?
- Are configuration parameters reserved?
- Can later changes to copy, colors, and scene order be made easily?
If the generated code is highly coupled and difficult to modify, it is not suitable for long-term use, even if it runs successfully once.
3. Rendering Consistency
Rendering consistency is a core metric in programmatic video generation. Consistency means that the page effect seen in the headless browser should match the frames in the final exported video.
A common validation method is to extract key frames, such as the first frame, a middle frame, and the final frame, then compare the page preview with the video screenshot. If text position shifts, colors change, animations disappear, or elements flicker, the rendering pipeline is unstable.
4. Stability in Long-Running Tasks
Real business tasks are rarely single-step operations. They are usually multi-step workflows. The model needs to continuously remember the goal, such as output path, video duration, resolution, font requirements, and subtitle rules. If the model forgets initial constraints in later steps, additional prompts or manual corrections are required.
Long-task stability can be measured by:
- Success rate of a complete task in one run;
- Average number of repairs required;
- Whether the model can automatically retry after failure;
- Whether it can adjust strategy based on error logs;
- Whether it introduces unrelated dependencies or files.
5. Cost and Efficiency
A common advantage of open-source models is flexible deployment, but attention should also be paid to inference resources, execution time, and maintenance cost. Closed-source models may be ready out of the box, but call fees, rate limits, and data compliance requirements need to be considered.
When evaluating cost, consider:
- Time consumption per task;
- Whether multiple manual interventions are required;
- Rework rate of generated code;
- Additional overhead caused by rendering failures;
- Deployment and operations complexity;
- Whether private or intranet deployment is supported.
4. A Reproducible Engineering Workflow
The following is a general programmatic video generation workflow. It does not depend on any specific product and only describes the method itself.
1. Prepare the Environment
First, confirm whether the runtime environment has script execution, dependency management, and headless rendering capabilities. A stable environment usually includes:
- A script runtime;
- A dependency installation tool;
- A headless browser rendering environment;
- Font files;
- A video encoder;
- An output directory;
- An error log directory.
If the environment is incomplete, the model should first list the missing items and provide installation suggestions instead of directly generating complex code.
2. Initialize the Project Structure
For maintainability, the model should first create a clear project structure, for example:
project/├── src/│ ├── timeline.js│ ├── scenes/│ ├── styles/│ └── config.js├── assets/│ ├── fonts/│ ├── images/│ └── audio/├── output/├── tests/└── README.md
This structure keeps video templates, assets, and rendering logic separate. If copy or color schemes need to be changed later, only configuration or styles need to be adjusted instead of rewriting the entire codebase.
3. Design the Prompt
The prompt should not simply say “make a product launch video.” It should include role, input, task, constraints, and acceptance criteria. For example:
You are a senior frontend engineer who specializes in generating programmatic videos using web technologies.Task: Generate a vertical product launch video of about 20 seconds and 9:16 aspect ratio based on the product materials.Input materials:- Product name: A certain product- Core selling points: Efficient, stable, and easy to use- Page copy: Concise and impactful- Visual style: Technological, clean, with sufficient whitespaceRequirements:1. The video should contain three scenes: problem introduction, product value showcase, and an ending brand mark.2. The copy should be suitable for short-video reading, and long paragraphs should be avoided.3. Use a unified timeline to control animation progress.4. Use common system fonts to avoid missing fonts.5. Output the video file in MP4 format and save it to the output directory.6. After export, extract the first frame, middle frame, and final frame for self-check.7. If a step fails, explain the failure reason and provide repair steps.
This type of prompt turns vague requirements into executable tasks and significantly reduces deviations caused by excessive model creativity.
4. Render and Self-Check
After generating the page, the model should perform frame-by-frame rendering. The pseudocode can be expressed as:
for (let frame = 0; frame < totalFrames; frame++) {setTimeline(frame / fps);waitForStable();captureFrame(frame);}encodeVideo({input: frames,output: "output/video.mp4",fps: 30});
The self-check process should include at least:
- Whether the total video duration matches expectations;
- Whether the resolution and aspect ratio are correct;
- Whether text truncation occurs in key frames;
- Whether animations appear according to the timeline;
- Whether the ending brand mark is complete;
- Whether the output file was generated successfully.
If the model only generates code but does not verify the result, its delivery capability is still insufficient.
5. Common Pitfalls and How to Avoid Them
In real use, model-driven automation tasks often encounter typical problems. It is more important to design prevention mechanisms in advance than to fix issues afterward.
1. Dependency Fragmentation and Environment Pollution
If old dependencies remain in historical projects, version conflicts or installation failures may occur. Recommended practices include:
- Use an independent project directory;
- Pin dependency versions;
- Generate dependency lock files;
- Back up before cleaning old dependencies;
- Require manual confirmation before bulk deletion operations.
When an automation agent is about to perform bulk cleanup, it should clearly show the types and paths of objects to be deleted instead of executing directly. This is an important safety boundary in engineering.
2. Timeline Misalignment
A common issue in video generation is a mismatch between page animation timing and exported frame rate. Solutions include:
- Clearly define frame rate and total frame count;
- Use a unified time function;
- Avoid relying on the system clock;
- Calculate state based on the current frame number for every frame;
- Add assertion tests for key timestamps.
For example, if a title is supposed to appear at frame 150, the self-check phase can verify whether the text content or position of that frame matches expectations.
3. Font and Rendering Differences
Missing fonts in different environments can cause text wrapping, truncation, or abnormal styles. Recommended practices include:
- Use common fonts;
- Put font files in the project asset directory;
- Check font loading status before rendering;
- Use automatic scaling or line-wrapping strategies for long titles;
- Perform overflow detection on key text.
4. Long-Context Forgetting
When tasks have many steps, models may forget the initially specified resolution, duration, or output path. Solutions include:
- Put key constraints into a configuration file;
- Repeat the goal summary in each round of tasks;
- Ask the model to output an execution plan before execution;
- Split large tasks into four stages: script generation, rendering, export, and acceptance;
- Confirm the result after completing each stage.
5. Safety Risks for Automated Operations
If an automation agent has file read/write access, command execution, and bulk deletion capabilities, safety mechanisms must be set. Recommended practices include:
- Set confirmation thresholds for high-risk operations;
- Log deletion operations;
- Restrict output directories through an allowlist;
- Protect system directories;
- Preserve the current state after failures instead of directly overwriting.
6. Where Are the Differences Between Open-Source and Closed-Source Models?
From tasks like this, the gap between open-source LLMs and closed-source models is not simply about “whether it can be done,” but about “whether it can be done reliably.”
1. Strengths of Closed-Source Models
Closed-source models usually perform well in the following areas:
- More stable understanding of complex instructions;
- Stronger long-context retention;
- More complete productized toolchains;
- More user-friendly error messages;
- More complete enterprise-level support systems;
- Potentially higher first-pass success rates on complex tasks.
For teams that want fast deployment, lower tuning costs, and acceptable use of external services, closed-source models are often easier to manage.
2. Strengths of Open-Source Models
The value of open-source models is reflected in:
- Private deployment support;
- Stronger data control;
- Easier fine-tuning with business data;
- More flexible cost structures;
- Easier integration into internal toolchains;
- Suitability for long-term evolution and deep customization.
For scenarios such as finance, government, manufacturing, and healthcare, where data security requirements are high, open-source models are easier to align with compliance and private deployment needs.
3. The Gap Is Shifting From Capability Availability to Engineering Stability
In common tasks, such as text summarization, code snippet generation, copy rewriting, and simple script writing, open-source models can already cover most needs. However, in complex tasks involving long chains, multiple tools, and multiple constraints, closed-source models may still have advantages in stability, instruction following, and error recovery.
That said, this gap can be narrowed through engineering methods. For example:
- Use prompts to constrain output format;
- Use configuration management to fix key parameters;
- Use test scripts to verify results;
- Use segmented generation to reduce complexity;
- Use logging and retry mechanisms to improve robustness;
- Use human review as a fallback for high-risk operations.
In other words, the model gap is increasingly being redefined by the combined capability of “model + engineering + workflow.”
7. Selection Advice: Do Not Only Ask Which One Is Stronger
In real selection decisions, it is not recommended to simply ask, “Are open-source models or closed-source models stronger?” Instead, ask:
- Can data leave the internal network?
- Is private deployment required?
- Is an extremely high first-pass success rate required?
- Is the team willing to invest engineering resources in secondary packaging?
- Does the business logic need frequent iteration?
- Does the task involve sensitive data or strict compliance requirements?
- Can a certain percentage of failure retries be accepted?
- Does the team have a complete evaluation set and monitoring system?
If the task is high-frequency, complex, requires extremely high stability, and does not have strict compliance requirements for external services, closed-source models may be more suitable. If the task involves sensitive data, requires deep customization, and aims to control long-term costs, open-source models are more appropriate.
Many enterprises eventually adopt a hybrid strategy: use privately deployed open-source models for sensitive scenarios, use closed-source models for complex generation or peak traffic scenarios, and manage routing and governance through a unified gateway.
8. Build Your Own Evaluation Set
For a team, the most worthwhile investment is not chasing a single “strongest model,” but building its own evaluation set. A simple evaluation set can include:
- Ten common task categories, such as copy generation, code repair, log analysis, report summarization, data analysis, interface generation, and process automation;
- Each task category includes normal inputs, boundary inputs, and error inputs;
- Each task has clear acceptance criteria;
- Track success rate, time consumption, number of manual repairs, and failure reasons;
- Perform regular regression tests to observe changes after model upgrades.
Only when evaluation changes from “it feels good” to “quantifiable comparison” can a team truly judge the gap between open-source models and closed-source models and make reasonable selection decisions.
9. Conclusion
The gap between open-source LLMs and closed-source models can no longer be measured by a single parameter or a single demo. In real business, the value of a model depends on whether it can reliably complete tasks under constraints and work well with the engineering system.
Programmatic video generation provides a clear perspective for this kind of evaluation. It tests not only the model’s content understanding, but also code generation, tool calling, rendering control, and error recovery. Through this type of task, open-source models show clear advantages in controllability, private deployment, and cost flexibility, while closed-source models still have advantages in complex task stability and mature toolchains. As engineering methods continue to improve, this gap is shifting from a “capability gap” to an “engineering adaptation difference.”
For developers, the most important thing is not to judge which model is absolutely stronger, but to understand their own scenarios: which parts must be stable and reliable, which parts can be privately deployed, which parts need human fallback, and which parts can be improved through workflow optimization. As long as the evaluation method is appropriate, open-source LLMs can take on core tasks in many key scenarios and complement closed-source models.
