Chinese LLM Selection: A Complete Guide from Evaluation to Production
Choosing the right large language model is not about picking the newest or highest-ranked model. It is about finding the model that best fits your tasks, constraints, and operating environment. This guide lays out a practical selection framework: clarify task types first, evaluate candidates across six core dimensions, build a private evaluation set, estimate cost and latency, choose a deployment mode, and roll out changes gradually with continuous monitoring. It also explains why public leaderboards are not enough and how to create a repeatable process your team can reuse as models continue to evolve.
Why Model Selection Is Difficult
Large language models are evolving quickly. At any given time, multiple Chinese and open-source models may be available to development teams. The real challenge is not whether a usable model exists, but which one best fits a specific business.
The difficulty usually comes from three sources.
First, public leaderboards do not always match real business results. Most leaderboards rely on general-purpose benchmarks with broad coverage, but production workloads often have different input distributions, output formats, and domain vocabularies. A model that ranks highly on a general benchmark may still perform poorly at extracting contract clauses or classifying support tickets.
Second, model selection involves multiple constraints that compete with each other. A stronger model usually costs more and responds more slowly. Low-latency requirements may push you toward a smaller model or a shorter context. Teams must balance quality, cost, and speed.
Third, compliance and operational constraints can dramatically narrow the candidate pool. When personal data, internal documents, or regulated data are involved, data may not be allowed to leave a specific region, or private deployment may be required. These conditions should be confirmed early, because replacing a model later is expensive.
The practical approach is to define the tasks and constraints first, compare candidates using a consistent standard, and then validate the final choice with real data.
Clarify Task Types Before Evaluating Model Capabilities
Different tasks place very different demands on a model. Common LLM application patterns include the following categories.
Knowledge Q&A and retrieval-augmented generation (RAG): These workloads depend on the model’s ability to understand and summarize provided material. Factual accuracy and citation consistency are the most important qualities.
Text generation and rewriting: Examples include marketing copy, email drafts, and summaries. The focus is on fluency, style controllability, and output length.
Code assistance: This includes code completion, bug localization, and unit test generation. Look for syntax correctness, understanding of an existing codebase, and support for the relevant programming language versions.
Structured extraction: For example, extracting fields from receipts or contracts and returning JSON. Format stability and field completeness are critical.
Multi-turn dialogue and tool calling: The model must decide when to call external functions and correctly parse their results. Instruction following and parameter accuracy matter most.
Long-document understanding: When processing dozens of pages or more, context window size and the ability to recall key information from long passages become essential.
After classifying tasks, estimate the input and output profile: average input length, average output length, daily request volume, and peak concurrency. These numbers directly shape cost budgets and architecture design. A text generation service with long outputs and a classification service that returns a short label can have very different costs and latency even if they receive the same number of requests.
Six Core Dimensions for Model Selection
1. Task Capability Fit
Capability fit comes first. Build dedicated evaluation cases for each task type instead of relying on general scores. Cover normal samples, edge cases, and error-prone samples so the evaluation is not limited to the types of questions the model happens to handle well.
2. Chinese-Language and Domain Fit
Chinese-language contexts add extra requirements around idioms, abbreviations, industry terminology, and colloquial expressions. If the business involves specialized fields such as healthcare, legal, or finance, check whether the model uses terms accurately and whether its responses comply with industry norms in sensitive situations.
3. Cost Structure
Most commercial LLM services charge by input and output tokens. Cost estimation should account for several details:
- System prompts and conversation history are counted as input on every request. Multi-turn conversations become more expensive as turns accumulate.
- Some models produce extra intermediate output during inference, and those tokens may also be billed.
- Retrying failed requests consumes more tokens and increases total cost.
4. Latency and Throughput
Latency is usually measured as time to first token and total generation time. For chat interfaces, time to first token affects how long users wait before seeing any response, and streaming output greatly improves the perceived experience. For background batch processing, overall throughput and processing capacity per unit of time matter more. Measure both dimensions separately, and pay special attention to high percentiles such as P95. Occasional long-tail latency is often what triggers user complaints.
5. Data Compliance and Deployment Model
Compliance assessment should answer three questions:
- Will data be transferred outside the required region or jurisdiction?
- Does the provider commit to not using your data for training?
- Does the model license permit commercial use?
There are three common deployment options:
| Deployment Mode | Advantages | Trade-offs |
|---|---|---|
| Public cloud API | Fast setup, elastic scaling, no hardware maintenance | Depends on an external service; data passes through a third party |
| Private deployment | Full data control, custom configuration possible | Requires GPU resources and dedicated operations staff |
| Hybrid routing | Balances cost and capability; reduces single-point risk | Adds architecture complexity and requires maintaining multiple configurations |
6. Stability and Ecosystem
Service availability, rate-limit policies, update frequency, and incident response all affect production experience. After a model version update, output style can change, and existing prompts or post-processing rules may stop working correctly. Confirm whether the provider supports version pinning and whether it sends change notifications.
Build Your Own Evaluation Set
Public leaderboards are only reference points. Reliable conclusions come from evaluating models on your own data.
Building an evaluation set involves four steps.
First, collect real samples. Pull representative inputs from production logs or from business users. Start with a few hundred samples across different task types. Anonymize and redact personal or sensitive information.
Second, define scoring criteria for each sample. State clearly what an acceptable answer must contain, what errors are forbidden, and what output format is required. The more specific the criteria, the more comparable the results.
Third, combine automated evaluation with human spot checks. Keyword matching and format validation are useful for batch screening, but they cannot judge semantic correctness. Have business experts manually score a subset of results to validate the automated evaluation.
Fourth, standardize how models are called. Wrap all candidate models with the same request interface so prompts, parameters, and post-processing logic stay consistent. Otherwise, comparison results are meaningless.
A simplified evaluation flow looks like this:
case = {prompt: "...",required_facts: ["...", "..."],forbidden_content: ["...", "..."]}function score(answer, case):hits = count(required_facts that appear in answer)violations = count(forbidden_content that appear in answer)base_score = hits / len(required_facts) if required_facts else 1return max(0, base_score - 0.5 * violations)function evaluate(candidates, cases, call_model):for candidate in candidates:for case in cases:answer = call_model(candidate, case.prompt)record score(answer, case)record average score for candidatereturn average scores
This keyword-based scoring method is coarse and best used only as a first filter. For semantically complex tasks, use human scoring or structured professional review criteria.
Estimating Cost and Latency
Cost can be estimated with the following formulas:
Cost per request = input tokens × input price + output tokens × output priceMonthly cost = cost per request × daily request volume × 30
For example, assume a service receives 100,000 requests per day, with an average of 1,500 input tokens and 400 output tokens per request. Substitute your actual unit prices into the formula to get a monthly cost estimate. Include retry rate, system prompt length, and accumulated multi-turn input in the calculation.
Perform a sensitivity analysis as well. For example, raise output length by 50% or double the retry rate and observe how much the budget changes. If one parameter has a large impact on cost, prioritize engineering improvements around it, such as compressing prompts, limiting output length, or caching repeated requests.
Latency must be measured rather than estimated. Use real samples and a network environment similar to production. Record time to first token, total generation time, and P95 values. Repeat the tests at different times of day to understand variance.
Deployment Choices and Hybrid Routing
The deployment decision can be viewed from three angles: data sensitivity, traffic scale, and team capability.
When data is highly sensitive and the team has GPU resources and operations experience, private deployment is usually safer. When the business is still exploratory or traffic fluctuates significantly, the elasticity and low entry cost of a public cloud API are more attractive.
For systems that contain both simple and complex tasks, hybrid routing is a common compromise. The basic idea is to use lightweight rules or a smaller model to classify request difficulty. Simple requests go to a cheaper model, while complex requests are routed to a stronger model. The routing strategy must be evaluated continuously to avoid quality degradation from misclassification.
Hybrid routing should also include a fallback path. If a provider fails or starts rate-limiting requests, the system can automatically switch to a backup model and log the switch event for later analysis.
Gray Release and Continuous Monitoring
Do not switch all traffic to a new model at once. Use a phased rollout instead.
Shadow traffic: Run the new model in parallel with the existing system, but do not show its results to users. Compare quality and latency before exposing the model to real traffic.
Small percentage rollout: Open a small share of real traffic, such as 5%. Monitor user feedback and business metrics.
Gradual expansion: If metrics remain stable, increase the percentage step by step until the new model handles all traffic.
After launch, monitor the following metrics:
- Quality: Manual sample pass rate, negative user feedback ratio, structured output format pass rate.
- Stability: Request error rate, timeout rate, number of rate-limit events.
- Performance: P95 time to first token and total generation time.
- Cost: Average cost per request and the gap between monthly cumulative cost and budget.
Set alert thresholds for these metrics. If quality or cost goes out of range, the system should be able to roll back quickly to the last stable version. Model switching should be controlled through configuration, not application code, so emergency changes are fast and safe.
Selection Checklist
Before making a final decision, review these questions:
- Have you split requirements by task type and defined the key capabilities for each type?
- Did you evaluate models using your own data instead of relying only on public leaderboards?
- Did you estimate cost with retries and multi-turn conversation included?
- Did you measure time to first token and P95 latency, and repeat tests at different times?
- Does the solution satisfy data compliance requirements, and does the model license allow commercial use?
- Does the provider support model version pinning and change notifications?
- Have you designed a fallback plan and a configuration-driven switch mechanism?
- Do you have a gray release plan and monitoring alert thresholds?
When all these questions are answered clearly, the selection conclusion becomes explainable and actionable. Models will keep changing, but the selection process itself should become an engineering workflow that the team can use over the long term.
