How to Choose a Domestic LLM: From Inference Services to Production

    Choosing a large language model is not the same as choosing an inference service. This article explains how to separate model capability from serving quality, why public leaderboards are only a starting point, and how to evaluate task quality, latency, cost, deployment, and risk before you go live.

    Separate the model from the inference service

    When new domestic large language models keep appearing, developers often face the same question: several candidates can chat, write code, and call tools—which one should you pick?

    Leaderboards cannot answer that alone. The model sets the capability baseline. The inference service determines how those capabilities are delivered—speed, stability, and cost. The two affect each other, but they are not the same thing.

    Think of the model as trained parameters and compute structure. The inference service loads the model, accepts requests, runs computation, and returns results. In real systems it also handles authentication, concurrency control, resource scheduling, timeouts, and monitoring.

    A model inference microservice packages inference as a clearly bounded unit you can deploy and call independently. Applications submit input through an API and do not manage devices or execution directly. Some deployments also standardize the runtime, dependencies, and configuration to reduce operations work.

    Listing a model in an inference catalog usually means another path to deploy or access it, which may lower integration cost. It does not mean the model is stronger on every task, or that it meets production requirements.

    Answer two questions separately:

    • Can this model complete my business tasks?
    • Can the inference service that hosts it meet my operational requirements?

    Only if both answers are yes does the option have a basis for production.

    An available API is not production-ready

    A response that returns text only proves the call path works. Production systems need work to be completed continuously and under control.

    A single request may look smooth in a test environment, while queueing, rate limits, and timeouts grow under peak load. Solid short Q&A does not prove reliability on long documents, multi-turn dialogue, or complex tool use.

    For a newly connected model service, confirm at least:

    1. Versioning and change. Can the service identify the model version? Can updates change output behavior? How does the application detect change?
    2. Input/output bounds. Accepted input types, context limits, output length limits, and structured-output requirements.
    3. Runtime constraints. Concurrency, timeouts, request rates, and error handling.
    4. Data handling. Whether inputs are retained, how long logs are kept, other uses of data, and configurable options.
    5. Failure recovery. Whether failed requests can be retried safely, whether there is a fallback path, and whether the business can degrade.

    Rely on service documentation, contracts, and tests—not on “it is listed” or “it can be called.” For systems that handle customer data, trade secrets, or personal information, clarify data boundaries before a trial, not after go-live.

    Leaderboards are clues; business tests are evidence

    Public evals can narrow candidates. They should not replace your decision. Tasks, input distributions, and scoring often differ from real work.

    On web development, a benchmark may emphasize visual quality, code completeness, or interaction. Internal development may also require correct authorization, maintainable code, complete error handling, and approved dependencies. A model that shines at generating pages may not be best for maintaining existing systems.

    A high general Q&A score also does not prove the model will follow rules in an enterprise knowledge base. Business needs grounded answers, not only fluent prose.

    Use leaderboards to discover candidates. Decide on your own task set. Record service version, prompts, generation settings, and test date so results from different times or configs are not mixed.

    Break capability down by task type, not a single score

    1. Programming and software development

    Separate completion, feature generation, bug fixing, explanation, and test writing. These skills are not identical.

    For feature generation, check requirement understanding, edge cases, and whether the code runs. For bug fixing, check whether the real cause was found, whether new issues were introduced, and whether the change scope is reasonable. For tests, check whether assertions are meaningful or merely restate the implementation.

    Do not score only “the generated code looks complete.” Combine automated tests, static checks, and human review against business constraints.

    2. Knowledge Q&A and document processing

    Focus on factual accuracy, citations, coverage, and when the model refuses to answer.

    If you use retrieval-augmented generation, score retrieval and generation separately: whether relevant material was found, and whether the model used it faithfully. Otherwise retrieval misses look like weak models, and hallucination looks like an incomplete knowledge base.

    For long context, test whether information at different positions is extracted accurately and whether conflicting clauses are detected. Supporting a long input is not the same as reliably understanding all of it.

    3. Tool use and business automation

    The core is not generating a call description. It is choosing the right action under known permissions and state, filling correct parameters, and interpreting results.

    Cover missing parameters, tool failures, duplicate submits, and cases that need user confirmation. Payment, deletion, and permission changes should have independent checks in the business system—not only the model’s judgment.

    Guard against untrusted text that tries to escalate privileges. Instruction-like text in retrieved documents should be treated as data to analyze, not as higher-priority commands.

    Build a reproducible test set and scoring method

    The test set should come from real work, after redaction and authorization. Do not pick only easy wins. Cover typical tasks, hard tasks, and malformed input.

    Step 1: Define success. For each task type, state what counts. Extraction: correct fields and no invented extras. Code repair: relevant tests pass and existing behavior is preserved. Q&A: conclusions match designated sources.

    Step 2: Layer tests. Baseline for common requests; boundary for missing information, contradictions, and oversized input; security for sensitive data, unauthorized requests, and untrusted content; load for concurrency.

    Step 3: Fix experimental conditions. Keep business instructions, inputs, and available tools as consistent as possible. Use model-specific prompt templates if needed, but record the changes so one side is not heavily optimized while the other uses defaults.

    Step 4: Combine automatic scoring and human review. Prefer automatic checks when outcomes are objective. Use explicit rubrics for open answers, with anonymous review when possible. If a model assists scoring, sample for human audit.

    The report should show failure types, not only averages. For enterprise work, “when it fails” often matters more than a composite score.

    Measure performance against real request mix

    Inference performance is not only tokens per second. User experience and capacity involve at least:

    • Time to first token: from submit to first output.
    • End-to-end latency: from submit to completion.
    • Throughput: work completed while meeting latency targets.
    • Tail latency: slow requests, to see peak and complex-task risk.
    • Failure rate: timeouts, service errors, format errors, and business-validation failures.

    Use realistic input length, output length, and concurrency. Lots of short questions do not predict long-document analysis.

    Batching, caching, and scheduling can improve efficiency or add wait time and complexity. Measure the benefit; do not assume an optimization always helps. After changing generation settings, context length, or inference precision, recheck task quality.

    Cost should be “successful task completed”

    Price per call or per generated token is only part of cost. What matters is the total cost of a qualified business task.

    Cost per successful task = total cost ÷ number of successful tasks

    Total cost can include inference, compute, data processing, retrieval, network, human review, and operations. Use the same time window and task volume.

    A cheap-per-call model that needs many retries or heavy human edits can cost more. A stronger model that cuts retries and rework can be cheaper overall.

    For multi-step automation, cost the whole chain, not one generation. Tool execution, rollback, and validation can dominate.

    Hosted inference versus self-hosted

    Hosted APIs often fit teams that want to validate quickly with less infrastructure. Check stability, data rules, versioning, and call cost.

    Self-hosting can give more control, but the team owns capacity planning, loading, scheduling, upgrades, and incidents. It is not automatically cheaper or safer. Fit depends on scale, compliance, and skills.

    Verify licenses for the model and related components: commercial use, modification, distribution, and use restrictions. Having model files is not unrestricted use.

    Either way, you can put a unified model-access layer in the application and decouple business logic from a specific service. That layer does not hide all differences. Input formats, tool-call behavior, and error semantics still need separate verification.

    From limited validation to controlled rollout

    Scale traffic gradually rather than replacing all production at once.

    First, screen quality and safety offline. Next, shadow traffic on real inputs without affecting outcomes. Then run a small share of low-risk tasks. Expand only after quality, latency, and cost targets are met.

    Prepare rollback. On service failure, switch to a proven backup, return deterministic rule-based results, or hand off to humans. For high-risk work, it is better to say the task cannot be completed than to emit unverified answers.

    Monitor business failures as well as service errors: bad field extraction, ungrounded answers, illegal tool parameters, and rising rework. Log the minimum needed, redact sensitive content, and limit access and retention.

    After a model update, rerun the critical test set. Even if the API is unchanged, behavior can change. Treat version upgrades as system changes that need verification.

    You are choosing a business solution, not only a model

    Selecting a domestic LLM is about a reliable combination of capabilities under specific tasks and constraints. Inference microservices lower the integration bar, and public evals give a first look. Neither replaces real business validation.

    Decide on five dimensions: task quality, runtime performance, total cost, deployment constraints, and risk governance. Set non-negotiable floors, then compare options that meet them. That usually beats chasing a single ranking.

    The highest-value investment is not hunting the “strongest” model name. It is a reproducible evaluation, rollout, and monitoring process. When tasks complete reliably, failures are found quickly, and cost is accounted for continuously, model capability becomes maintainable engineering value.