How to Evaluate and Choose New LLMs: A Practical Guide for Developers
Every new large language model release comes with parameter counts, benchmark rankings, and pricing—but none of these numbers alone answers the real question: can the model handle your tasks reliably at an acceptable cost? This guide walks through how to interpret total vs. active parameters in MoE models, how to read benchmarks critically, how to calculate per-task cost instead of per-token price, the engineering techniques behind cheaper inference, and how to build a minimal evaluation pipeline on your own data.
1. After a New Model Launch, Ask the Right Questions First
Every few weeks, a new large language model is released. Launch announcements typically highlight parameter counts, benchmark rankings, and pricing, and it’s easy to get anchored on one or two of those numbers. The real question is: can this model reliably complete the tasks my business needs, in my specific scenarios, at an acceptable cost? Structuring your evaluation around that question is far more effective than chasing leaderboard updates.
Before evaluating anything, clarify three things: the type of tasks (code generation, document understanding, customer support Q&A, structured extraction, etc.), your latency and throughput requirements, and the maximum acceptable cost per task. Once these are defined, parameters, benchmarks, and pricing finally have a frame of reference.
2. Understanding Parameters: Total vs. Active
Model size is often described with two numbers: total parameters and active parameters. They mean different things.
Total parameters determine the model’s knowledge capacity—and the GPU memory required for deployment. Active parameters refer to how many parameters actually participate in computing each token.
In Mixture of Experts (MoE) architectures, the network consists of multiple expert sub-networks, and a routing module selects only a few experts to process each token. This allows the model to retain large total capacity while the compute per inference resembles that of a much smaller dense model.
This has two engineering consequences:
- Memory footprint is still determined by total parameters—fewer active parameters do not lower the deployment barrier.
- Per-token compute is determined by active parameters, so inference speed and per-call cost can be significantly lower than a dense model of the same total size.
The following code estimates the ratio between the two (values are illustrative only):
def active_ratio(total_params_b: float, active_params_b: float) -> float:"""Return the fraction of active parameters over total parameters,a rough measure of sparsity."""if total_params_b <= 0:raise ValueError("Total parameters must be positive")return active_params_b / total_params_b# Example: 100B total parameters, 10B active parametersprint(f"Active ratio: {active_ratio(100, 10):.1%}") # Output: 10.0%
A lower ratio means a sparser model. But the ratio alone does not equate to quality or speed—you also need to consider routing efficiency, actual hardware, and the inference framework.
3. How to Read Benchmarks
Leaderboards are useful for quick filtering, but a single score has limited explanatory power. When reading benchmark results, keep the following in mind.
3.1 Understand What Each Metric Measures
Different evaluation suites measure very different capabilities. Code generation benchmarks focus on pass rates, agentic benchmarks on multi-step task completion, and composite indices are weighted aggregates of multiple sub-tests. How the weights are assigned often determines the ranking itself.
3.2 Beware of Equal Scores at Different Costs
Two models with the same score on a benchmark do not cost the same to use. At equal scores, final spending is determined jointly by tokens consumed per task, number of API calls, and unit pricing. When comparing, always record both the score and the cost.
3.3 Mind the Gap Between Benchmarks and Your Business
Public evaluation sets may differ substantially from your business data distribution, and there is a risk of overlap with training data. Leaderboards indicate a model’s approximate level, but they cannot replace validation on real data.
4. Cost: From Unit Price to Per-Task Cost
API pricing is typically billed per million input and output tokens. A low unit price does not guarantee a low total cost, because the number of tokens a task requires matters just as much.
Per-task cost can be estimated as:
Per-task cost = input tokens × input price + output tokens × output price + overhead from retries and tool calls
def task_cost(input_tokens: int, output_tokens: int,price_in_per_m: float, price_out_per_m: float,retry_rate: float = 0.0) -> float:"""Estimate per-task cost (same unit as the prices).retry_rate is the average retry fraction."""base = (input_tokens * price_in_per_m + output_tokens * price_out_per_m) / 1_000_000return base * (1 + retry_rate)# Example: 3000 input tokens, 800 output tokens, illustrative pricescost = task_cost(3000, 800, price_in_per_m=1.0, price_out_per_m=4.0, retry_rate=0.05)print(round(cost, 6))
Two caveats:
- Limited-time discounts only reflect pricing during a specific window. Run your estimates at the discounted price, but also calculate the cost after it reverts to the standard price—both should go into your budget.
- If two models differ significantly in unit price, but one completes the same task with fewer reasoning steps, the overall cost gap narrows.
5. The Engineering Behind Lower Inference Costs
Falling inference costs usually come from several common techniques:
- Sparse activation: as described above, only some experts or parameters are computed, reducing per-token compute.
- Quantization: representing weights or activations at lower precision to reduce memory footprint and bandwidth pressure.
- KV cache optimization: compressing or reusing attention caches to support longer contexts and higher concurrency.
- Batching and scheduling: continuous batching and similar methods to improve accelerator utilization.
- Speculative decoding: a small model proposes candidate tokens that the large model verifies in parallel, reducing generation latency.
These methods are widely used across the industry. During evaluation, treat them as engineering claims that need to be verified through your own measurements, not descriptions to take at face value.
6. Build Your Own Evaluation Pipeline
The most reliable basis for model selection is results on your own data. A minimal viable evaluation pipeline includes these steps:
- Assemble a test set: extract 100–300 samples from real business data, covering common and edge cases, with expected outputs labeled.
- Standardize prompts and parameters: use identical prompts, temperature, and max output length to keep the comparison fair.
- Record multiple metrics: quality scores, latency percentiles, token usage, and failure rates.
- Manual spot checks: human review for samples that automated scoring cannot judge.
- Analyze the quality–cost relationship: plot quality against per-task cost to find the best price-performance range.
Below is a simplified evaluation framework example; the call functions should be replaced with wrappers around the actual APIs:
import timefrom statistics import mediandef run_eval(samples, call_model, judge):results = []for item in samples:start = time.perf_counter()output, usage = call_model(item["prompt"]) # Returns text and token usagelatency = time.perf_counter() - startscore = judge(output, item["expected"]) # Returns a score from 0 to 1results.append({"score": score,"latency": latency,"input_tokens": usage.get("input_tokens", 0),"output_tokens": usage.get("output_tokens", 0),})return {"avg_score": sum(r["score"] for r in results) / len(results),"p50_latency": median(r["latency"] for r in results),"total_tokens": sum(r["input_tokens"] + r["output_tokens"] for r in results),"results": results,}
With this pipeline in place, every new model release becomes a routine rerun of the same test set—turning model selection from a reactive, headline-driven exercise into a repeatable engineering process grounded in your own quality and cost data.
