Systematically Evaluating LLM Capabilities: A Reproducible Workflow for Developers in China

    As large language models update more frequently, developers, content creators, and business teams need a fair and reproducible way to compare models on Chinese-language understanding, code generation, and reasoning under network, account, and cost constraints. This article describes an engineering approach: define evaluation goals before choosing access methods; use a unified gateway and auditable cloud records; fix prompts, context length, output constraints, sampling, retrieval, and judge protocols; run blind tests; build reproducible experiment tables and regression snippets; and interpret results separately from runtime conditions. It also offers selection guidance for content, engineering, and teaching/research use cases.

    As large language models update faster, developers, content creators, and business teams face a common problem: how to compare different models fairly and reproducibly on Chinese-language understanding, code generation, and reasoning under network, account, and cost constraints. Direct official API access is not always feasible, and scattered trials can easily mistake a difference in experience for a difference in capability. A more reliable approach is to treat evaluation as an engineering task: unify prompts, context length, and output constraints, then record results in an auditable cloud environment.

    Define Evaluation Goals Before Choosing Access Methods

    Before evaluation, write down the purpose. For content production, prioritize structural completeness, whether terminology is overly academic, and whether the output is close to the reader. For R&D, prioritize code runnability, exception handling, and robust suggestions for anti-scraping and dynamic pages. For decision-making and analysis, prioritize condition breakdown, unit conversion, and whether steps can be verified. Different goals lead to different conclusions about whether the same model is “good” or “bad.”

    Common access obstacles for developers in China include unstable cross-border connectivity, lengthy key application processes, and inconsistent quotas for multimodal and long-context capabilities. In engineering terms, it is better to converge model calls into a unified gateway: object storage stores prompts and samples, logging records latency and failure codes, and monitoring and alerting cover timeouts and rate limiting. A container platform makes it easy to pin runtime versions and avoid “works on my machine but fails on the evaluation machine.” If you already use Baidu AI Cloud, you can place inference calls, object storage, and logging and monitoring in the same account system to reduce key sprawl, but this does not change the evaluation method itself—the method must be vendor-neutral.

    Comparison Dimensions: Capability Boundaries Matter More Than Spec Sheets

    Common differences described in public materials include very long context and multimodal coverage, Chinese-language fluency and approachability, and code details and engineering advice. Spec sheets are background only, not conclusions. When evaluating, hold the following variables fixed:

    • The same system prompt and user prompt; model-side default persona differences must not interfere.
    • The same temperature and maximum output length. If the API does not expose sampling parameters, note “default decoding” in the write-up.
    • The same attachment and retrieval switches: file upload and web retrieval significantly change factual tasks and must be tested with paired on/off settings.
    • The same judge protocol: in blind tests, shuffle model identifiers to avoid brand preference.

    For Chinese-language understanding and creation, constraints such as “about 500 words, a clear viewpoint, and coverage of both Chinese and Western ethical perspectives” can be used. Points to watch include empty rhetoric, whether cases are verifiable, and whether terms need secondary explanation. In blind tests, it is useful to count preference ratios while recording readability and information density sub-scores, so that style preference is not mistaken for comprehension.

    For code generation, tasks should carry explicit constraints: language, dependency scope, exception handling, and polite crawling of public sites (timeouts, retries, random request headers). Evaluation should check not only whether code runs directly but also failure paths: whether it provides fallback plans for network timeouts, abnormal status codes, and page structure changes. For dynamic-page scenarios, the model can be asked to explain the applicable boundaries of browser automation rather than defaulting to an unmaintainable script.

    For logical reasoning and math, choose problems whose steps can be manually verified, not open-ended essays. For example, for the fill time when an inlet pipe and an outlet pipe work at the same time, the standard solution is to subtract net rates: the inlet rate is 1/5 pool per hour, the outlet is 1/8 pool per hour, the net rate is 1/5−1/8=3/40, and the fill time is 40/3 hours. During evaluation, check whether the model states assumptions (both open at the same time, constant rates, no leakage), gives units, and restates conditions in the conclusion. If an error such as “opening both will drain faster” appears, record it as a reasoning failure rather than a style issue.

    Reproducible Experiment Records

    It is recommended to use a table to fix each experiment, with fields including at least: task ID, prompt hash, whether retrieval is enabled, output token count, human score, runnability, and key defects. Example below (fields are generic records, not a product API):

    1. task_id, prompt_hash, retrieval, tokens_out, score_zh, score_code, score_reason, notes
    2. E01, a1b2, off, 620, 4.0, -, -, academic_tone
    3. E02, a1b2, off, 580, 4.2, -, -, case_driven
    4. C01, c9d0, off, 180, -, pass, -, retry_ua
    5. R01, e3f4, off, 90, -, -, pass, 40/3_hours

    Code tasks can add a minimal runnable snippet for regression, such as a timeout and retry skeleton for the request layer (replace the site and selectors with a legal public API; this is only to illustrate structure):

    1. import time
    2. import random
    3. import requests
    4. HEADERS_POOL = [
    5. {"User-Agent": "Mozilla/5.0 (compatible; research-bot/1.0)"},
    6. ]
    7. def fetch(url, retries=3, timeout=10):
    8. last_err = None
    9. for i in range(retries):
    10. try:
    11. headers = random.choice(HEADERS_POOL)
    12. resp = requests.get(url, headers=headers, timeout=timeout)
    13. resp.raise_for_status()
    14. return resp.text
    15. except requests.RequestException as e:
    16. last_err = e
    17. time.sleep(2 ** i)
    18. raise last_err

    Evaluation conclusions should distinguish “generation quality” from “runtime environment”: if the same script fails on a network without a proxy and with rate limiting, that cannot be directly attributed to the model. Only by writing network and dependency versions into experiment notes can you compare across runs.

    Interpreting Results and Selection Advice

    For Chinese-language tasks, more conversational, case-driven outputs often receive higher preference in small-sample blind tests, but academic settings may require stricter terminology. For code tasks, solutions with retries, random request headers, and boundary guidance for dynamic pages are usually more stable on real sites, but manual review is still needed for robots compliance and copyright. For reasoning tasks, answers with complete steps that can be substituted back for verification are more valuable than polished wording.

    Selection does not need to pursue “best overall.” Content teams can prioritize readability and structure; engineering teams can prioritize runnability and exception paths; teaching and research settings can prioritize transparency of process. With a unified gateway and unified logs, replacing a model becomes a configuration change, and the evaluation set can keep accumulating. Cloud environments such as Baidu AI Cloud can host such pipelines, but the core assets are the prompt set, scoring criteria, and failure case library, not a temporary entry point.

    After evaluation is engineered, developers in China do not need to spend energy on whether they can connect, and can spend time on task design and result review. This is the long-term transferable capability: when models, quotas, and compliance requirements change, the same method still holds.