How to Evaluate LLM Agent Capabilities and Choose the Right Model
A practical guide to evaluating LLM agents across four core capability areas. Learn why benchmark rankings are hard to compare, how to build a reproducible evaluation loop, how to estimate local deployment VRAM from parameter count, and how to turn scores into a cost-aware selection workflow with a decision matrix and fallback strategy.
1. Why “Ranked First” Rarely Guides Model Selection Directly
Open-source model releases are accelerating. Models that were scheduled to open their weights and technical reports late at night are being released hours early, and another vendor has published a lightweight variant of its own. The top of popular leaderboards is now dominated by a few open-source families, and the largest number of derivative versions sits in the “medium size” range below 3B and between 2B and 30B parameters. This shows that real community demand concentrates on models that can run on one or two GPUs while still handling agent tasks.
Behind the activity is an engineering fact: scores from different evaluation leaderboards are almost impossible to compare side by side. The reason is not fabricated data but inconsistent evaluation conditions, which mainly come down to six variables:
- Different agent scaffolds: prompt templates, history compression strategies, retry logic, and termination conditions all change scores significantly.
- Different context budgets: available windows range from tens of thousands to hundreds of thousands of tokens, which amplifies performance differences on long tasks.
- Different reasoning effort: whether extended thinking is enabled and how large the thinking budget is directly determine scores on complex reasoning tasks.
- Different sampling and run counts: a single run and best-of-N runs (pass@k style) are not the same thing.
- Different anti-cheating and contamination controls: whether samples overlapping with the training set are removed, whether internet access is disabled, and whether the toolset is restricted.
- Different task filtering: keeping only subtasks that can be scored automatically systematically inflates scores.
So when you see a conclusion like “this model wins on all four metrics and is several points higher on average,” the correct reading is: under the scaffold and budget of that particular evaluation, it is more stable across four capability areas, not that it is stronger in every scenario.
2. What the Four Agent Capability Evaluations Actually Measure
The four directions in the original discussion cover the main path of agent deployment and can be abstracted into four general capabilities.
2.1 Real Repository Understanding and Cross-File Modification
This measures whether a model can locate a problem in an unfamiliar repository, understand call relationships, make the minimum necessary changes across multiple files, and verify them by running the code. Scoring is usually determined jointly by automated test pass rates and human review. What fails most often in engineering is not “being unable to write code” but editing the wrong location, missing callers, or breaking existing conventions.
2.2 From Natural Language Requirements to a Complete Project
This measures the reasonableness of the directory structure, module separation, dependency declarations, completeness of configuration and documentation, and whether the project “runs on the first try.” These tasks demand more planning ability than single-point coding ability. Common deductions come from a missing entry file, dependency version conflicts, or missing sample data.
2.3 Tool Selection and Consecutive Invocation
Given a set of tool descriptions, this measures whether the model can pick the right tool, chain them in order, and self-correct after an error. It evaluates “flow continuity” rather than single-step accuracy. In real business, a single parameter-format error that cannot self-recover fails the entire chain.
2.4 Cross-Industry Professional Tasks and Long-Horizon Delivery
This measures long-cycle planning, graphical interface or terminal operation, and deliverable reliability. It is the closest of the four to a real job role, and also the one with the largest score variance.
A reproducible self-built evaluation skeleton looks like this (pseudocode that expresses only the evaluation flow and involves no specific product interface):
# Unified evaluation loop: fixed budget, fixed toolset, multiple runs for a distributiondef run_eval(model, task, cfg):results = []for _ in range(cfg.runs): # run count is fixed and disclosedenv = build_env(task, tools=cfg.tools) # toolset and permissions are fixedtraj = []for step in range(cfg.max_steps):out = model.act(task.prompt, traj, budget=cfg.budget)obs = env.step(out) # unified execution and observation formattraj.append((out, obs))if obs.done or obs.error_fatal:breakresults.append(env.score(traj)) # automated scoring + rule checksreturn summarize(results) # report mean, variance, failure types
The key is to decouple “model capability” from “scaffold capability”: only when comparing under the same env, the same tools, and the same budget do the conclusions carry transferable value.
3. Converting Scores into Cost: Capacity Estimation for Local Deployment
Selection cannot rely on scores alone; it also has to consider cost per task. When cloud pricing is not public, local deployment can be used for capacity estimation: first estimate weight VRAM, then add runtime overhead.
Rule-of-thumb formula (for capacity planning, not an exact value):
VRAM ≈ parameters × bytes per parameter × (1 + overhead factor)bytes per parameter: FP16 ≈ 2, 8-bit ≈ 1, 4-bit ≈ 0.5overhead factor: long-context KV cache + batch concurrency, typically 0.2–0.6
By this estimate, a model of roughly 30B parameters at 4-bit quantization needs weights on the order of 15–20GB; with a very long context and high concurrency, total VRAM demand can double. A model about twice that size roughly doubles the resource requirement as well. Conversely, smaller “lightweight tier” models run on a single consumer-grade or a single data-center-grade GPU. This is the fundamental reason the community prefers medium-size models: the cost-performance inflection point usually appears at the combination of “runs on a single GPU + long context is usable.”
The trade-offs of quantization should also be stated up front: 4-bit can significantly lower the barrier, but it may cost a small amount of inference precision and stability on long-chain tasks. For multi-step tool-invocation tasks, it is advisable to keep higher precision or moderately increase the reasoning budget.
4. A Practical Selection Workflow
- Define the task profile: assign weights across the four categories (repository modification / generation from scratch / tool chaining / long-horizon delivery) instead of chasing an overall first place.
- Build a small internal sample set: 30–50 real tasks per category, each with a clear automated scoring script, to avoid subjective grading.
- Fix the evaluation conditions: record the model, budget, toolset, run count, and temperature parameters to produce a reproducible report.
- Run dual-track validation: first run the offline small sample, then run an A/B test on a small traffic share of real business, observing the distribution of failure types rather than a single mean.
- Close the cost loop: convert VRAM, throughput, and queueing latency into “cost per thousand tasks” and make a two-dimensional decision together with effectiveness.
- Design a fallback strategy: fall back to a lightweight model or a rule-based flow after the primary model fails, to keep the chain available.
Example decision matrix:
| Scenario Focus | Priority Capability | Resource Tier | Risk Control |
|---|---|---|---|
| Existing repository maintenance | Cross-file modification, regression pass | Medium-high | Require tests to pass before merge |
| New project scaffolding | Structure planning, dependency completeness | Medium | Dependency locking and template validation |
| Process automation | Tool selection, self-recovery | Light-medium | Idempotent design, timeout retries |
| Long-horizon professional tasks | Planning, delivery reliability | High | Staged acceptance, manual spot checks |
5. Common Pitfalls
- Looking only at the average score: the four capabilities carry different weights, and an average hides weaknesses.
- Ignoring the scaffold: a different set of prompts and retry strategies can reverse the ranking.
- Overlooking data contamination: public question sets and business question sets should be maintained separately.
- Betting everything at once: model iteration cycles are measured in months, so keep a replaceable abstraction layer.
- Treating quantization as lossless: long-chain tasks are more sensitive to precision.
6. Conclusion
The point of evaluation is not to crown a permanent winner but to establish a reproducible and transferable standard of judgment. Break capability into four categories, fix the evaluation conditions, convert cost into per-task overhead, and combine small-traffic validation with fallback design, and you can keep making rational choices in a fast-iterating open-source ecosystem. If an organization wants to reduce the investment in building its own evaluation and deployment, it can use Baidu AI Cloud’s combination of general capabilities such as container platform, object storage, log service, and monitoring and alerting to quickly build elastic inference and evaluation pipelines, and focus its energy on task definition and quality tuning.
