LLM Selection in Practice: From Benchmarks to a Production-Ready Evaluation System

    Public leaderboards are no longer a reliable basis for choosing large language models. This article explains why benchmark scores can mislead, outlines four evaluation dimensions for agentic workloads, compares cloud API and local deployment costs, and presents a four-step process for building a business-specific evaluation system—from task set construction and controlled experiments to quality-cost scoring and canary validation.

    LLM Selection in Practice: From Benchmarks to a Production-Ready Evaluation System

    Why Choosing Models by Leaderboard Is Increasingly Unreliable

    Large language models are iterating faster than ever. It is now common for two vendors to release new versions on the same day, and community debates over “which one is stronger” have become routine. But if you base model selection on a few public leaderboard scores, you will often reach conclusions that contradict real-world usage. There are three reasons.

    1. Evaluation conditions are opaque and hard to align. When different teams run the same type of evaluation, they may use different agent frameworks, context lengths, reasoning intensity (such as thinking budget), sampling counts, and anti-cheating rules. For the same task, allowing a model to retry three times versus only once can produce a very large difference in score. Discussing scores without these conditions is like discussing performance test results without the experimental environment.

    2. Leaderboard scores are misaligned with business scenarios. Public evaluations usually select tasks with high discriminative power, while real enterprise task distributions are often more vertical and long-tailed. A model that leads by a few points on general coding tasks is not necessarily ahead on your company’s legacy system refactoring tasks.

    3. Average scores hide differences in capability structure. Two models may differ by only a fraction of a point across four simple averaged evaluations, yet their capability profiles may be completely complementary: one excels at engineering changes within an existing codebase, while the other excels at building a complete project from scratch. The essence of model selection is matching capability structure to business structure, not choosing the highest total score.

    A rational approach is therefore to treat public benchmark scores as an initial screening signal and then use a self-built evaluation system for final review.

    Four Evaluation Dimensions That Matter in Agentic Scenarios

    The focus of model capability competition has shifted from single-turn question answering to long-horizon agent tasks. The following four dimensions cover the core chain of agent deployment and should be included in a self-built evaluation.

    1. Engineering capability in real code repositories. This means understanding project structure in an existing large codebase, locating defects, making cross-file changes, and passing validation. It tests long-term software engineering literacy: whether the model can build correct contextual understanding across hundreds of thousands of lines of code, rather than merely writing standalone functions. For teams maintaining legacy systems, this is the most critical capability.

    2. Generating a complete project from natural language requirements. Given a business requirement description, the model must complete directory design, multi-file collaboration, dependency organization, and ensure the project runs. The difference from the previous dimension is “zero-to-one” versus “modifying under existing constraints.” They test different points, and weight should be assigned according to the team’s actual work composition.

    3. Tool-call orchestration and error correction. An agent needs to select the correct tool from a toolset, call tools in a reasonable sequence, and adjust its strategy after a failed call. This capability directly determines agent reliability in real production environments and is the root cause of many cases where “the demo is impressive but production fails.”

    4. Cross-industry long-horizon professional tasks. These simulate real workplace tasks: operating a computer across applications, planning over long cycles, and delivering results according to standards. Such evaluations are the hardest to game because they test the closed loop of planning, execution, and verification, and best reflect a model’s overall level.

    When interpreting results from this type of evaluation, focus on three points: whether the absolute score gaps are significant (a few points may be within the error range); whether the model’s strengths match your business; and whether the evaluation declares its runtime conditions and anti-cheating measures.

    Cost: Cloud API Calls vs. Local Deployment

    Beyond capability, cost is the other half of model selection and should be evaluated along two paths.

    Path 1: Cloud API calls. Focus on three metrics: unit token price, billing discounts for cache hits, and whether batch tasks have tiered pricing. Note that newly released models often do not publish pricing immediately, and in high-intensity usage scenarios, price differences can be significantly amplified. Also evaluate whether rate-limiting policies and concurrency quotas meet business peaks. If you adopt a multi-model mixed architecture, such as using a small model for simple tasks and a large model for complex tasks, model and measure each separately. Major cloud platforms offer model-serving and LLM platform products; billing rules and quota details are available in their consoles, and load testing can further validate performance.

    Path 2: Local deployment. The core task is estimating resource usage. A general estimation method is:

    1. # Rough estimate of quantized model weight footprint (illustrative only)
    2. def estimate_model_size(params_billion: float, bits: int) -> float:
    3. """params_billion: parameter count in billions; bits: quantization bit width
    4. Returns: model weight footprint in GB"""
    5. bytes_per_param = bits / 8
    6. return params_billion * bytes_per_param # 1B parameters at a given bit width roughly equals this number of GB
    7. # Example: a model with tens of billions of parameters, 4-bit quantization
    8. print(estimate_model_size(100, 4)) # about 50 GB of weights

    Actual deployment also requires reserving KV cache, activations, and runtime overhead beyond the weights. It is usually recommended to reserve 1.2x to 1.5x the weight footprint. The longer the context and the higher the concurrency, the larger the share of KV cache. Also consider differences in deployment difficulty and inference framework adaptation across model sizes—smaller models often have more mature community ecosystems and more readily available quantized versions, which is why many teams ultimately choose the latter between a “flagship large model + sub-flagship small model” combination.

    Building an Evaluation System for Your Own Business

    Public evaluations can only complete initial screening; final decisions should rely on self-built evaluation. A four-step process is recommended.

    Step 1: Build a business task set. Extract 50 to 200 representative tasks from real tickets, code review records, and customer service conversations, covering high-frequency scenarios and boundary scenarios. Define verifiable success criteria for each task, such as tests passing, field extraction accuracy, or task completion rate.

    Step 2: Control variables. Use the same prompt templates, the same context window configuration, and the same retry strategy for all candidate models. Run each task group multiple times to reduce randomness, and record both the mean and variance.

    Step 3: Score on two dimensions. Record both a “quality score” (task success rate, human review score) and a “cost score” (token consumption, latency, failure retry overhead). Plot a quality-cost scatter chart and look for candidates on the Pareto frontier.

    Step 4: Canary validation. Connect candidate models to a small percentage of production traffic, monitor real success rates, user feedback, and unit cost, and run the canary for one to two weeks before making the final switch decision.

    Final Thoughts

    Intense model competition and clustered new releases are actually a dividend period for users: more options, competition-driven cost reductions, and continuously expanding capability boundaries. But that dividend belongs only to teams that have established scientific evaluation methods—they do not chase hype or worship leaderboards, but instead rely on controlled-variable experiments and real business canary data. When vendors compete aggressively with one another, the team that has built a solid evaluation system may well be the biggest winner.