Evaluating AI Agent Capabilities: Methods and Local Deployment Cost Breakdown

    This article explains how AI model evaluation has shifted from single-turn question answering to real agentic work, why traditional benchmarks fall short, and how to assess four core capability dimensions: repository understanding, full-project generation, tool orchestration, and cross-domain task delivery. It also covers how to interpret cross-model comparison claims, build a reproducible in-house evaluation pipeline, and estimate local deployment costs from parameter count, quantization width, and context length.

    1. Introduction: Model Competition Has Shifted from Answering Questions to Getting Work Done

    Over the past two years, the focus of large model evaluation has moved noticeably: away from single-turn Q&A and standardized exam-style questions, and toward whether a model can continuously produce usable results inside real workflows. The industry usually summarizes this shift as “AI agent capability.” The emphasis is not the wording quality of a single response, but whether the model can understand an environment, plan steps, call tools, verify results, and self-correct after failures across long-chain tasks.

    At the same time, the pace of iteration in the open-source ecosystem has been compressed significantly by commercial competition. A common pattern: one side plans to release weights and technical documentation late at night, and another side puts out its own version several hours earlier, creating a de facto collision. For developers, this is both a benefit (more options, faster iteration) and a challenge (similar version naming, inconsistent evaluation criteria, hard to compare directly). Building a neutral, reproducible evaluation and cost assessment method is therefore more valuable than chasing a single leaderboard ranking.

    2. Why Traditional Benchmarks Fall Short for Agents

    Traditional benchmarks (standardized multiple-choice questions, short text generation) have three structural weaknesses:

    1. Short tasks: They cannot expose goal drift and forgetting under long contexts.
    2. No environmental feedback: The model does not actually execute code or call APIs, so errors are never penalized by the environment.
    3. Single-point scoring: Only final answer text similarity is measured, ignoring the correctness and recoverability of the intermediate process.

    Agent benchmarks are designed on the opposite logic: place the model in an interactive environment, give it a goal that requires multiple steps, and use “was it actually achieved” as the only criterion. This type of evaluation is closer to real development and operations scenarios, and better at distinguishing the practical usability of different models.

    3. The Technical Meaning of Four Core Capability Dimensions

    The following four dimensions are capability facets that repeatedly appear in industry agent evaluations. Understanding what each one tests matters more than memorizing a specific score.

    3.1 Real Repository Understanding and Cross-File Modification

    Tests whether the model can locate a problem in an existing project, understand module dependencies, make consistent changes across multiple files, and verify them by running the code. The difficulty: real repositories contain large amounts of noise code unrelated to the task, so the model must separate “relevant context” from “distracting information” while ensuring changes do not break existing interface contracts.

    3.2 From Natural Language Requirements to a Complete Repository

    Given a natural language requirement, the model must generate the directory structure, multiple source files, and configuration files from scratch, and ensure the project runs. This tests planning ability and structural consistency: whether the module breakdown is reasonable, whether dependency declarations are complete, and whether naming style is consistent.

    3.3 Tool Selection and Consecutive Invocation

    The model must select the correct tool from the available tool set, invoke tools consecutively in order, and adjust the subsequent flow when a step returns an error. This dimension maps directly to real-world scenarios such as automated operations and data processing pipelines. The key metrics are “flow completion rate” and “error recovery rate.”

    3.4 Cross-Industry Professional Tasks and Delivery Reliability

    Covers professional tasks across multiple industries, emphasizing long-term planning, GUI or command-line operation, and the reliability of the final deliverable. It measures the model’s transfer ability in unfamiliar domains and its awareness of self-verification.

    4. Abstracting and Interpreting Cross-Model Comparison Conclusions

    Without pointing to any specific product, the cross-model comparison conclusions that appear in public technical documentation can be abstracted into the following forms:

    • One model leads on all four dimensions, ahead of the second place by roughly 5 points on a simple average, with the most pronounced advantages in repository modification and consecutive tool invocation, leading by about 9 points and 8 points respectively.
    • Two other models split the results, each winning two: one is stronger on “existing codebase engineering” and “real tool invocation,” the other is stronger on “generating a complete repository from scratch” and “cross-industry operation,” with a simple average gap of only about 0.1 points across the four, within the range of statistical noise.
    • Key reminder: the agent frameworks, context lengths, reasoning effort, number of repeated runs, and anti-cheating rules used by each side all differ, so the scores are reference only and cannot be equated with real experience.

    A methodological point needs emphasis here: a simple average is itself biased. The four dimensions are not equivalent in difficulty or business value. If your scenario is mainly maintaining existing systems, give higher weight to “repository understanding and modification”; if it is mainly internal toolchain automation, amplify the weight of “tool invocation.” The recommended approach:

    1. Weighted score = Σ (dimension score × business weight)
    2. Example business weights (existing-system maintenance team):
    3. Repository understanding and modification 0.45
    4. Consecutive tool invocation 0.30
    5. Repository generation 0.15
    6. Cross-industry tasks 0.10

    In addition, the variance of an evaluation deserves more attention than the mean. Agent tasks usually need to be run repeatedly multiple times. If a model has a slightly higher mean but extremely large variance, it is actually harder to predict in production. In engineering practice, record the completion status, failure stage, and number of recoveries for each run, rather than keeping only an average score.

    5. From Leaderboards to Self-Testing: A Reproducible Evaluation Process

    Leaderboards are only for initial screening; the final selection should be based on your own task set. Recommended process:

    1. Build the task set: Extract 30–100 real tasks from historical tickets, covering defect fixes, script generation, batch data processing, and other types.
    2. Fix the environment: Standardize the container image, dependency versions, timeout, and the whitelist of available tools to avoid environment differences polluting results.
    3. Run multiple times: Run each task at least 3 times, recording success rate, average number of steps, and the distribution of failure stages.
    4. Stratified statistics: Compute statistics separately by task type instead of looking only at the overall mean.
    5. Cost accounting: Convert token consumption, number of tool calls, and human intervention rate into cost per task.

    An illustrative evaluation record structure:

    1. {
    2. "task_id": "fix-null-check-017",
    3. "runs": [
    4. {"success": true, "steps": 12, "tool_calls": 4, "tokens": 48210},
    5. {"success": false, "steps": 20, "tool_calls": 7, "tokens": 76930, "fail_stage": "verify"}
    6. ],
    7. "success_rate": 0.67,
    8. "avg_cost_per_task": 0.031
    9. }

    6. Quantifying Local Deployment Costs

    When cloud pricing is not published, local deployment is the main lens for judging cost. The core variables are parameter count, quantization bit width, and context length. The following empirical formulas can be used for capacity estimation:

    1. Weight VRAM ≈ parameter count × bytes per parameter
    2. FP16: 2 bytes/parameter
    3. 8bit: 1 byte/parameter
    4. 4bit: 0.5 bytes/parameter
    5. KV cache ≈ 2 × layers × hidden dimension × context length × number of sequences × bytes per element
    6. Total VRAM ≈ weight VRAM + KV cache + runtime overhead (about 10%–20%)

    Take a model in the 30-billion-parameter class as an example: after 4-bit quantization, the weights are about 15–17GB. Adding the KV cache and runtime overhead, a single 24GB VRAM card is feasible at moderate context lengths. If the model doubles in scale to the 60-billion-parameter class, 4-bit weights are about 30–34GB, which usually requires a dual-card setup or a single card with large VRAM. The impact of context length on the KV cache is linear, so long-context scenarios should prioritize evaluating VRAM rather than compute.

    Three points are often overlooked in engineering:

    • Memory and disk matter just as much: Loading quantized weights requires sufficient host memory and high-speed storage; otherwise cold start time increases significantly.
    • Throughput over single-point latency: In concurrent scenarios, balance tokens output per second against time to first token.
    • Quantization accuracy loss must be measured: 4-bit is acceptable on most tasks, but for strict numerical and long-chain reasoning tasks, run before-and-after comparison tests.

    If a cloud approach is used, a combination of general capabilities can carry the workload: object storage holds models and datasets, a container platform hosts inference services and elastic scaling, a message queue smooths out peaks, and logging plus monitoring and alerting services handle observability.

    7. Selection Advice: By Scenario, Not by Ranking

    • Mainly maintaining existing systems: Prioritize repository understanding and cross-file modification ability; pay attention to context length and toolchain compatibility.
    • Mainly automation pipelines: Prioritize consecutive tool invocation and error recovery ability; pay attention to concurrent throughput and permission isolation.
    • Mainly rapid prototyping: Prioritize the quality of generating a complete project from requirements; pay attention to the maintainability of generated code.
    • Cost-sensitive teams: Focus on local quantized deployment; first estimate VRAM and throughput, then decide the number of cards and the concurrency ceiling.

    8. Conclusion

    Competition in model capability has shifted from “who answers more convincingly” to “who finishes the work.” For developers, the most robust strategy is: use the abstracted capability dimensions to understand each vendor’s technical documentation, use your own task set for weighted evaluation, use parameter count and quantization bit width for cost estimation, and ultimately base selection on reproducible data rather than leaderboard positions. As open-source iteration continues to accelerate, the reuse value of this methodology far exceeds any one-time ranking conclusion.