How to Evaluate and Deploy Domestic Large Language Models: A Guide to Math Reasoning and Deployment Assessment

    This article provides a practical methodology for evaluating and selecting large language models (LLMs) on math reasoning tasks and deployment efficiency. It covers building a multi-tier math test set, defining scoring metrics, measuring inference performance, estimating per-query costs, comparing self-hosted vs. cloud API options, and using a weighted scorecard for final selection. Common pitfalls and a two-week rollout plan are also included for teams starting the evaluation process.

    1. Clarifying the Evaluation Scope

    This article focuses on evaluation methods rather than ranking specific models. Leaderboard scores change frequently as models are updated, and many reports do not disclose test questions, scoring rules, or runtime environments, making results difficult to verify. A more reliable approach is to design a small but reproducible test using your own tasks, data, and hardware.

    2. Building a Math Reasoning Test Set

    It is recommended to structure the test questions into three tiers: basic calculation, standard competition, and open-ended modeling.

    • Basic tier: Use problems from college entrance exams or university course exercises.
    • Standard tier: Use publicly available math competition problems.
    • Open tier: Use your team’s own business problems, such as parameter derivation in financial forecasting or hypothesis testing in risk models.

    The number of questions per tier should be sufficient. For general selection, a few dozen questions per tier usually reveal obvious differences. If comparing two closely matched models, use more samples and run multiple trials. When scoring, record three types of indicators:

    • Final answer accuracy: Checked against standard answers via script or manual review.
    • Process accuracy: Sample inspection to detect missing steps or invalid assumptions.
    • Stability: Run the same question three times and observe answer consistency.

    During testing, fix the temperature parameter, maximum output length, and system prompt, and document every setting. Otherwise, results cannot be reproduced by others or compared with future versions.

    3. How to Assess Reasoning Ability

    A longer chain of thought does not always yield better outcomes. On some problems, the model may generate extensive repetitive reasoning yet still produce an incorrect answer. Therefore, evaluate both the number of output tokens and accuracy. If two models have similar accuracy, the one with shorter output and lower latency is usually more cost-effective in practice. However, this conclusion applies only to the tested task types and should not be generalized to other domains.

    For scenarios requiring fast responses, such as customer support or real-time translation, focus on time-to-first-token and end-to-end latency. For offline batch processing, prioritize throughput.

    4. Evaluating Deployment Performance

    Deployment performance depends on hardware, quantization method, inference framework, batch size, input/output lengths, and concurrency. Reporting only a single “requests per second” number provides limited value. A credible deployment test should document at least the following:

    • Hardware model and GPU memory capacity
    • Quantization precision, e.g., FP16, INT8, or INT4
    • Inference framework and its version
    • Typical input and output lengths
    • Concurrency level and batch size
    • Measurement method, including the load testing tool and duration

    Before measuring, warm up the system and then collect data from the stable phase. A single test run may be affected by caching or background processes.

    5. Calculating Deployment Costs

    Unit inference cost can be estimated with the following approach: take the hardware purchase cost amortized over its useful life, add electricity and infrastructure/maintenance labor, then divide by the number of effective requests or tokens processed during the same period. Be sure to include idle time. Self-hosted devices often have low utilization at low load, which significantly raises the unit cost.

    Cloud API costs mainly depend on call volume. For small call volumes, APIs are usually more convenient. For consistently high and stable call volumes, self-hosting may offer a lower unit cost. The trade-off point depends on your data volume, peak concurrency, and team maintenance capability, so calculate using your own real numbers.

    6. Self-Hosting vs. Cloud API

    When deciding, answer four questions first:

    1. Is data restricted by regulation or contract, preventing it from leaving the internal network?
    2. What is the peak concurrency, and how often does it fluctuate?
    3. Can your team maintain GPU clusters, model upgrades, and security patches?
    4. Does the business require fine-tuning, and is the fine-tuning data sensitive?

    If the answer to the first question is “must be private,” then self-hosting is a prerequisite, and you then compare costs. If answers are more flexible, a cloud API is usually faster for validating business value. The two approaches can also be combined: sensitive data uses an internal model, while general queries go to a cloud service.

    7. Using a Scorecard for Model Selection

    Score each candidate model on a 100-point scale. Weights can be adjusted according to your business needs; a reference set is as follows:

    • Task accuracy (35 points): performance on your own test set
    • Response efficiency (20 points): time-to-first-token and end-to-end latency
    • Deployment and cost (20 points): unit cost and hardware requirements
    • Compliance and data security (15 points): data location and audit capabilities
    • Ecosystem and maintenance (10 points): toolchain, documentation quality, and update frequency

    The scorecard provides a basis for discussion. Define the weights before starting the tests and record them; do not adjust after seeing results, as this may inadvertently favor a particular candidate.

    8. Common Pitfalls

    First, treat the result of a single test as a long-term conclusion. Model versions change frequently, so the evaluation report should include the test date and version, and schedule regular retests.

    Second, use general leaderboards instead of business-specific tests. Leaderboard questions may differ significantly from your actual scenarios, and a high leaderboard score does not guarantee good performance on your tasks.

    Third, focus only on accuracy and ignore cost. A model with two percentage points higher accuracy but twice the unit cost may not be the better choice.

    Fourth, overlook failure cases. Collect and categorize the questions the model gets wrong, and assess whether those error types are acceptable for your business.

    9. Implementation Recommendations

    Teams starting the selection process can complete the following within two weeks: compile 50–100 representative business questions; run tests on two or three candidate models and record metrics; score using the scorecard; and choose one primary model and one backup. Keep the test set for future use as a regression benchmark when models are upgraded. This way, every model change is evaluated against the same baseline.