Open-Source LLM Ecosystem in China: Capability Evolution and Engineering Practices
This article examines how engineering teams can evaluate and deploy open-source LLMs developed in China beyond download metrics. It covers instruction following, long-context understanding, long-horizon tasks, and deep research workloads, then presents a selection framework and practical guidance for resource planning, inference serving, long-document processing, and instruction-following tests.
1. Background and Problem Framing
The weights of open-source large language models can be downloaded, deployed, and further trained. Research institutions, small and midsize teams, and enterprise developers can validate model capabilities in local environments. Recently, downloads of open-source models developed in China have continued to expand, and community discussion has shifted from “Can it be used?” to “Which model fits which type of task?”
Download volume reflects community attention and willingness to try, but it does not equal effectiveness in a specific business scenario. Engineering teams should shift focus from popularity back to verifiable metrics, including task completion rate, response latency, cost per call, and maintenance difficulty.
2. Evolution of Main Capability Directions
Recent public discussion has focused on four capability directions.
2.1 Instruction Following
Instruction following refers to whether a model can accurately understand and execute constraints in a prompt, such as output format, word limit, language requirements, and step order. It is the foundation of all upper-layer applications. Even if a model has broad knowledge, if it often ignores requirements such as “output only valid data formats,” it cannot be directly integrated into automated workflows.
From an engineering perspective, instructions can be decomposed into testable conditions and checked one by one, rather than scored only by reading impressions.
2.2 Long-Context Understanding
Long-context understanding focuses on the model’s ability to locate information in longer contexts, reason across paragraphs, and maintain consistency. Contract review, technical document Q&A, and codebase understanding all rely on this capability. A longer context window does not automatically mean stronger understanding. Recall for information in the middle of the window may be significantly lower than for the beginning and end, so it needs separate testing.
2.3 Long-Horizon Tasks
Long-horizon tasks require multiple rounds of planning, tool invocation, checking intermediate results, and continuous progress. These tasks place high demands on state retention and error recovery. A single-step error may be amplified in later steps, so intermediate checkpoints should be added to task design.
2.4 Deep Research Tasks
Deep research tasks usually include retrieving materials, summarizing viewpoints, cross-validation, and generating structured reports. The bottleneck is often not generation itself but judging the reliability of information sources. In production, the model should be required to cite sources, and the system should perform a second verification of the citations.
3. Model Selection Evaluation Framework
Model selection should not rely only on leaderboard rankings. The following dimensions can be used directly for evaluation.
| Dimension | Question to Consider | Reference Practice |
|---|---|---|
| Task fit | Does the target task have corresponding performance in the evaluation set? | Build an evaluation set from real business samples |
| Context length | Does the actual input length often exceed the window? | Analyze the distribution of online request lengths |
| Inference cost | Are GPU memory and latency per request acceptable? | Stress-test latency under different concurrency levels |
| License | Are commercial use, redistribution, and modification restricted? | Have the legal team confirm each item |
| Community maintenance | Are issues fixed and versions updated continuously? | Review release history and issue response records |
During evaluation, fix the same set of prompts, decoding parameters, and scoring rules so that results from different models are comparable.
4. Engineering Practices
4.1 Resource Planning
Model GPU memory usage can be roughly estimated. The weight portion is approximately the number of parameters multiplied by the number of bytes per parameter. For 16-bit floating point, each parameter occupies 2 bytes, so a 7-billion-parameter model requires about 14 GB for weights. Actual deployment also adds activations, key-value cache, and runtime overhead, so more space usually needs to be reserved.
Long contexts significantly increase key-value cache usage. When input length increases from 4K to 32K, cache size grows by about 8x, and concurrency capacity drops accordingly. Capacity planning should therefore be based on real concurrency and average input length, not on the model’s maximum window.
4.2 Inference Serving
Inference services usually need the following capabilities:
- Request queuing and concurrency limits to prevent a single long request from slowing overall latency;
- Streaming output to improve time-to-first-token in interactive scenarios;
- Timeout and retry policies that distinguish retryable errors from input errors;
- Request and response logs, with sensitive fields redacted.
Model services should be wrapped in a unified interface, with business code depending only on the interface contract. When replacing the model later, only the configuration needs to change. Example:
config:model_endpoint: read from environment variablesmax_input_tokens: 32000timeout_seconds: 60max_retries: 2function call_model(prompt, options):request = build_request(prompt, options, config)response = send_with_retry(request, config.max_retries, config.timeout_seconds)return parse_output(response)
Sensitive information such as service addresses and keys should be read from environment variables or a secret management system and should not be written into code or logs.
4.3 Long-Text Processing Strategies
When input exceeds the range the model can reliably handle, three strategies are common:
- Chunking and summarization: split by section, extract key points chunk by chunk, then summarize the key points again;
- Retrieval augmentation: use a retrieval module to filter relevant passages first and send only relevant content to the model;
- Structured extraction: first convert the document into fields or tables, then hand it to the model for reasoning.
Each strategy has trade-offs. Chunking and summarization is simple to implement but easily loses cross-section relationships. Retrieval augmentation is efficient, but its effectiveness depends on retrieval quality. Structured extraction offers good accuracy, but requires higher upfront modeling cost.
When chunking, retain some overlap so that key information does not fall exactly on a boundary. Example below: note that the overlap length must be less than the chunk length; otherwise the loop cannot advance:
function chunk_document(text, max_chars, overlap):// Require overlap < max_charschunks = []start = 0while start < length(text):end = min(start + max_chars, length(text))chunks.append(text[start:end])start = end - overlapreturn chunks
4.4 Instruction-Following Tests
It is recommended to turn each instruction into a machine-checkable constraint, such as “output is valid data format,” “contains three subheadings,” or “does not exceed 200 words.” The evaluation script validates each constraint and calculates the pass rate.
```
function evaluate_instruction_following(model, test
