How to Choose Chinese LLMs: Evaluate Tasks, Data Requirements, and Cost

    A practical framework for evaluating Chinese-developed large language models across reasoning and coding, long-context processing, and high-concurrency workloads. Learn how to test models with your own data, benchmark service performance, and compare quality, deployment constraints, compliance, and cost.

    1. Scope and Evaluation Principles

    Model versions evolve quickly, and rankings and specifications change frequently. Rather than comparing individual models, this article evaluates broad capability categories. Always verify specifications, pricing, and performance against the official documentation and your own test results.

    2. Models with Strong Reasoning and Coding Capabilities

    Models in this category tend to perform well on mathematical reasoning, code generation, SQL writing, and debugging. Common architectural approaches include mixture of experts (MoE) and sparse attention.

    MoE activates only a small number of experts for each token. A model may have a large total parameter count while using far fewer active parameters for each computation, reducing inference compute requirements. However, expert weights still need to be accommodated in memory, so GPU memory capacity remains a key deployment constraint. Sparse attention can reduce computation for long sequences, but its practical benefits depend on the implementation and hardware.

    Do not evaluate these models solely by math and coding leaderboard scores. Benchmark questions may differ substantially from your business tasks. Testing against your own historical examples is the most reliable approach.

    Open-weight models allow private deployment, which can help when cross-border data transfers are restricted. Licensing terms vary, however, including restrictions on commercial use. Have your legal team review the applicable license before production deployment.

    For domain-specific fine-tuning, parameter-efficient methods such as LoRA are an option, but they require enough high-quality labeled data. Fine-tuning can weaken a model’s general capabilities, so run regression tests after every training cycle.

    3. Long-Context Models

    An advertised context window is a specification, not a guarantee that the model can accurately retrieve information from every position within it. As context length increases, attention computation grows, while KV cache memory usage scales linearly with sequence length and concurrency. Longer inputs also consume more billable tokens and increase response latency.

    A useful starting point is a “needle-in-a-haystack” test: insert a known fact at different positions in inputs of different lengths, then ask the model to retrieve it. This tests retrieval under specific context conditions, but it does not fully measure reasoning or comparison skills.

    You should also test realistic tasks, such as checking whether clauses remain consistent across sections of a contract or identifying anomalous figures in several years of financial statement notes.

    If the task does not require the entire document as input, consider chunking with retrieval-augmented generation (RAG) or staged summarization. These approaches are often less expensive and make it easier to trace the source of errors. In high-risk fields such as law and finance, model outputs should remain advisory, with qualified professionals reviewing critical conclusions.

    4. Models for Production Reliability and High Concurrency

    For these workloads, stability and responsiveness are central. Common metrics include:

    • Time to first token (TTFT): The time between sending a request and receiving the first token. Accurate measurement requires a streaming interface.
    • Throughput: Completed requests or generated output tokens per unit of time.
    • Tail latency (p95 and p99): Response times for slower requests, which directly affect user experience.
    • Error rates and rate limits: The proportion of failed requests as concurrency rises, along with the provider’s request limits.

    Test tool calling and structured output separately. Models may return invalid JSON or omit required fields. Validate responses with JSON Schema or Pydantic, and implement retry and fallback logic.

    The following concurrency benchmark can run locally. Its call_model function is a placeholder that must be replaced with a real model API call:

    1. import time
    2. import statistics
    3. import concurrent.futures
    4. from dataclasses import dataclass
    5. @dataclass
    6. class CallResult:
    7. ok: bool
    8. latency_s: float
    9. error: str = ""
    10. def call_model(prompt: str) -> str:
    11. """Replace with a real model API call. This placeholder is for local demonstration."""
    12. time.sleep(0.05)
    13. return f"echo: {prompt}"
    14. def timed_call(prompt: str) -> CallResult:
    15. start = time.perf_counter()
    16. try:
    17. call_model(prompt)
    18. return CallResult(ok=True, latency_s=time.perf_counter() - start)
    19. except Exception as exc:
    20. return CallResult(
    21. ok=False,
    22. latency_s=time.perf_counter() - start,
    23. error=str(exc),
    24. )
    25. def run_benchmark(prompts: list[str], max_workers: int = 10) -> dict:
    26. if not prompts:
    27. raise ValueError("prompts must not be empty")
    28. wall_start = time.perf_counter()
    29. with concurrent.futures.ThreadPoolExecutor(max_workers=max_workers) as pool:
    30. results = list(pool.map(timed_call, prompts))
    31. wall_time = time.perf_counter() - wall_start
    32. latencies = sorted(r.latency_s for r in results)
    33. ok_count = sum(r.ok for r in results)
    34. p95_index = min(len(latencies) - 1, int(len(latencies) * 0.95))
    35. return {
    36. "total": len(results),
    37. "success_rate": ok_count / len(results),
    38. "p50_s": statistics.median(latencies),
    39. "p95_s": latencies[p95_index],
    40. "throughput_rps": len(results) / wall_time,
    41. }
    42. if __name__ == "__main__":
    43. test_prompts = [f"Test request {i}" for i in range(50)]
    44. print(run_benchmark(test_prompts, max_workers=10))

    This script measures full-response latency, not TTFT. To measure TTFT, use a streaming interface and record when the first chunk arrives.

    5. Evaluate Models with Your Own Data

    Use the following process to compare candidates:

    1. Define the tasks. Identify three to five core business task types. For each, document the inputs, expected outputs, and acceptance criteria.
    2. Build a test set. Collect 50–200 real examples per task type. Remove personal information and sensitive data before using them.
    3. Keep test conditions consistent. Use the same prompts and generation settings across candidate models. Set the temperature to 0 when more stable outputs are required.
    4. Run repeated tests. Submit each input multiple times and record the variation in results.
    5. Record version and environment details. Save the model version, test date, hardware environment, and provider service region to support future reproduction.
    Evaluation Area Suggested Metrics Measurement Requirements
    Task quality Human ratings or automatically scored accuracy Use the same scoring criteria and sample set
    Format reliability Valid JSON rate and field completeness Validate against a fixed schema
    Response speed TTFT and p95 latency Record concurrency and network conditions
    Cost Average cost per task Include input, output, and retry tokens
    Compliance Data storage location, retention period, and whether data is used for training Rely on the provider’s written terms

    6. Selection Recommendations

    • For reasoning, coding, and data analysis: If you have in-house engineering capabilities, shortlist models in the first category and prioritize testing the feasibility of private deployment.
    • For long-document workloads: Test retrieval at your target context length before committing to a long-context approach.
    • For applications serving many end users: Prioritize TTFT, tail latency, and rate-limit policies before comparing unit prices.
    • For data that cannot cross borders or be hosted in the cloud: Establish deployment and compliance requirements first, then choose from models that can meet them.

    In every category, shortlisted models are only candidates. Your final decision should depend on your own test results, budget, and compliance requirements.

    7. Limitations and Updates

    This article does not provide rankings for specific models or cite external benchmark results. The technical descriptions cover general principles; actual results vary with model version, hardware, provider, and prompt design.

    Model capabilities and prices change quickly. Consult the latest official documentation before adoption, and use your own testing as the final basis for selection.