How to Benchmark Agent Capabilities of Open-Source Models: Methods and Practice
This article presents a reusable method for evaluating the agent capabilities of open-source models. It covers four key capability dimensions (repository-level software engineering, natural language to full repository, continuous tool calling, and cross-industry computer-use tasks), explains how to align evaluation conditions for comparable results, and shows how to read capability profiles beyond a single average score. It also outlines local deployment cost estimation based on parameter count and quantization, plus a reproducible evaluation workflow. The goal is to help developers and enterprise users select models against their own tasks rather than chase a single "best" model.
1. Background: Open-Source Competition Is Shifting to Agent Capabilities
The pace of iteration in the open-source model community has clearly accelerated, and overlapping release dates have become almost routine: one model was originally scheduled to release its weights and technical documentation late at night, but was forced to publish early because another model open-sourced ahead of schedule. What looks like an occasional competitive episode actually reflects that the open-source ecosystem has entered a high-intensity phase of competition. More notably, the top of model trend leaderboards is now dominated by a few families of open-weight models, with mid-sized parameter models (around 30B) and their derivatives being the most popular. This suggests the community is forming a new balance point between “effectiveness” and “cost.”
At the same time, the focus of evaluation is shifting. Early on, people cared more about single-turn question answering, knowledge recall, and basic reasoning. Today, what truly separates models is agent capability: whether a model can understand a real code repository, build a project from scratch from a natural-language requirement, call tools consecutively and self-correct after errors, and deliver reliably across cross-industry tasks. This article takes three representative open-source models (referred to as Model A, Model B, and Model C) as the objects of analysis and abstracts a reusable evaluation and selection method, without recommending any specific product.
2. Four Key Capability Dimensions and Their Technical Meaning
To judge how strong a model is in agent scenarios, you have to return to the tasks themselves. The following four dimensions are widely recognized core areas of assessment:
- Repository-level software engineering: Given a real code repository, the model is asked to understand the directory structure, locate defects, make cross-file changes, and verify them by running tests. This assesses long-context understanding, dependency reasoning, and the closed-loop ability to “make the change and have it run.”
- Natural language to full repository (NL2Repo): Given only a one-sentence requirement, the model must design the directory structure, split modules, generate multi-file code, and ensure the project is complete and runnable. This assesses planning ability and engineering-convention awareness.
- Continuous tool calling: Facing a goal, the model needs to select the right tools, call them consecutively in order, parse the returned results, and adjust its strategy on failure. This assesses the stability of function calling and workflow orchestration.
- Cross-industry professional tasks and computer use: Completing long-horizon tasks in an unfamiliar domain, involving long-term planning, interface operation, and delivery reliability, is the ultimate test of a general-purpose agent.
It is worth stressing that these four dimensions are not isolated: repository-level engineering determines “whether it can make the right change,” NL2Repo determines “whether it can build from scratch,” tool calling determines “whether it can collaborate with external systems,” and cross-industry tasks determine “whether it can deliver end to end.”
3. A Unified Baseline: The Prerequisite for Trustworthy Comparisons
Many evaluation conclusions contradict each other because the baselines are inconsistent. Before running a comparison, you should align at least the following:
- Same agent framework: Prompt templates, memory strategies, and retry mechanisms differ greatly across frameworks and can significantly affect scores.
- Same context window and truncation strategy: Long-repository tasks are extremely sensitive to context, and different truncation methods can directly change results.
- Same reasoning effort and number of runs: Whether enhanced reasoning is enabled, how many times each task is run, and whether you take the mean or the best value all introduce systematic bias.
- Same anti-cheating and isolation rules: Whether internet access is allowed, whether reading test files is allowed, and whether outputs are post-processed must be declared in advance.
Only when these variables are fixed are the scores comparable. Otherwise, the discussion of “who is stronger” easily degrades into “whose default configuration happens to be more convenient.”
4. Reading the Results: Structural Information Beyond Win or Loss
Running the three models through four benchmarks under a unified baseline yields several typical conclusions (the following are methodological examples, not data for specific products):
- Leading across the board: One model leads on all four items, ahead of the second place by about 5 points on a simple average, with the biggest advantages in repository-level engineering and continuous tool calling, leading by about 9 points and 8 points respectively. This indicates it is more mature on the two main lines of “modifying code” and “using tools.”
- Split results: The other two models each win two items. One is stronger on “existing-codebase engineering” and “real tool calling,” while the other is stronger on “generating a full repository from scratch” and “cross-industry computer tasks.” Their four-item simple average differs by only around 0.1 points, putting them at nearly the same level.
More valuable than the total score is the capability profile: if your business mainly maintains existing systems, prioritize repository-level engineering and tool calling; if it mainly generates rapid prototypes, look at NL2Repo; if the goal is end-to-end office automation, weight cross-industry tasks more heavily. A simple average is only suitable for initial screening; real selection should be weighted by business tasks.
5. The Cost Perspective: VRAM and Quantization for Local Deployment
Beyond effectiveness, cost determines whether something can be deployed. While cloud pricing is not yet transparent, local deployment is a more controllable evaluation path. The core variable is parameter count × precision:
- A model around 30B in size, after 4-bit quantization, has a weight size on the order of about 100GB;
- If the parameter count doubles, the VRAM/memory requirement roughly doubles as well, reaching on the order of 200GB;
- Larger models often require multi-GPU tensor parallelism to host.
You can use the following illustrative script to estimate weight size and minimum VRAM requirements:
def estimate_vram(params_b: float, bits: int, overhead: float = 1.2) -> float:"""Estimate the VRAM (GB) required for inference.params_b: parameter count (in billions)bits: quantization bit width (e.g., 4/8/16)overhead: runtime overhead factor (KV cache, activations, etc.)"""weights_gb = params_b * bits / 8return round(weights_gb * overhead, 1)print(estimate_vram(30, 4)) # on the order of ~150GB (including overhead)print(estimate_vram(60, 4)) # on the order of ~300GB (including overhead)
Beyond VRAM, you also need to account for throughput and latency: 4-bit quantization can significantly reduce cost in most scenarios, but may bring accuracy loss, so regression validation against your business is needed. Common engineering cost-reduction measures include: setting a reasonable maximum context length to compress the KV cache, using continuous batching to improve utilization, and downgrading long-tail requests to a smaller model.
6. Recommended Reproducible Evaluation Workflow
- Fix the configuration: Lock the framework, context, reasoning effort, number of runs, and isolation rules, and put them under version control in a configuration file.
- Stratified sampling: Sample tasks according to the real distribution of your business, avoiding overfitting from using only public benchmarks.
- Run multiple times and take the distribution: Record the mean, variance, and failure types, rather than reporting only the single best run.
- Failure attribution: Classify failures into “understanding error / wrong tool selection / execution interruption / incomplete delivery” to guide subsequent optimization.
- Joint cost evaluation: Put effectiveness scores, VRAM, throughput, and per-task cost in the same table for Pareto analysis.
7. Trend Judgment and Summary
Competition among open-source models is shifting from “parameters and leaderboards” to “agent delivery quality.” The top of the leaderboards being occupied by a few open-weight models, and releases “jumping the gun” on each other, both indicate a highly active and rapidly converging market. For developers and enterprise users, the rational approach is not to chase a single “strongest” model, but to:
- Build your own evaluation set under a unified baseline;
- Match capability profiles to business scenarios;
- Constrain the selection boundary with quantization and deployment costs.
When deploying in the cloud, you can combine a container platform to host inference services, object storage to store models and datasets, and logging services with monitoring and alerting to track quality metrics, forming a closed loop of “evaluate–deploy–observe.” The more intense the competition, the more the users ultimately benefit—but on the premise that you have your own reproducible measurement standard.
