LLM Model Selection and Inference Performance Evaluation: A Practical Guide
This guide reframes large language model selection as an engineering problem rather than a leaderboard ranking exercise. It explains how to tier workloads into divergent, execution, and high-stakes reasoning tasks, translate speed into measurable metrics such as TTFT, TPS, P95 latency, throughput, success rate, and cost per successful task, and build a minimal benchmarking loop with automated validators. It also covers verifiable reasoning evaluation, roofline-based throughput estimation, deployment trade-offs between self-hosted and cloud inference, common pitfalls, and a quarterly review checklist. Readers will learn how to turn model selection from an opinion-based debate into a repeatable lookup against fixed evaluation criteria.
1. Reframing the Problem: From Model Benchmarks to Engineering Selection
In algorithm communities, the most common discussion format is a horizontal scorecard: which model is stronger, and where does it rank. Moving that logic straight into production usually causes problems, because leaderboards measure single-turn, single-sample, unconstrained answering ability, while engineering systems care about end-to-end task completion rate under a given latency budget, concurrency level, and unit cost. These are not the same objective function.
A more reliable approach is to restate the problem as an engineering one: from a set of candidate models, find the combination for each task category that meets the quality threshold at the lowest unit cost. The feeling in the original discussion that “it is hard to find a scenario where a specific model is absolutely required” is essentially a symptom of skipping task tiering during selection. Pushing all requirements onto one strongest model naturally makes the system both expensive and slow.
2. Step 1: Tier the Tasks, Not the Model Ranking
Start by splitting the business workload into three categories, then set a separate evaluation standard for each.
- Divergent tasks: brainstorming, naming, first-draft proposals, copy variations. These value semantic diversity and instruction following, place looser demands on factual accuracy, and can tolerate the variance introduced by higher-temperature sampling.
- Execution tasks: code generation and refactoring, structured extraction, format conversion, batch summarization, AI agent tool calls. These value format compliance rate, parseability, first-pass rate, and output per unit time.
- High-stakes reasoning tasks: formal proofs, complex mathematical derivations, long-chain causal analysis, compliance judgments. These value verifiability of conclusions, internal consistency of the reasoning chain, and detectability of errors.
The direct payoff of tiering is that divergent tasks can go to lighter, faster configurations; execution tasks should prioritize throughput; only high-stakes reasoning tasks justify paying the most expensive inference budget. Many teams lose control of cost precisely because they spread the budget for the third category across all traffic.
3. Step 2: Translate “Speed” into Measurable Engineering Metrics
The original discussion mentioned that a certain class of models is “nearly several times faster.” That kind of subjective impression must be converted into metrics before it can enter a decision. Collect the following quantities on a fixed basis:
TTFT Time to first token (drives interactive feel)TPS Output rate per request (drives long-form experience)P95 latency Tail latency (determines whether an SLA can be promised)Throughput Total output tokens per unit of compute / per GPU-hourSuccess rate Share passing format compliance + business validationUnit cost Cost per thousand successful tasks, not price per million tokens
The key point is the denominator: use the number of successful tasks rather than the number of calls. A cheap configuration that succeeds only after three retries may cost more in reality than an expensive one that passes on the first attempt. Build a minimal benchmarking loop:
def bench(cfg, tasks, n=30):ok, ttft, tps = 0, [], []for t in tasks:r = call_model(cfg, t) # Unified wrapper that hides vendor differencesttft.append(r.first_token_ms)tps.append(r.output_tokens / (r.total_ms / 1000))ok += validate(r.text, t) # Business-side validation, not visual inspectionreturn {"pass_rate": ok / len(tasks),"p95_ttft": pct(ttft, 95),"median_tps": median(tps)}
Run all candidates through the same task set, the same validation functions, and the same concurrency gradient (for example 1/8/32/128) before conclusions become comparable.
4. Step 3: Separate “Answering Ability” from “Verifiable Reasoning Ability”
Evaluating high-stakes reasoning tasks is the most easily polluted by subjective impressions. The reliable approach is to keep only automatically verifiable items: formal propositions, derivations with a unique solution, code that can be checked by unit tests. Scoring ignores writing style and looks only at whether the verifier passes and how much inference budget was consumed to reach the answer.
Also watch for two kinds of bias. The first is “memory leakage”: if an item has a ready-made answer retrievable from public material, the test measures retrieval memory rather than reasoning. The second is “length preference”: a longer reasoning chain does not mean a more correct one, and long chains amplify the probability of mid-course drift. Record both the verification pass rate and the average inference consumption, then plot a “quality-budget” curve, find the inflection point where marginal returns start to flatten, and use that point as the default tier for high-stakes tasks.
5. Step 4: Throughput, Deployment Shape, and Compute Reality
Treat the claim that “a single rack can push a certain model to hundreds of TPS” as a hypothesis to be verified, not a conclusion. A reusable judgment framework is to do a rough estimate with roofline thinking first: the decode stage is constrained by memory bandwidth, so the theoretical ceiling is roughly “memory bandwidth divided by the bytes of weights and cache that must be read per token”; then multiply by the reuse gains from batching to get an optimistic upper bound, and finally calibrate with measurements.
Single-stream ceiling ≈ Memory bandwidth / (Weight bytes + KV Cache bytes)Cluster throughput ≈ Single-stream ceiling × Effective concurrency × Parallel efficiency (0.4~0.8)
KV Cache grows linearly with context length and concurrency, so long-context scenarios are often the real bottleneck. On deployment shape, self-hosted inference fits scenarios with stable traffic, controllable context, and a need to keep data within a boundary. Building an elastic inference layer with general-purpose cloud container platforms, object storage, logging services, and monitoring and alerting fits teams with highly variable traffic and a need to iterate quickly. It is worth stressing that the economics of self-hosting depend on utilization: at low utilization, self-hosting is almost certainly more expensive than on-demand calls.
6. Common Pitfalls
- Replacing a business validation set with leaderboard rankings, causing format compliance to collapse after launch.
- Comparing only unit price and not success rate, ignoring the hidden cost of retries and manual rework.
- Setting the strongest model as the global default, with no fallback path that routes by task.
- In long-context scenarios, looking only at window size without a caching and truncation strategy, leaving tail latency uncontrollable.
- Lacking a rollback-capable abstraction layer, so every model upgrade forces changes to business code.
7. Implementation Checklist
- Build a business task set of 100-300 items with automated validation, covering all three workload categories.
- Wrap the call layer uniformly for candidate configurations to hide interface differences and make horizontal swapping easy.
- Benchmark across the concurrency gradient and produce five tables: TTFT, TPS, P95, success rate, and unit cost per success.
- Plot a separate “quality-budget” curve for high-stakes reasoning tasks to set the default tier and the conditions that trigger an upgrade.
- Ship task-routing and fallback policies at launch, and connect monitoring, alerting, and log retention.
- Re-evaluate quarterly, because both models and compute prices change fast, and today’s conclusion may not hold next quarter.
The conclusion is that the endpoint of model selection is not finding a name that is “strongest,” but building a sustainable mechanism for repeated evaluation and benchmarking. Once tiering, metrics, verifiers, and cost accounting are fixed, selection turns from an argument into a lookup.
