How to Evaluate and Select General-Purpose LLMs: A Practical Guide for Deployment
A practical framework for evaluating and selecting general-purpose large language models. Learn how to combine public benchmarks, dimension-specific testing, unit cost per successful task, Chinese-language scenarios, and engineering readiness into a reproicable decision process—turning "which model is best" into a verifiable selection question.
A Practical Guide to Evaluating and Selecting General-Purpose LLMs for Deployment
When someone asks, “What are the three best general-purpose LLMs this year?” a fixed list is usually not a reliable answer. The problem isn’t that benchmarks are useless—it’s that “best” lacks a shared definition: knowledge QA, code generation, agent planning, math reasoning, terminal operations, and long-document understanding place entirely different demands on a model. The same model can perform dramatically differently under different prompts, toolchains, versions, and budgets. A more robust approach is to reframe “which model is best” as “which three candidates most deserve validation under a given set of business constraints.” This article presents an evaluation, cost-accounting, and selection methodology for developers and enterprises—combining public leaderboards, per-dimension capabilities, unit task cost, Chinese-language scenarios, and engineering usability into a reproducible decision process.
1. Turn “Best” Into a Verifiable Selection Problem
The first step isn’t reading leaderboards—it’s defining your business tasks and hard constraints. Break candidate scenarios into observable workloads: knowledge retrieval QA, structured extraction, report generation, code completion and repair, terminal command execution, multi-step agent planning, multi-turn customer service, long-document summarization, and math/science problem solving. Each workload needs its own test sets and acceptance metrics. For example, knowledge QA cares most about factual consistency, verifiable citations, and refusal boundaries; coding tasks care about patch correctness, unit-test pass rate, environment awareness, and rollback safety; agent tasks care about task decomposition, tool selection, state tracking, error recovery, and per-task cost.
Second, separate hard gates from soft metrics. Hard gates typically include data security and compliance, deployment model, context length, latency ceilings, concurrency and throughput, content safety policy, audit logging, permission isolation, and replaceability. Soft metrics include overall quality, per-dimension scores, unit task cost, long-term stability, naturalness of Chinese output, and ecosystem compatibility. Models that fail a hard gate should not enter weighted scoring—otherwise high composite scores can mask serious engineering risks.
Third, accept that “three candidates” doesn’t mean “an absolute top three.” A more reasonable interpretation: select one candidate each under three strategies—quality-first, cost-first, and balanced deployment. This preserves technical foresight while preventing a single leaderboard from becoming a procurement conclusion.
2. Layer the Evaluation: Use Public Leaderboards Only as a First Screen
Public leaderboards work for initial screening, not final decisions. They typically report composite scores, per-dimension leading items, specialized test results, and cost profiles—but with common biases: test sets may overlap with training data; prompts and tool-calling conventions significantly affect results; scoring units and difficulty across tasks can’t simply be summed; leaderboard conclusions drift after model version updates; and high-scoring models may still be unstable on real-world long-tail samples. A layered evaluation is recommended:
- Public leaderboard screening. Focus on composite scores, per-dimension strengths, specialized scenario results, and unit task cost to narrow the candidate pool to a manageable size. Keep healthy skepticism toward both “overall #1” and “category #1,” and check whether the benchmark conditions resemble your own scenarios.
- Private evaluation re-screening. Stratified sampling from real business traffic to build a golden set, a long-tail set, an adversarial set, and a safety-refusal set. The golden set measures baseline correctness; the long-tail set exposes boundary conditions; the adversarial set tests prompt injection, ambiguous inputs, and misleading information; the safety-refusal set verifies whether the model reasonably declines or asks for clarification when uncertain.
- Online canary validation. Run small-traffic A/B tests, shadow traffic, or human review to evaluate business metrics: task success rate, manual rework rate, average handling time, cost per successful task, user satisfaction, and error rate. Production data is the final evidence.
Test sets should be versioned. Any change to a model, prompt, tool configuration, or safety policy should trigger regression testing—so a one-off impressive demo is never mistaken for a stable capability.
3. Break Capabilities Into Fine Dimensions—Don’t Let Composite Scores Hide Weaknesses
Composite scores are for ranking; per-dimension scores explain why. Cover at least the following dimensions, each with a repeatable test method.
| Dimension | What to Observe | Suggested Metrics |
|---|---|---|
| Factual reliability & hallucination control | Grounded answers, awareness of known vs. unknown, refusal when evidence is insufficient | Factual consistency rate, verifiable citation rate, unsupported-claim rate, reasonable refusal rate |
| Agent task planning | Task decomposition, tool selection, state tracking, error recovery, step redundancy | Task success rate, average steps, recovery success rate, unit task cost |
| Coding & terminal tasks | Code correctness, patch completeness, environment awareness, command safety, context usage | Unit-test pass rate, patch application success rate, rollback success rate, dangerous-command interception rate |
| Math & science reasoning | Multi-step derivation, symbolic computation, unit consistency, numeric verification | Answer accuracy, verifiable reasoning steps, boundary-condition coverage |
| Instruction following & structured output | Format constraints, field completeness, multi-turn consistency | Format compliance rate, missing-field rate, retry rate |
| Long context & RAG | Long-document localization, cross-paragraph citation, noise robustness | Key-info recall rate, citation accuracy, context cost |
| Chinese & localization | Terminology accuracy, mixed Chinese-English, tone and style consistency | Human scoring, terminology consistency, rewrite acceptance rate |
| Security & compliance | Permission boundaries, sensitive data handling, content safety | Violation rate, privilege-escalation interception rate, audit completeness |
For hallucination control, don’t just measure how often the answer is right—check whether the model fabricates supporting evidence. For agent planning, don’t stop at the final answer: verify that steps are auditable, failures are recoverable, and expensive tools aren’t repeatedly invoked. Coding tasks should run in isolated environments, validating that patches apply cleanly, tests pass, and commands are safe. Math and science reasoning should include multi-step problems, unit conversions, and counterexample checks—not just final numbers. For Chinese scenarios, pay special attention to technical terminology, mixed Chinese-English instructions, punctuation and formatting, and naturalness of expression in local business contexts.
4. From Per-Token Pricing to Cost per Successful Task
Many selection discussions compare only input/output unit prices, but what enterprises actually pay is the cost of completing a qualified task. A better metric is cost per successful task:
Cost per successful task =(input cost + output cost + tool-call cost + retry cost + human-review cost)/ number of successful tasks
This formula is a useful reminder: a cheap model with high retry rates and heavy manual rework may cost more overall; a strong model with high first-pass success and few tool calls may actually be cheaper. Also factor in latency and throughput, since waiting time degrades user experience and human productivity. For high-concurrency workloads, use tiered routing: route simple tasks to low-cost models, escalate complex tasks to high-capability models, and trigger fallback plus human handling on failures.
for candidate in candidates:if not meets_hard_constraints(candidate):continuequality = 0.30 * grounded_score+ 0.20 * planning_score+ 0.20 * coding_score+ 0.15 * reasoning_score+ 0.15 * instruction_scorecost_per_success = total_cost(candidate) / success_count(candidate)score = quality - lambda * cost_per_successrecord(candidate, quality, cost_per_success, score)
Don’t copy these weights—derive them from business goals. Customer-service scenarios should weight latency and cost more heavily; coding platforms should weight patch correctness and safety; research-assistant scenarios should weight reasoning and citations. The key is fixing the weights, test sets, and formulas before selection begins, so scores aren’t retroactively tuned for a favorite candidate.
5. Chinese-Language and Agent Specialization: Turn Demos Into Reproducible Metrics
The difficulty in Chinese scenarios isn’t fluency—it’s terminology, context, and format constraints. Testing should include real business documents, mixed Chinese-English instructions, table extraction, long-document summarization, and multi-turn follow-up questions. For agent and terminal-coding scenarios, validate file operations, command execution, error handling, and permission boundaries inside an isolated sandbox. Metrics should include task success rate, unit task cost, average steps, dangerous-command interception rate, and failure recovery rate. Publicly available global benchmarks can serve as a sanity check, but verify that version timing, evaluation language, tool permissions, and billing methodology are consistent—never stitch together rankings made under different methodologies into one conclusion.
6. Engineering Deployment: Evaluation, Observability, Canary, and Fallback Are All Mandatory
Selection isn’t a one-time evaluation—it’s a continuous loop. Version everything: test sets, prompts, model versions, tool configurations, and safety policies, with a model registry and regression-test pipeline. In production, log request traces, latency, token usage, tool calls, failure causes, and human feedback to build observable metrics. On the security side, set up input/output guardrails, permission isolation, sensitive-data masking, sandbox execution, and audit logs. On the engineering side, prepare timeout retries, degraded routing, human takeover, and model fallback.
In a general cloud environment, you can store test sets and model metadata in object storage, record call traces with a logging service, track success rate, latency, and error rate via monitoring and alerting, and run reproducible evaluation jobs on a container platform. For example, Baidu AI Cloud offers general-purpose categories—object storage, logging, monitoring/alerting, and container platforms—that map to these needs; specific specifications and pricing should follow the official documentation and your own testing. Whatever infrastructure you use, keep the evaluation environment as close to production as possible—avoiding “great offline scores, unusable in production.”
7. Produce a Decision Table, Not a Fixed List
The final artifact should be a decision table: candidate models, hard-gate results, per-dimension scores, cost per successful task, latency, security conclusions, canary results, and risk notes. A workable flow: hard-gate filtering → weighted per-dimension scoring → small-traffic canary → business review → confirm three candidate roles. The usual three roles are quality-first, cost-first, and balanced; for highly vertical businesses, add a task-specialized candidate.
Common pitfalls to avoid: relying solely on composite leaderboards; substituting a few demo prompts for systematic evaluation; ignoring retry and human-review costs; conflating Chinese and English benchmark results; failing to record model versions, making results irreproducible; and copying public rankings directly into procurement conclusions. Dependable conclusions come from an evidence chain where constraints are explicit, tests are reproducible, costs are accountable, and production is observable. The “three best general-purpose LLMs this year” are ultimately the three candidates that fit your business constraints—not a fixed ranking abstracted from any real scenario.
