Large Language Model Selection and Capability Evaluation: A Practical Guide
This guide offers an engineering-oriented framework for choosing and evaluating large language models (LLMs). It explains why raw parameter counts don't determine real-world capability, how token-based pricing works and how to turn "expensive or not" into a concrete cost calculation, how to weigh open-source self-hosted models against closed-source APIs, and how to build a private evaluation set with multi-dimensional scoring, consistency testing, and load testing. It closes with a practical decision checklist for making data-driven, reproducible selection decisions that fit real business needs.
Introduction: A Rational Reset Behind the Model “Arms Race”
Whenever a new generation of ultra-large models is released, the technical community tends to argue about two things: whether it can restore the reputation of locally developed models, and whether it’s worth the price. Look closely at these debates and you’ll notice something counterintuitive: much of the criticism isn’t really about the model’s capabilities—it’s about the subjective feeling that it’s “too expensive.” Yet when you actually run the numbers, you often reach the opposite conclusion: the price per unit is actually falling. This shows that judging a model purely by impression easily leads to conclusions that contradict the facts.
For large language models (LLMs), the rational approach is to break “evaluation” down into a quantifiable, reproducible engineering assessment system. This article isn’t about any specific product; instead, it lays out a methodology for model selection and capability evaluation from a general technical perspective.
1. Parameter Count Isn’t the Same as Real Capability
Earlier this year, when a model billed as “the world’s first open-source model at the trillion-parameter scale” was released, parameter count briefly became its biggest selling point. But engineering practice has repeatedly shown that total parameter count is a necessary but not sufficient condition for capability.
Factors that determine a model’s actual performance include at least:
- Data quality and mix: The composition of high-quality instruction-tuning data, code corpora, and multilingual corpora often matters more than raw parameter count.
- Architecture design: Attention mechanisms, the routing strategy of Mixture-of-Experts (MoE), positional encoding schemes, and similar choices all significantly affect how efficiently available compute is used.
- Training and alignment strategy: Whether the model has gone through high-quality human-preference alignment (RLHF-type methods) directly determines how “usable” it is on real tasks.
Take the MoE architecture as an example: in a single forward pass, a “3-trillion-parameter” model may activate only a small subset of its expert networks, so its actual compute cost is closer to that of a mid-sized dense model. So whenever you see a “total parameter count,” always ask: How many parameters are activated? What is the real compute cost during inference?
2. Understanding Token Pricing: Turning “Expensive or Not” into Arithmetic
“Expensive” is the easiest dimension to misjudge. To assess cost objectively, you first have to understand the basic mechanics of API pricing.
Mainstream LLM services bill by token. A token is the smallest unit into which the model splits text; a Chinese character, an English word, or a symbol may be split into one or several tokens. Billing usually distinguishes between:
- Input tokens (prompt): what you send to the model;
- Output tokens (completion): what the model generates, usually at a higher unit price.
The key point is that the total cost of a task depends on the actual number of input and output tokens, not just the listed price per million tokens. A model with a higher unit price may end up with a lower final bill if its stronger capabilities sharply reduce retries and shorten outputs.
Here’s a snippet of illustrative code showing how to estimate the cost of a single call:
def estimate_cost(input_tokens: int,output_tokens: int,input_price_per_mtok: float, # price per million input tokensoutput_price_per_mtok: float) -> float:"""Estimate the cost of a single request.price_per_mtok should use the same unit shown in your cloud provider's console."""input_cost = input_tokens / 1_000_000 * input_price_per_mtokoutput_cost = output_tokens / 1_000_000 * output_price_per_mtokreturn input_cost + output_cost# Example: summarizing a long documentcost = estimate_cost(input_tokens=8000,output_tokens=600,input_price_per_mtok=20.0,output_price_per_mtok=40.0,)print(f"Estimated cost for this request: {cost:.4f}")
For high-frequency workloads, it’s worth going further and estimating the total monthly cost, while also factoring in “input-side optimization” (prompt trimming, context truncation, cache reuse, and so on). These engineering measures often affect the bill more than differences in the listed price itself.
3. Choosing Between Open-Source and Closed-Source Models
Discussion around “open-source LLMs” is intense, but selection shouldn’t be driven by the “open-source” label. The core difference between the two isn’t absolute capability—it’s control and flexibility.
| Dimension | Closed-source API model | Open-source self-hosted model |
|---|---|---|
| Upfront cost | Low (pay as you go) | High (requires your own compute) |
| Data control | Depends on the vendor | Fully self-controlled |
| Elastic scaling | Inherently elastic | Requires building your own cluster |
| Fine-tuning freedom | Limited | High |
| Operational burden | Low | High |
Recommendations:
- Sensitive data, stable and large call volume: Self-hosting an open-source model can achieve a lower marginal cost by amortizing fixed costs.
- Highly variable demand, need to launch fast: Managed APIs are more cost-effective, and you can use a cloud platform’s general-purpose capabilities—such as container services, object storage, logging services, and monitoring and alerting—to quickly build an elastic architecture.
4. How to Scientifically Evaluate Model Capability
Setting aside marketing language, engineering practice lets you build an objective picture through the following methods:
- Build a private evaluation set: Draw representative samples from real business scenarios, covering edge cases and hard cases. This is far closer to your actual use case than any public leaderboard.
- Multi-dimensional scoring: Evaluate accuracy, instruction-following, structured-output stability, long-text consistency, multilingual and coding ability, and so on, separately.
- Stability and consistency testing: Call the same input multiple times and observe the variance in outputs to assess predictability in production.
- Latency and throughput load testing: Under concurrent load, measure time to first token (TTFT) and tokens per second (TPS).
A simplified evaluation loop looks like this:
def evaluate_model(call_fn, test_cases):"""call_fn: a wrapped model-calling function; test_cases: your private evaluation set"""results = []for case in test_cases:output = call_fn(case["prompt"])score = case["scorer"](output, case["expected"])results.append(score)return sum(results) / len(results) # return the average score# Key: the scorer should be defined by the business team to ensure evaluation criteria align with real needs
5. A Decision Checklist for Implementation
Bringing these dimensions together, here’s a suggested decision order:
- Define the scenario first, then pick the model: Clarify the task’s input/output characteristics, accuracy requirements, and latency constraints.
- Use formulas, not feelings, for cost: Plug the unit price, input/output token volume, and retry rate into the calculation together.
- Validate in small steps, roll out gradually: First shortlist candidate models with your private evaluation set, then validate real performance with a small-traffic canary.
- Decouple the architecture: Abstract a unified model-calling interface in your business code to avoid deep lock-in with a single vendor, preserving the ability to switch and fail over.
Conclusion
Judging whether an LLM is “good” or “worth it” is fundamentally an engineering problem, not an emotional one. Parameter count, token cost, open source vs. closed source, capability evaluation—every dimension should be examined within a quantifiable, reproducible framework. Once a team builds a data-backed selection method, it can step out of the “expensive is the original sin” cognitive trap and make technical decisions that genuinely fit business needs. On cloud platforms such as Baidu AI Cloud, you can typically combine general-purpose capabilities like container platforms, monitoring and alerting, and logging services to provide a solid engineering foundation for the evaluation and canary-rollout processes described above.
