How to Evaluate LLM Agent Capabilities and Analyze Deployment Costs
This article explains why single leaderboard scores are unreliable for choosing an LLM agent, breaks down four core capability dimensions, and shows how to build a reproducible evaluation harness. It also covers how to read results using averages and task fit, how to estimate local serving costs when cloud pricing is unavailable, and practical guidance for model selection and deployment.
1. What Is Changing in Open Source Releases and Leaderboards
The release cadence in the open source community has clearly accelerated. A model that was originally scheduled to publish its weights and technical documentation late at night was forced to go public two hours early because a comparable model claimed priority and released its weights at the same time. This kind of “race to release” shows that open weights have become a primary way for vendors to compete for developers’ attention. At the same time, the top of model trend leaderboards is almost entirely occupied by a few Chinese open source models and their derivatives. Among them, the general-purpose versions at a medium parameter scale (around 30B) and their fine-tuned derivatives attract the most attention, for a straightforward reason: they can be deployed on a single GPU or a dual-GPU setup, the fine-tuning ecosystem is mature, and the cost per token is controllable.
For developers, the real question is not “who ranks first,” but: when there is no unified evaluation standard, how do you determine whether a model fits your task?
2. Why a Single Leaderboard Score Cannot Be Taken at Face Value
When different teams publish technical documentation, they each choose different agent frameworks, context window lengths, reasoning effort levels, number of repeated runs, failure retry and anti-cheating rules. The impact of these variables on the final score often exceeds the differences between the models themselves. Common sources of bias include:
- Framework differences: Switching a model to a different tool-calling protocol can significantly change the success rate on long-workflow tasks.
- Context budget: Repository-level tasks require loading a large number of files, and the context truncation strategy directly determines whether the model can locate the right place.
- Reasoning effort and run count: Best-of-n sampling is not comparable to a single run.
- Anti-cheating and data isolation: When training set contamination and benchmark leakage are not isolated, scores are inflated.
Therefore, cross-model comparison only holds when the framework, context, run count, and scoring script are all the same; otherwise, the numbers can only serve as a reference range.
3. Breaking Down the Evaluation Dimensions of Four Core Capabilities
The four benchmarks mentioned in the original material essentially cover the complete chain of an agent going from “modifying code” to “delivering results,” and can be abstracted into four capability categories:
- Understanding real code repositories and making cross-file changes: Given a real project, the model must locate the problem, make changes across files, and run verification. This tests long-context retrieval, dependency reasoning, and regression verification awareness.
- Generating a complete repository from natural language: Generating a directory structure, multi-file coordination, and a runnable project from a single requirement. This tests architecture planning and project completeness.
- Tool selection and continuous invocation: Selecting the right tool in a multi-tool environment, chaining workflows, and self-correcting after errors. This tests workflow orchestration and error recovery.
- Cross-industry professional long-horizon tasks: Long-cycle planning, GUI/computer operation, and final delivery reliability. This tests persistence and goal consistency.
A skeleton of a reproducible self-built evaluation harness is shown below (pseudocode that only expresses the flow and does not point to any specific tool):
def run_eval(model, task, cfg):env = build_sandbox(task.repo_snapshot) # fixed snapshot to avoid data drifttraj = []for step in range(cfg.max_steps):obs = env.observe()action = model.act(obs, tools=cfg.tools,context_budget=cfg.ctx,reasoning=cfg.effort)obs = env.step(action)traj.append((action, obs))if env.done() or env.failed():breakreturn score(env.verify(), cfg.runs) # average over multiple runs, not the best
Key engineering details: fix the repository snapshot and dependency versions, isolate the network in containers, decouple the scoring script from the model, record the full trajectory for review, and report the mean and variance across multiple runs.
4. How to Read Results Correctly: Mean, Range, and Task Fit
Putting three models (including a lightweight model based mainly on a mixture-of-experts architecture as a reference) under the same standard yields three general conclusions:
- Overall leader: One model leads on all four items, with an average lead of about 5 points. Its advantage is concentrated in repository-level modification and continuous tool invocation, indicating it is more stable at “working within an existing project” and on workflow-type tasks.
- Complementary: The other two each win two items. One is strong in existing codebase engineering and real tool invocation, while the other is strong in generating a complete repository from scratch and cross-industry computer operation. The difference in their four-item average is only about 0.1 points, placing them in the same tier, so the choice should be determined by task type.
- Reference: The lightweight model used as a baseline lags by 8–9 points on some items, showing that parameter scale and training strategy still have a clear impact on long-horizon tasks.
Practical advice: do not use a simple average as the sole criterion; weight it according to your own task distribution. For example, if repository maintenance is the main workload, increase the weight of repository-level tasks; if content production is the main workload, increase the weight of generation completeness and computer operation.
5. The Cost Side: How to Estimate Without Cloud Pricing
When cloud pricing is not public, you can build a cost model from the local deployment side. Using roughly 100GB of weights after 4-bit quantization as a baseline, one model needs about that amount of GPU memory and memory, while another needs about twice as much (around the 200GB level). From this you can derive:
servable concurrency ≈ available GPU memory / (weight footprint + peak KV Cache)cost per token ≈ hardware depreciation + electricity + operations / effective tokens produced per day
Here, the KV Cache grows roughly linearly with context length and concurrency, making it the main cost item for long-context repository tasks. If GPU memory is insufficient, you can consider more aggressive quantization, tensor parallelism, or layer-wise offloading, but all of these reduce throughput and require empirical trade-offs. By contrast, flagship models with larger parameter counts have a higher local deployment threshold and are generally only suitable for on-demand cloud calls.
6. Selection and Implementation Recommendations
- Define the task distribution first, then the weights, to avoid being pulled by a single leaderboard.
- Build a small internal benchmark (50–100 real tasks) with fixed snapshots and scoring scripts to ensure reproducibility.
- Compare horizontally under a unified standard: same framework, same context, same run count, reporting mean and variance.
- Estimate costs by peak concurrency, factoring KV Cache and long context into the budget.
- Keep a replaceable abstraction layer: connect models through a unified gateway to make it easy to switch between mixture-of-experts, dense, and quantized versions.
- Pay attention to compliance and data isolation: separate evaluation data from business data to avoid benchmark leakage.
The direct benefit of intensifying competition falls on developers: open weights, complete quantization artifacts, and a lower deployment threshold. The rational approach is to treat evaluation as an engineering problem rather than a popularity contest, and to support decisions with reproducible data. If you need elastic compute and general cloud capabilities such as object storage, container platforms, and monitoring and alerting to support evaluation and inference, Baidu AI Cloud can provide the corresponding infrastructure.
