How to Evaluate a Foundation LLM: Math Reasoning, Inference Speed, and Deployment Economics

    A practical guide to evaluating a foundation large language model, with a focus on mathematical reasoning. Instead of relying on a single benchmark score, the article shows how to tell whether a model can actually solve problems, explain its reasoning correctly, and think efficiently. It covers building a reproducible, layered evaluation scheme, correctly reading generation-speed metrics such as throughput and latency, and estimating the true economics of self-hosting versus metered API usage. The aim is a repeatable, calibratable framework that turns model selection, deployment, and operations decisions from hearsay into data-driven choices.

    1. Introduction: Evaluation Should Answer “Is It Worth Using—for What Task, and Under What Budget?”

    In Q&A communities, discussions about whether a given large model is “good enough” are common. Two representative questions stand out: first, how a model compares with closed-source flagship models, especially in math; and second, whether such a model can run stably on your own servers.

    Looking back a step, every model release goes through a period of dense opinions. These opinions share three traits: some come from the vendor’s own tests, some from benchmark leaderboard scores published by evaluation organizations, and some from users’ hands-on impressions. Almost every opinion is followed by a string of numbers—parameter counts, benchmark scores, and prices—but these numbers live in different contexts and don’t mean the same thing.

    For developers and technical decision-makers, staying at the level of “who is stronger” offers limited help. More useful questions are:

    • How do you judge whether a model is good enough for a specific task?
    • When facing a hard problem, does a model genuinely “solve” it, or does it merely “look like it is reasoning at length”?
    • Reasoning models show clear advantages on hard math, but their chains of thought are long and slow—so what is their real cost-performance?
    • In community discussions, people talk about “using full racks of high-end accelerators to push a model to extremely high generation speeds.” What does that actually mean for self-deployment?

    Around these questions, the discussion below is organized along three dimensions: capability evaluation, inference efficiency, and deployment economics. One clarification: a Chinese open-weight model known for its reasoning capabilities has advanced rapidly in recent years, and some test results show its performance on math and code tasks approaching the international leading level. However, in the most difficult scenarios such as complex mathematical reasoning, the mainstream evaluation view still holds that a perceptible gap remains between it and closed-source flagship models. Rather than fixating on a one-time ranking, the better path is to build a reproducible, calibratable evaluation methodology.

    2. Capability Evaluation: Distinguishing “Can Solve,” “Explains Correctly,” and “Thinks Efficiently”

    2.1 From “Answer Accuracy” to “Process Credibility”

    Classic benchmarks (such as the abbreviated datasets used to measure commonsense reasoning and grade-school math word problems) have long used accuracy as their core metric. Objective questions have standard answers, automatic grading is easy, and results are suited to quick side-by-side comparison. But as models have improved, these questions have lost much of their discriminative power.

    Three levels need to be distinguished:

    1. Solving: producing a correct answer on standard or semi-structured questions;
    2. Credibility: solution steps that hold up to symbolic computation or human inspection—rather than “guessing the answer and inventing a plausible process”;
    3. Efficiency: reaching the same accuracy with a shorter chain of thought and less wasted exploration.

    Traditional benchmarks mainly cover the first level, at most touching the second, and almost never measure the third—yet the third is precisely what determines real-world experience and cost.

    2.2 Chain-of-Thought Length and Redundancy: A Key Intermediate Metric

    Reasoning models driven by chains of thought show clear advantages on complex math problems, which is also why they are often compared with closed-source flagship models. But a longer chain of thought is not necessarily better.

    • Premature divergence: restating the same line of reasoning repeatedly;
    • Dead-end branches: starting a path, finding it doesn’t work, but failing to prune it in time;
    • Over-verification: repeatedly “checking again” without introducing any new information;
    • Premature convergence: stopping verification once an answer is “close enough.”

    For the same chain of thought, tokens can be broken into four categories: valid reasoning (that advances the solution), self-correction (fixing errors), exploration (rejected branches), and redundant repetition (highly similar fragments). The higher the redundant share, the lower the proportion of the per-token budget actually spent on solving the problem.

    Consider a concrete example. Suppose two models solve the same combinatorics problem: Model A uses 12,000 tokens and gets it right; Model B uses 30,000 tokens and also gets it right. If we further find that Model B’s last 18,000 tokens are almost entirely a restatement and second confirmation of the earlier conclusion, then the two are indistinguishable on “raw answer accuracy” but differ by several times in reasoning efficiency. Model A’s chain of thought may be more concise and closer to natural human writing; Model B’s chain is longer and more elaborate. Complexity itself is not a flaw—hard problems often genuinely require a longer exploration process. The key is whether those tokens actually participate in the solution.

    You can use the illustrative code below to estimate redundancy:

    1. import re
    2. from difflib import SequenceMatcher
    3. from collections import Counter
    4. STEP_SPLIT = re.compile(r'\n\s*\n|(?<=\.)\s+(?=[A-Z])|(?<=。)\s*')
    5. def split_steps(chain: str):
    6. """Split the chain of thought into reasoning steps"""
    7. return [s.strip() for s in STEP_SPLIT.split(chain) if s.strip()]
    8. def chain_stats(chain: str, redundancy_threshold=0.8):
    9. """Estimate chain-of-thought redundancy: steps highly overlapping with existing content are treated as redundant"""
    10. steps = split_steps(chain)
    11. if not steps:
    12. return {"steps": 0, "redundant": 0, "redundancy": 0.0}
    13. def char_bigrams(text):
    14. clean = re.sub(r'\s+', '', text)
    15. return Counter(clean[i:i + 2] for i in range(len(clean) - 1))
    16. kept, redundant = [], 0
    17. for step in steps:
    18. grams = char_bigrams(step)
    19. is_dup = False
    20. for prev in kept:
    21. overlap = SequenceMatcher(None, grams, char_bigrams(prev)).ratio()
    22. if overlap >= redundancy_threshold:
    23. is_dup = True
    24. break
    25. if is_dup:
    26. redundant += 1
    27. else:
    28. kept.append(step)
    29. return {
    30. "steps": len(steps),
    31. "redundant": redundant,
    32. "redundancy": round(redundant / len(steps), 3),
    33. }
    34. # Example: step 3 is essentially a restatement of step 2's conclusion and will be flagged as redundant
    35. sample = (
    36. "Let the total number of people be N, and each person joins at least one club.\n\n"
    37. "By the inclusion-exclusion principle: A∪B∪C = A + B + C - A∩B - A∩C - B∩C + A∩B∩C.\n\n"
    38. "In other words, by the inclusion-exclusion principle, the union of three sets "
    39. "equals the sum of the three, minus the pairwise intersections, plus the triple intersection.\n\n"
    40. "Substitute the given data to solve."
    41. )
    42. print(chain_stats(sample))
    43. # {'steps': 4, 'redundant': 1, 'redundancy': 0.25}

    2.3 Building a Reproducible, Layered Evaluation Scheme

    If an evaluation’s conclusion changes when you switch machines or change a parameter, it has no reference value. It is worth starting from the following five steps.

    Step 1: Layer the question bank

    It is recommended to set at least four levels:

    Level Question type Capability assessed Grading method
    L1 Basic Arithmetic, simple algebra, standard word problems Basic computation, format compliance Exact answer match
    L2 Intermediate Multi-step reasoning, olympiad-style, competition problems Multi-step planning, attention to detail Answer match + key-step check
    L3 Hard Proof problems, open-ended math problems Derivation rigor, strategy, exploration ability Human or symbolic-system verification
    L4 Long-tail Real business math scenarios (e.g., data analysis, financial calculation) Stability, explainability Business-rule validation

    L3 is the key layer that separates “can do problems” from “can perform research-level exploration.” The wide acceptance that “a certain closed-source flagship model is one of the few that can handle open-ended math problems” comes precisely from its clear lead at the L3 layer, while most models remain at L1 and L2.

    Step 2: Fix a unified generation budget

    Reasoning-model behavior is strongly tied to the token budget. The same model may not have room to develop an idea under a 1k-token budget, yet can complete a full derivation under an 8k budget. Recommendations:

    • Fix a “default budget” for the main leaderboard comparison, for example 4k tokens;
    • Additionally record performance at 1k, 2k, 8k, and so on, to observe the “budget–accuracy” curve;
    • Annotate the actual number of output tokens in the report, so that “spending 30k tokens on one problem” is not misread as efficiency.

    Step 3: Multiple sampling and pass@k

    A single run is heavily affected by randomness. Sample each question at least 4 times and report both pass@1 (single-attempt pass rate) and pass@k (the probability of at least one pass within k attempts). pass@1 reflects stability; pass@k reflects the capability ceiling. A large gap between the two is a signal that the model “occasionally gets it right but is not controllable.”

    Step 4: Score the process, not just the answer

    For questions above L2, a “two-track scoring” approach is recommended:

    • Track A: answer correctness (automatic);
    • Track B: process soundness (rules + symbolic tools + human spot-checks).

    Concretely, Track B can hand algebraic transformations in the chain of thought to a symbolic computation library for step-by-step verification, and match assertions in geometric proofs against a theorem library. Portions that cannot be verified automatically should be scored by humans against a unified rubric.

    Step 5: Archive the environment and configuration

    The report should fully record the following so that results can be reproduced: model version, quantization precision, sampling parameters (temperature, top_p, etc.), hardware model, framework version, and batch configuration. A missing item makes the comparison meaningless.

    3. Generation Speed: Throughput, Latency, and How to Correctly Read “How Fast Can It Run on Some Hardware?”

    3.1 Throughput Is Not the Same as Experience

    Community discussions often mention that “some model can reach hundreds or even a thousand-plus tokens per second on a certain card.” Such numbers usually come from peak tests under single-request, short-context, ideal-batching conditions. They reflect the ceiling of the hardware and framework, not the speed users actually perceive.

    Four metrics need to be distinguished:

    • TTFT (time to first token): the time from sending a request to receiving the first token; it determines whether the system “feels laggy”;
    • TPOT (time per output token): the average interval for each subsequent token; it determines whether the system “feels smooth”;
    • System throughput (tokens/s): the total number of tokens the whole system produces per unit time; it determines whether the system “handles concurrency”;
    • P99 latency: the latency ceiling covering 99% of requests; it determines whether the system “collapses at peak times.”

    High single-request throughput often comes at the cost of small batches and low concurrency. Once concurrency rises, queuing, memory pressure, and scheduling overhead quickly push P99 up.

    3.2 Common Factors That Affect Actual Speed

    • Context length: long contexts significantly increase memory usage and attention computation;
    • Chain-of-thought length: reasoning models naturally produce longer outputs, directly lowering effective per-unit-time output;
    • Inference precision: the speed/accuracy trade-off among FP16, INT8, and INT4;
    • Batching strategy: continuous batching can significantly raise system throughput but introduces queuing;
    • Decoding strategy: acceleration methods such as multi-token prediction and speculative decoding yield noticeably different benefits for different workload types.

    Before going live, complete at least the tests in the table below and produce an archivable report:

    Test item Method Metrics to watch
    Single-request benchmark Short prompt, fixed output length TTFT, TPOT
    Concurrency stress test Gradually raise concurrency (e.g., 1/4/8/16/32) Throughput, P99, error rate
    Long-context test 32k/128k context Memory usage, throughput degradation
    Mixed workload Mix short and long requests in proportion Queue time, SLA attainment
    Stability test Run continuously for several hours Memory leaks, service availability

    4. Deployment Economics: How Throughput Translates into “How Much Money Is Saved”

    4.1 From Peak Throughput to Effective Capacity

    Hardware peak throughput cannot be used directly as capacity. In real scenarios, equipment must reserve headroom for traffic fluctuations, failover, and version upgrades. Let:

    • peak system throughput = P (tokens/s);
    • effective utilization (the ratio left after deducting idle time, queuing, and fault redundancy) = U;
    • then effective capacity ≈ P × U.

    Take a rack-scale deployment of high-end accelerators as an example: assume peak throughput on the order of hundreds of tokens/s and effective utilization of 30%, then daily effective output is on the order of tens of millions of tokens. Whether this number is substantial depends on how intensely the business demands tokens.

    4.2 A Complete View of the Cost Side

    The total cost of self-deployment is not just hardware procurement:

    • Capital expenditure (CapEx): servers, accelerators, and networking equipment, amortized over the depreciation period;
    • Operating expenditure (OpEx): electricity, data-center hosting, operations staff, and spare parts;
    • Software and tooling costs: inference framework, scheduling platform, monitoring system;
    • Hidden costs: fault handling, version upgrades, and security/compliance audits.

    Correspondingly, the cost of metered API calls = input-token price × input volume + output-token price × output volume. Because reasoning models produce far more output tokens than ordinary models, the API bill for the same “problem volume” can multiply on a reasoning model.

    4.3 A Simplified Break-Even Calculation

    A common judgment framework is “effective throughput × time = sellable/usable token volume,” then multiply by the API unit price to get an “equivalent API spend,” and compare it with the total self-deployment cost:

    1. # Simplified self-hosting vs. API cost comparison (sample parameters, for method demonstration only)
    2. HOURS_PER_MONTH = 730
    3. def monthly_cost(peak_tps, utilization, hour_cost, api_price_per_1k):
    4. """Estimate the monthly self-hosting cost and the equivalent API spend"""
    5. tokens = peak_tps * 3600 * HOURS_PER_MONTH * utilization
    6. self_hosted = hour_cost * HOURS_PER_MONTH # depreciation + electricity + ops, etc. converted
    7. api_equivalent = tokens / 1000 * api_price_per_1k # API cost for the same number of tokens
    8. return {
    9. "effective_tokens_per_month": round(tokens / 1e9, 2),
    10. "self_hosted_cost": round(self_hosted),
    11. "equivalent_api_spend": round(api_equivalent),
    12. "difference": round(api_equivalent - self_hosted),
    13. }
    14. # peak_tps: peak throughput; utilization: effective utilization; hour_cost: converted total cost per hour; api_price: API price per 1k tokens
    15. result = monthly_cost(peak_tps=300, utilization=0.3, hour_cost=8, api_price_per_1k=0.02)
    16. print(result)

    It must be emphasized that the parameters above are illustrative. A real calculation must replace them with your own hardware’s actual purchase price, local electricity rates, labor costs, and the business’s true call volume—otherwise the conclusion is meaningless.

    4.4 A Frequently Overlooked Angle: The “Scale Leverage” of Self-Deployment

    Beyond the community claim that “a Chinese model has been pushed to extremely high speeds on high-end hardware,” there is another layer of meaning: once a single device’s inference capacity reaches a certain scale, the value that self-deployers gain—whether enterprises building their own infrastructure, regional compute centers, or platforms offering external services—goes well beyond “saving the official API fees.” The reasons:

    • Per-unit inference cost falls as it is amortized over scale, and marginal cost decreases;
    • Service pricing can be designed flexibly, enabling a second round of monetization as “inference-as-a-service”;
    • Data staying within its own domain and customizable models are naturally attractive to industries such as finance, government, and healthcare.

    This also explains why a drop in inference-side cost often reshapes the industry landscape more than making the model itself “a little stronger.”

    5. Practical Recommendations: A Deployable Decision Process

    5.1 Selection Phase: Define the Scenario Before the Model

    1. Clarify the task distribution: is it high-frequency simple Q&A, or low-frequency high-difficulty analysis?
    2. Build your own evaluation set: sampled from real business logs, covering L1–L4;
    3. Run a three-dimensional “budget–accuracy–latency” curve rather than a single-point benchmark;
    4. Include inference efficiency (redundancy, pass@1) in the scoring weights.

    5.2 Deployment Phase: Validate at Small Scale, Then Ramp Up

    • First complete functional validation and stress testing on a single node;
    • Observe P99 under long contexts and mixed workloads;
    • Set clear scale-up trigger conditions (e.g., P99 exceeding a threshold, queue wait exceeding a timeout).

    5.3 Operations Phase: Monitor Continuously, Tune Dynamically

    • Monitor TTFT, TPOT, P99, error rate, and memory usage;
    • Route by business value: send simple requests to small models and complex requests to reasoning models;
    • Periodically revisit the cost model to avoid “parameters changed but the bill was not recalculated.”

    6. Conclusion

    Back to the original question: how do you evaluate a model?

    • On capability, distinguish the three levels of “can solve,” “explains correctly,” and “thinks efficiently”;
    • On speed, measure peak throughput and actual user experience separately;
    • On value, put hardware capacity, effective utilization, and business demand together and add up the full bill.

    Generational differences in model capability objectively exist, and the advantages of reasoning models on hard tasks like math have been widely validated. But more meaningful than “who is first” is building an evaluation system suited to your own scenario: measure capability with a layered question bank, measure economics with efficiency metrics, and measure stability with stress-test data. Once this system is running, every decision in selection, deployment, and operations shifts from “I heard it is very strong” to “backed by data.”