Chinese LLM Selection in Practice: A Multi-Model Comparison Methodology
A systematic approach to selecting the right large language model for your use case. This article covers requirement decomposition, building a custom evaluation set, running controlled multi-model comparisons, weighted scoring, cost-performance trade-offs, and common evaluation pitfalls.
Chinese LLM Selection in Practice: A Multi-Model Comparison Methodology
1. Why You Need a Systematic Selection Method
Models iterate quickly and version naming is inconsistent. Making decisions based on release notes, community discussions, or a few ad-hoc questions often leads to one-sided conclusions. Common issues include: test samples that are too few and skewed toward easy scenarios; focusing only on answer quality while ignoring latency and cost; and using different prompts for different models, which makes results incomparable.
The core of systematic selection is reframing the question from “which model is better” to “which model fits my tasks, constraints, and budget.” This means defining requirements first, then measuring with the same data and criteria.
2. Decomposing Requirements Before Evaluation
Before touching any model, break your business requirements into three categories.
1. Task type. Common types include text generation, code assistance, document summarization, Q&A, structured information extraction, and multi-turn dialogue. Different tasks demand different capabilities. For example, structured extraction values output format stability most, while open-ended writing values expression quality.
2. Engineering constraints. Confirm required context length, acceptable latency, expected concurrency, whether data involves sensitive information, whether private deployment is needed, and the monthly budget cap. These constraints will directly eliminate some candidates. Real-time interactive scenarios are latency-sensitive, while batch offline processing prioritizes unit cost.
3. Output requirements. Clarify whether results must be parsed by programs, whether external tools must be called, and whether there are requirements for refusal rate, source citation, or language style. Output requirements determine your scoring rules during evaluation.
3. Building Your Own Evaluation Set
Public leaderboards reflect general capabilities and don’t necessarily match your business scenarios. A more reliable approach is to build an evaluation set from real business data.
Sample sources should cover three categories: high-frequency requests (the most common daily questions), long-tail requests (infrequent but important complex questions), and edge-case requests (inputs prone to errors or refusals). For each task type, prepare dozens of samples, annotated with reference answers or scoring criteria.
Evaluation samples can be stored in a unified data structure for batch reading and reuse:
# Unified structure example for evaluation sampleseval_case = {"case_id": "summary-017","task_type": "document_summary","prompt": "Compress the following meeting notes into a bullet list of no more than 200 words...","reference": "Must include decision items, owners, and deadlines","tags": ["high_frequency", "long_context"],}
Samples must be sanitized before storage — remove real personal information and business secrets. Update the evaluation set regularly as the business evolves; reusing the same samples indefinitely distorts conclusions.
4. Running Parallel Multi-Model Comparisons
The key to comparison experiments is controlling variables:
- Unified prompt template. Use exactly the same instruction text for the same task; don’t tune prompts per model.
- Fixed generation parameters. Keep temperature, max output length, and other parameters consistent across all models. If a model doesn’t support a parameter, record the difference and note it in the report.
- Log runtime metrics. Include first-token latency, total duration, input/output token usage, and failure or timeout counts.
Parallel calls shorten overall evaluation time. Here’s a schematic implementation — refer to your SDK’s actual API:
import timefrom concurrent.futures import ThreadPoolExecutordef run_single(client, model_name, case, params):start = time.perf_counter()resp = client.chat(model=model_name,messages=[{"role": "user", "content": case["prompt"]}],**params,)return {"model": model_name,"case_id": case["case_id"],"output": resp.text,"latency_s": round(time.perf_counter() - start, 3),"tokens": resp.usage_total,}def run_batch(client, models, cases, params, workers=8):jobs = [(m, c) for m in models for c in cases]with ThreadPoolExecutor(max_workers=workers) as pool:futures = [pool.submit(run_single, client, m, c, params) for m, c in jobs]return [f.result() for f in futures]
Set concurrency based on server-side rate limits. When throttled, apply exponential backoff retries and count retries in your report — otherwise you’ll underestimate the real latency of some models.
5. Scoring Dimensions and Weights
Combine human judgment with automated judgment. Reference dimensions:
| Dimension | Description | Reference Weight |
|---|---|---|
| Accuracy | Are facts and conclusions correct | 35% |
| Instruction following | Meets constraints such as length, format, tone | 20% |
| Format stability | Structured output is directly parseable | 15% |
| Latency | First-token latency and total duration | 10% |
| Cost | Average cost per task | 10% |
| Safety and compliance | Meets content and data security requirements | 10% |
Weights are just a starting point — adjust based on business priorities. For example, offline batch processing might lower the latency weight to 5% while raising the cost weight.
For human scoring, use blind review: hide model names and show only IDs to reduce evaluator bias. Ideally, have two evaluators score each sample independently and reconcile large disagreements.
Weighted total score:
WEIGHTS = {"accuracy": 0.35,"instruction": 0.20,"format": 0.15,"latency": 0.10,"cost": 0.10,"safety": 0.10,}def weighted_score(scores: dict) -> float:# Each dimension's score ranges from 0 to 100return sum(WEIGHTS[k] * scores[k] for k in WEIGHTS)
6. Balancing Cost and Performance
Cost estimates should be based on actual call volume, not per-call list prices. The following numbers are illustrative assumptions for demonstrating the calculation method.
Assume a model charges 2 CNY per million input tokens and 8 CNY per million output tokens. If the business makes 10,000 calls per day, averaging 1,500 input tokens and 500 output tokens per call:
- Daily input cost: 15M tokens × 2 = 30
- Daily output cost: 5M tokens × 8 = 40
- Daily total: 70, or roughly 2,100 per 30-day month
With this number, you can compare monthly costs across models at the same call volume. Note that output tokens are usually priced higher than input, so tasks with long outputs have a higher cost share.
Another common practice is tiered routing: route simple tasks (short-text classification, keyword extraction) to lighter, cheaper models, and complex tasks (long-document reasoning, code generation) to stronger models. Tiered routing requires first determining each task type’s capability boundary via your evaluation set — otherwise complex requests may get misrouted to lightweight models, degrading quality.
7. Interpreting Results and Rolling Out
An evaluation report shouldn’t present just one total score. More valuable is showing score distributions per task type and listing typical failure cases. A model with a high total score but weak format stability may not suit integration scenarios that require program-parseable output.
For rollout, proceed in phases:
- Small-scale gray release. Route a small share of real traffic to candidate models and check whether production metrics match offline evaluation results.
- Continuous regression. After each model version update or prompt change, rerun the evaluation set and track score changes.
- Keep a fallback. When the primary model hits rate limits, service instability, or quality degradation, you should be able to switch to a backup quickly.
8. Common Pitfalls
- Relying only on public leaderboards. Leaderboard questions often differ from your data distribution; validate conclusions with your own evaluation set.
- Attributing prompt-engineering gains to the model. The same model can perform very differently under different prompts — keep prompts consistent when comparing.
- Ignoring failure costs. A model with a low per-call cost but a high failure rate triggers frequent retries and may cost more overall.
- Mismatch between evaluation samples and production data. If samples are too clean, production performance will likely fall below evaluation results.
Model selection is a continuous, iterative process. With a unified evaluation set, a standardized comparison workflow, and a clear scoring system, teams can make fast decisions whenever models update — instead of starting from scratch every time.
