How to Evaluate AI Agent Capabilities and Estimate Local Deployment Costs
As model releases accelerate to a matter of weeks, single leaderboard scores are losing their explanatory power. This article breaks down four core AI agent capability dimensions, explains how to standardize evaluation settings for fair comparison, shows how to turn small score gaps into reliable decisions using paired comparisons, confidence intervals, and business weighting, and provides a practical framework for estimating local deployment costs, including VRAM, throughput, concurrency, and quantization trade-offs.
1. Why “Which Model Is Better?” Is Getting Harder to Answer
Model iteration has compressed from roughly one release every six months to a new version every few weeks. When several teams release new weights and technical notes almost simultaneously, developers are no longer asking “Is there a usable model?” but “Which one should I pick under a budget constraint?” The competitive dynamic described in the original discussion—one team open-sourcing weights two hours earlier and another being forced to follow—reflects a simple fact: open weights have become competitive infrastructure, and leaderboards are now part of the release cadence.
This has a direct consequence: the explanatory power of a single leaderboard score is decaying fast. There are three reasons:
- Evaluation framework differences. For the same capability, different teams use different agent scaffolds, including prompt templates, tool definitions, retry policies, and context truncation strategies. Scaffold quality alone can swing results by several percentage points, and those gains do not belong to the model itself.
- Inference budget differences. Thinking and non-thinking models, low and high reasoning effort, single sampling versus multi-sample voting are not products at the same cost tier. Comparing their average scores directly is not fair.
- Anti-gaming and data contamination. Once an evaluation set enters public corpora, leakage on the training side is hard to avoid entirely. Whether evaluation details are disclosed, whether tool rollback is allowed, and whether runtime is capped all affect the final numbers.
So the more professional approach is not to ask “Who is first?” but to first build a capability-to-task mapping, then compare under the same measurement conditions.
2. Four Core Agent Capabilities and Their Evaluation Dimensions
The four capabilities mentioned in the original material cover the main paths of agent deployment. Abstracted, they form a general evaluation matrix:
| Capability | Task Format | Key Criteria | Common Failure Modes |
|---|---|---|---|
| Existing codebase engineering | Locate issues in real repositories, make cross-file changes, run verification | Long-context retrieval, dependency reasoning, closed-loop verification | Patching surface symptoms, missing callers, claiming completion despite failed verification |
| Generating a repository from scratch | Produce a complete project from natural-language requirements | Directory design, module boundaries, completeness of configuration and docs | Flat structure, pseudo-implementations, no runnable entry point |
| Real tool calling | Select tools, chain calls, recover from errors | Parameter correctness, workflow continuity, post-error adaptation | Parameter hallucination, infinite call loops, giving up after failure |
| Cross-industry professional tasks | Long-horizon planning, GUI operation, delivery reliability | Plan decomposition, state tracking, artifact consistency | Mid-task drift, artifacts that do not match requirements |
The value of this matrix is that it makes the “average score” look suspicious. The four capabilities differ naturally in difficulty and weight, and a simple arithmetic mean implies an equal-weight assumption, while real business usually cares about only one or two of them. A team that leads by 9 points on existing-codebase engineering but trails by 5 points on cross-industry tasks is still the better choice for a team focused on R&D productivity.
2.1 The “Measurement Checklist” to Verify Beyond Scores
Before citing any public score, check the following fields. If any is missing, treat the results as incomparable:
- Agent framework and prompt template version;
- Context window limit and retrieval strategy;
- Reasoning effort setting and whether extended thinking is enabled;
- Number of samples and aggregation method (single run / majority vote / self-selection);
- Per-task timeout, max steps, and max tool calls;
- Whether test execution is allowed and whether network access is allowed;
- Evaluation set version and whether it is public.
You can lock down the measurement conditions with a sample configuration like this, making internal cross-model comparison easier:
# Example evaluation baseline (illustrative, not parameters of any specific product)runtime:max_steps: 60max_tool_calls: 120task_timeout_sec: 1800context:window_tokens: 131072retrieval: hybrid_sparse_densetop_k: 8decoding:reasoning_mode: enabledreasoning_budget: mediumtemperature: 0.2aggregation:samples: 1strategy: single_runsandbox:network: disabledallow_test_execution: truerollback_on_failure: true
Only when all candidate models run on the same configuration do the relative results have decision value.
3. Turning “a 0.13-Point Average Gap” into Decision Language
Two notable patterns appear in the original material: the leader wins all four capabilities but by a limited average margin (around 5 points); the bottom two split wins and losses, with a tiny average gap across the four (0.13 points).
Statistically, this means: at the same order of magnitude, differences between models are already smaller than evaluation noise. With single runs and high task variance, a 0.13-point gap can easily be swallowed by randomness. A more robust engineering approach is:
- Use paired comparisons. Run the same task set with the same random seed and compare pairwise win rates instead of absolute means.
- Report confidence intervals. Resample task-level scores with bootstrap to produce 95% intervals; overlapping intervals mean no significant difference.
- Weight by business priorities. Assign weights to the four capabilities based on your real scenario, for example 0.45 / 0.25 / 0.2 / 0.1 for an R&D productivity scenario.
Sample implementation:
import randomdef bootstrap_ci(scores, n=2000, alpha=0.05):means = []for _ in range(n):sample = [random.choice(scores) for _ in scores]means.append(sum(sample) / len(sample))means.sort()lo = means[int(alpha / 2 * n)]hi = means[int((1 - alpha / 2) * n) - 1]return sum(scores) / len(scores), lo, hiweights = {"repo_edit": 0.45, "repo_gen": 0.25, "tool_use": 0.20, "pro_task": 0.10}def weighted_score(raw):return sum(raw[k] * weights[k] for k in weights)
The conclusion should be stated this way: for general agent tasks, the first tier no longer has a gap that a single evaluation can distinguish reliably; model selection should return to cost, context length, deployment format, and ecosystem maturity.
4. A Quantitative Method for Estimating Local Deployment Costs
The “about 100GB at 4-bit, double for another model” figures in the original material are empirical observations. A more rigorous approach is to break VRAM requirements into computable terms:
VRAM ≈ weight footprint + KV cache + runtime overheadWeight footprint ≈ parameter count × bytes per parameterFP16: 2 B/paramINT8: 1 B/paramINT4: 0.5 B/param (in practice, grouped quantization metadata adds 10%~20%)KV cache ≈ 2 × layers × KV heads × head dim × context length × bytes per element × concurrency
Take “about 30 billion parameters, INT4 quantization” as an example: theoretical weights are about 15GB, and after adding quantization metadata and runtime overhead it lands in the 18–22GB range, which a single GPU can hold. If the parameter count doubles, weights and KV cache both double, requiring 2 GPUs or a more aggressive quantization and offload strategy.
It is important to emphasize that VRAM is not the only cost item. A complete cost model includes at least:
- Throughput: time to first token (TTFT) and time per output token (TPOT), which determine the concurrency ceiling;
- Concurrency: KV cache grows linearly with concurrency and can easily become the bottleneck in long-context scenarios;
- Quantization loss: 4-bit degradation on code generation and long-chain reasoning tasks is usually more noticeable than on casual chat, so you must regress on your own task set;
- Operations: container orchestration, log collection, monitoring and alerting, model version rollback;
- Personnel: adaptation and tuning costs are often underestimated.
A practical selection workflow is: first measure accuracy on a small task set, then stress-test TTFT/TPOT and peak VRAM, and finally convert to “cost per million tokens = hardware amortization + power + operations labor” and compare it with cloud pay-as-you-go pricing. On the cloud side, you usually only need general-purpose capabilities, such as object storage for models and datasets, container platforms for elastic inference, and logging and monitoring services for observability. Baidu AI Cloud offers standard product categories for these general capabilities; refer to the official documentation for specific specifications and pricing.
5. Common Pitfalls and Engineering Recommendations
- Treating leaderboards as conclusions. Leaderboards are filters, not decision makers. The right order is: leaderboard narrows the candidate set → validate on your own task set → cost stress test → canary rollout.
- Ignoring scaffold contribution. If possible, fix the same agent framework for cross-model evaluation to separate “model capability” from “engineering capability.”
- Replacing everything at once. Route by task type: give low-risk, high-repetition tasks to cheaper models and keep complex long-chain tasks on more capable models.
- Neglecting rollback design. Tool-calling and file-modification tasks must have snapshot and rollback mechanisms; otherwise the cost of one bad write can far exceed the model cost.
- Not building a regression set. Turn production failures into a regression task set and run it every time you switch models. This is the most cost-saving practice in the long run.
6. Conclusion
Simultaneous multi-model open-sourcing and a crowded leaderboard race are a net gain for developers: prices and deployment barriers keep falling. But to actually capture that gain, you do not need to memorize a total score. You need three things: standardize evaluation conditions, weight by business priorities, and break costs into computable terms. With these three in place, “Which model is better?” stops being a matter of opinion and becomes an engineering question you can answer with data.
