LLM Agent Selection: A Reusable Evaluation Framework
This article explains how to evaluate and select an LLM agent beyond leaderboard rankings. It covers four capability dimensions—real-world codebase engineering, from-scratch project generation, sequential tool-chain invocation, and cross-industry computer operation—and explains why benchmark scores are often incomparable across reports. It also outlines how to estimate weight size, memory overhead, hardware requirements, and cloud versus local deployment costs, then provides a reusable workflow for testing candidate models on real business tasks.
The release cadence of open-source LLMs is accelerating, with new models appearing almost every week. More choices make it harder to judge which model fits your needs. Leaderboard rankings and scores in technical reports often come from different test conditions. This article starts with agent capability evaluation and explains which dimensions to examine, how to interpret scores, how to estimate deployment costs, and finally how to build a reusable model selection workflow.
1. Four Dimensions of Agent Capability
Evaluating whether a model can handle agent work requires more than looking at its conversational performance. An agent must complete an end-to-end chain from understanding requirements to executing actions to delivering results. Evaluation should therefore cover the following four capability categories.
1. Real-World Codebase Engineering
These tasks are closest to everyday development. A typical form is: give the model a real open-source repository and an issue, ask it to locate the problem, modify code across files, and run tests to verify the result. Three points are especially important:
- Repository-level understanding: can it quickly find relevant modules in a large codebase?
- Cross-file modification: after changing one piece of logic, can it update callers, tests, and documentation accordingly?
- Verification loop: can it proactively run builds and tests and repeatedly fix issues based on errors?
DeepSWE-type benchmarks fall into this dimension. Before use, check the official paper or repository to confirm the number of tasks, pass criteria, and runtime environment.
2. Building Complete Projects from Scratch
In contrast to modifying existing code, these tasks require the model to build a project from scratch based on a natural language requirement. The output includes directory structure, module division, multi-file collaboration, and dependency configuration. This is harder than single-file code generation because the model must decide how to split modules and ensure interface consistency across files. NL2Repo-type benchmarks measure this kind of architecture design ability and project completeness.
3. Sequential Tool-Chain Invocation
The difficulty of real agent tasks usually lies not in calling a tool once, but in connecting multiple steps and recovering from errors. Toolathlon-type benchmarks prepare a set of service interfaces close to real environments, such as file systems, databases, calendars, and email. The model must choose the right tools, call them in a reasonable sequence, and adjust parameters or retry after a failure at some step. This dimension tests planning ability, accuracy of parameter construction, and self-correction.
4. Cross-Industry Computer Operation
The last category is the most comprehensive. It simulates an office environment and asks the model to complete cross-industry, long-chain tasks such as organizing data, generating reports, and operating desktop software. Agents’ Last Exam-type benchmarks focus on long-term planning, graphical interface operation, and delivery reliability. They best reflect a model’s actual level as a “digital employee.”
2. Why Leaderboard Scores Cannot Be Compared Directly
Scores for the same benchmark are often not directly comparable across reports. Factors that affect scores include at least:
- Agent framework: a simple loop and a multi-round framework with reflection can produce very different results.
- Context length: a longer window allows the model to see more code and logs.
- Reasoning intensity: a higher thinking budget also increases latency and cost.
- Number of runs: single-pass success and best-of-multiple-sampling have completely different statistical meaning.
- Anti-cheating rules: whether network access is allowed and whether tool use is restricted can change results.
Therefore, when reading a report, look at the test conditions before looking at the score. If a report does not disclose these details, rankings can only serve as an initial screening reference. A model leading on one type of leaderboard does not mean it will lead on your business tasks.
3. How to Estimate Deployment Costs
What determines deployment cost is often not the benchmark score but the ledger. Local deployment can be estimated from three angles.
1. Weight Size and Quantization
Large-parameter models usually soon appear in quantized formats such as GGUF. The formula for estimating weight size is simple:
weight size ≈ total parameter count × bytes per parameter
Take a 100B (100 billion) parameter model as an example:
- 4-bit quantization: about 0.5 bytes per parameter, so weights are about 100 × 0.5 = 50 GB.
- 8-bit quantization: about 1 byte per parameter, so weights are about 100 GB.
- Some layers, such as embeddings and output layers, are usually kept at higher precision, adding a few GB. Quantization scaling parameters also make files slightly larger.
For MoE models, weight size is determined by the total parameter count, while inference speed mainly depends on the number of activated parameters per step. The two need to be considered separately.
During inference, memory or VRAM must also be reserved for KV Cache. Its size depends on the number of layers, attention head configuration, context length, and concurrency. Agent tasks often need to handle contexts of tens of thousands of tokens, which significantly amplifies this overhead. In practical planning, reserve 30% to 50% above the weight size. Using the 4-bit model above as an example, with 50 GB of weights plus margin, it is advisable to prepare about 65 to 75 GB of available memory or VRAM.
2. Hardware Threshold Tiers
The table below is a rough tiering reference. Specific values need to be confirmed through actual testing with the target model and inference framework.
| Scenario | Typical configuration | Suitable use |
|---|---|---|
| Consumer workstation | 64 GB or more unified memory, or multiple consumer GPUs with sufficient combined VRAM | 4-bit quantization, personal or small-team experiments, low concurrency, shorter context |
| Single-node multi-GPU server | Multiple high-VRAM accelerators, with total VRAM able to hold 8-bit quantization | Higher precision, medium concurrency |
| Cluster deployment | Multiple nodes, with general open-source inference engines such as vLLM for batch scheduling | Production-level concurrency, long context |
3. Cloud APIs vs. Local Deployment
Cloud inference pricing varies by provider, model version, and instance specification, so this article does not cite specific prices. When comparing options, check the following items:
- Billing method: billed separately for input and output tokens, or billed by instance duration?
- Whether long-context pricing is different?
- Concurrency limits and queueing latency?
- License terms: is commercial use and redistribution allowed?
- Data location and compliance requirements?
If you choose self-hosting, also include the cost of object storage for weights, a container platform for elastic inference instances, and monitoring and alerting for service stability. A prudent approach is to first validate the capability ceiling with a small quantized version locally, then decide whether to self-host or use a cloud API.
4. A Reusable Selection Workflow
Whenever a new model appears, you can use the following workflow to decide whether to switch.
- Define the task profile. Is your agent mainly doing code engineering, tool invocation, or desktop automation? First select candidate models that perform well in the corresponding dimension.
- Build your own evaluation set. Sample 20 to 50 real tasks from your business. Stratify them by task type, for example, code repair, tool-chain invocation, and office operation each accounting for about one-third.
- Control variables. Fix the agent framework and prompts, and standardize context length, sampling temperature, reasoning budget, and number of attempts. Otherwise, conclusions are unreliable.
- Evaluate engineering details. Check whether function-calling formats are compliant, whether structured output is stable, and whether the context window is sufficient. These details often affect user experience more than a few points on a leaderboard.
- Calculate the total cost. Include inference cost, deployment threshold, and license in the decision. Do not look only at scores.
Evaluation results can be recorded in a unified table. Keep the following fields for each task: task ID, whether completed, number of tool calls, whether recovered after failure, latency, and cost. The more standardized the table, the clearer the comparison between models.
Conclusion
Rapid iteration of open-source models is making public leaderboards increasingly crowded. Leaderboards are useful for screening candidates, but the real basis for judgment should be your own business tasks. When choosing a model, first understand what it is good at, how to test it, and how much it costs to run, then decide whether to adopt it.
