Selecting Chinese Large Language Models: From Capability Evaluation to Production Deployment

    Selecting the right large language model (LLM) for enterprise applications requires more than just chasing leaderboard rankings. This guide explores a comprehensive framework for evaluating and deploying Chinese LLMs, covering capability assessment, inference service architecture, task-specific testing strategies, and cost analysis. Learn how to build effective business test sets, evaluate performance metrics like latency and concurrency, ensure data security governance, and implement a robust, phased rollout strategy to achieve reliable and cost-effective production deployments.

    1. Model Selection: Choose the “Best Fit”, Not the “Strongest”

    Faced with continuously updating Chinese large language models (LLMs), developers often look at leaderboards first: which model is better at coding, which provides more complete answers, and which has the highest overall score. While this information helps with initial screening, it cannot directly replace business selection.

    The reason is that model rankings measure performance under specific test conditions, whereas enterprises care about the complete business workflow. For example, a smart customer service bot needs to accurately understand questions, retrieve policies, avoid hallucinations, and escalate to human agents timely; a coding assistant must understand project constraints, generate runnable code, and respect permission boundaries; a document processing system must reliably extract fields, retain source references, and control batch processing costs.

    Therefore, selection should be broken down into three questions:
    First, can the model itself accomplish the target task? Second, can the inference service meet response time, concurrency, and availability requirements? Third, can the overall application achieve cost control, data compliance, and result traceability?

    These three questions correspond to capability evaluation, service evaluation, and system evaluation. Verifying only one of them often leads to the situation where it “looks great in demos but causes many issues in production.”

    2. Understanding Inference Services: Beyond a Simple “Model Directory”

    Model inference refers to using a pre-trained model to process input and generate results. An inference service, on the other hand, provides a complete set of service capabilities beyond the model itself, including request reception, task scheduling, computation execution, and result delivery.

    Thinking of it as a “callable model directory” is helpful for beginners, but it is not accurate enough for actual deployment. A production-ready inference system typically needs to handle the following issues:

    • How model weights are loaded and compute resources are allocated;
    • How requests are queued, and how timeouts and cancellations are handled;
    • How multiple requests share compute resources;
    • How outputs are streamed back and exceptions are logged;
    • How different versions are switched and how failbacks occur during faults;
    • How access permissions, quotas, and audits are enforced.

    Organizing inference capabilities using a microservices approach can split these responsibilities into relatively independent components, facilitating scaling, upgrading, and maintenance. However, microservices themselves do not guarantee better model accuracy, nor do they necessarily mean lower deployment costs. For smaller-scale applications with a single request type, over-splitting may actually increase network communication and maintenance overhead.

    More importantly, the fact that a model can be accessed via an API only indicates that a calling path is available. It does not automatically prove that the service meets formal production requirements, nor does it mean that all deployment methods, parameter settings, and features are consistent. Before going live, you still need to verify version identifiers, access conditions, data processing rules, service limits, and fault recovery mechanisms.

    3. Define the Task First, Then Evaluate Model Capabilities

    3.1 Text QA: Focus on Factual Consistency

    For knowledge QA applications, you cannot just judge whether the answer is fluent. More importantly: Is the answer evidence-based? Does it omit restrictive conditions? Can it clearly express uncertainty when information is insufficient?
    If answers must come from enterprise documents, you should evaluate the model and the retrieval process together. Set up at least three types of samples: explicit answers in the materials, partial information in the materials, and no answer in the materials at all. This helps distinguish between retrieval failures, context comprehension failures, and ungrounded generation.

    3.2 Coding Tasks: Focus on Actual Executability

    Code generation cannot be scored purely on appearance. Reasonable variable naming and complete explanations do not mean the code can run.
    Testing should include syntax checks, unit tests, boundary inputs, exception handling, and security checks. For project-level tasks, you must also verify whether the model understands the existing structure, introduces unnecessary dependencies, or alters unauthorized modules.
    If the goal is frontend development, further check interaction logic, layout adaptation, and accessibility, rather than just observing static display effects. Coding benchmarks can serve as a reference, but they do not prove the model is suitable for all programming languages, project scales, and business constraints.

    3.3 Information Extraction: Focus on Format and Field Accuracy

    Contracts, receipts, and work orders usually require fixed-field outputs. Here, you should measure whether fields are extracted correctly, whether missing values are accurately represented, and whether the result conforms to the agreed structure.
    “Output can be parsed” and “field content is correct” are two different things. A perfectly valid format result might still contain wrong dates, incorrect amounts, or hallucinated information. For critical fields, add rule validations or manual reviews.

    3.4 Multimodal Tasks: Focus on Input Conditions

    When dealing with images, scanned documents, or other non-text inputs, confirm the input forms supported by the model and test using real business samples. Good performance on clear screenshots cannot be directly extrapolated to blurry photos, complex tables, or multi-page materials.
    Document preprocessing, page splitting, and OCR quality will also significantly impact the final result. Avoid attributing issues from the entire processing pipeline solely to the model.

    4. Build a Business Test Set: More Effective Than Trial and Error

    Reliable selection requires repeatable experiments. It is recommended to divide test data into regular, difficult, risk, and real-failure samples.

    • Regular samples measure daily task performance;
    • Difficult samples cover long documents, information conflicts, and multi-step reasoning;
    • Risk samples check for unauthorized instructions, sensitive information leakage, and operations that should not be executed;
    • Real-failure samples come from historical tickets, manual correction records, or error cases from existing systems.

    Each sample should ideally include:

    • Task input and necessary context;
    • Correct answer, required facts, or clear acceptance criteria;
    • Disallowed content;
    • Scoring criteria and error severity;
    • Sample source and applicable scenarios.

    Different models should use the same test conditions, while recording the prompt version, model version, generation settings, and execution time. For tasks with volatile results, conduct repeated tests to observe average and worst-case performance, rather than just keeping the best result.
    The test set should also be split into a development set and a validation set. The development set is used to adjust prompts and workflows, while the validation set is used for final comparison. If you repeatedly optimize around the same batch of questions, it is easy to overestimate generalization to real business scenarios.

    5. Performance Evaluation: Differentiate “Start of Response” and “Completion of Response”

    The speed perceived by the user is not a single metric.
    For streaming output, Time to First Token (TTFT) determines the experience of “has the system responded”; total completion time determines when the task is truly finished; generation speed reflects the efficiency of the output phase. Non-streaming tasks also need to observe overall request latency.
    Under concurrency, record the median and high-percentile (e.g., p95, p99) latency, timeout rates, failure rates, and queueing status. Normal average response time does not mean that a few slow requests won’t affect the business experience.
    Stress testing should closely mimic real-world loads, including input length, output length, request arrival patterns, and concurrency scale. Using only very short prompts often underestimates the consumption of compute and cache resources for long-document tasks; running only sustained full-load tests may also miss queueing issues during sudden traffic spikes.
    Note that batching usually improves throughput but may increase wait times; longer context can accommodate more data but also increases resource consumption, without guaranteeing the model utilizes all the information. Performance optimization must revolve around specific business goals, rather than maximizing a single metric.

    6. Cost Comparison: Use “Effective Task Cost”

    Model API pricing is only a part of the total cost. A single business task may involve retrieval, context construction, multi-turn generation, format fixing, retries, and manual review.
    A more meaningful metric is:
    Effective Task Cost = Total Expenditure for a Batch of Tasks ÷ Number of Tasks Meeting Acceptance Criteria

    If a solution is cheaper per call but frequently requires retries or manual corrections, the final cost might be higher. Conversely, a more capable solution that significantly reduces rework may be more economical.
    Self-hosted inference must also account for compute resources, storage, networking, operations, labor, and idle capacity. The lower the resource utilization, the higher the fixed cost allocated to a single task. API calls require attention to usage fluctuations, access limits, and external service dependencies.
    For non-real-time tasks, evaluate asynchronous queues, batch processing, and result caching. For tasks with significant differences, tiered routing can be adopted: simple tasks go through a lighter processing pipeline, while complex tasks enter a higher-capability pipeline. However, the router itself can misjudge, so you should also evaluate routing accuracy and overall benefits.

    7. Deployment Methods: Subject to Data and Operations Constraints

    7.1 API/Online Inference

    Online inference usually reduces initial deployment effort, making it suitable for rapid validation and business pilots. However, you must clearly define how input data is processed, whether it is retained, for how long, and how access credentials are managed. Do not assume data boundary requirements are met just because the API is convenient.

    7.2 Self-hosted or Private Environment Deployment

    Self-hosting helps control the runtime environment and data flow scope, but it also means the team is responsible for resource planning, version upgrades, capacity assurance, and fault recovery.
    Before deployment, confirm the model usage license, deployable conditions, resource requirements, and technical support boundaries. The existence of an online API for a model does not necessarily mean local deployment is permitted; even if weights are available, it does not mean there are no restrictions on commercial use.

    7.3 Hybrid Deployment

    A hybrid approach can divide processing paths based on sensitivity and task characteristics. For example, sensitive materials are processed within a controlled environment, while tasks that have undergone necessary desensitization and are allowed to be sent out enter other pipelines.
    However, desensitization does not equal absolute security. You must also check whether sensitive content remains in attachments, logs, exception information, and context, and establish clear rules for cross-environment data flow.

    8. Security Governance: Beyond Prompt Engineering

    Prompts can constrain model behavior, but they cannot replace permission systems and programmatic validation.
    If the model can invoke external capabilities, apply the principle of least privilege to restrict accessible resources and executable actions. Operations involving sending messages, modifying records, executing transactions, or deleting data should have confirmation, approval, or rollback mechanisms.
    Retrieved documents, user-uploaded materials, and external content should all be treated as potentially containing untrusted instructions; do not let this content directly override system rules.
    For output results, set up different validation tiers based on task risk. General drafts can be confirmed by the user; content involving financial, contractual, or critical business decisions should retain source evidence and undergo manual review.
    Logging should also follow a minimalism principle. Recording model version, latency, error categories, and necessary tracking information helps troubleshoot issues; fully storing sensitive inputs and outputs may expand the data exposure surface.

    9. Validate Business Value with Gradual Rollout

    Before going fully live, it is recommended to run offline evaluations first, followed by small-scale pilots. If conditions permit, use shadow testing: the new solution receives the same input as the actual business, but the results do not directly affect users or business state.
    During the pilot phase, in addition to model metrics, pay attention to business metrics such as task completion rate, manual modification volume, user wait time, and exception handling burden. An increase in model scores does not necessarily mean a synchronous increase in business value.
    The go-live plan must include version management, timeout handling, retry strategies, fallback paths, and human takeover mechanisms. Retries should distinguish between recoverable faults and explicit permission/input errors to avoid invalid repeated requests; when external writes are involved, prevent duplicate executions.
    Models, prompts, knowledge bases, and retrieval configurations can all alter outputs. Every major update should re-run the validation set and retain rollback capabilities. The object of continuous evaluation should be the entire application pipeline, not just the model name.

    10. An Actionable Selection Workflow

    You can proceed in the following order:

    1. Clarify target tasks, data boundaries, latency requirements, and budget constraints.
    2. Set hard gates that must be passed, such as license conditions, security requirements, and key field accuracy.
    3. Build a business test set, unifying scoring rules and experimental conditions.
    4. Compare task quality, performance stability, and effective task cost.
    5. Validate the complete pipeline including retrieval, tool calling, and permission checks.
    6. Conduct a small-scale pilot to observe real business effects.
    7. Establish version records, monitoring alerts, rollback, and continuous re-evaluation mechanisms.

    Ultimately, selecting a Chinese LLM is not a one-time judgment based on leaderboards, but a continuous engineering decision. A solution truly worth adopting is one that, under explicit constraints, can stably complete tasks, explain failure reasons, control overall costs, and support long-term maintenance.