Evaluating Open-Source LLM Agents: Benchmarks, Custom Evaluations, and Model Selection

    As LLM evaluation shifts from single-turn question answering to agentic tasks, choosing an open-source model requires more than average benchmark scores. This article explains four agent evaluation dimensions—real-world repository engineering, project generation, tool use and workflow orchestration, and computer operation with long-horizon planning—and how to interpret benchmark results. It also outlines how to build a small custom evaluation set with consistent scoring, estimate local deployment costs including weight size and KV Cache overhead, and follow a practical selection workflow.

    1. Why Agent Capabilities Have Become a Key Selection Criterion

    Over the past year, the focus of LLM evaluation has shifted from question answering, writing, and math problems to agent capabilities. Agent capability refers to a model’s ability to complete tasks autonomously in a real environment: understanding requirements, planning steps, calling tools, operating an environment, verifying results, and delivering output. This type of capability tests systemic behavior across long chains, multiple stages, and error correction; single-turn reasoning scores cannot reflect it.

    Open-source models are also updating faster. Medium parameter sizes (around 20B to 30B) and their derivative models are popular among many developers because this scale balances effectiveness, GPU memory usage, and inference speed. However, with more models available, selection becomes harder. This article does not focus on a specific product; instead, it provides an evaluation method that can be applied to any new model.

    2. Four Evaluation Dimensions for Agent Capabilities

    Evaluation sets used in several model technical reports can be roughly grouped into four categories. Each category answers a different question and suits different use cases.

    Dimension Core question Typical tasks Main capabilities assessed Selection focus
    Real-world repository engineering Can it work in an existing repository? Locate issues from an Issue, modify multiple files, run tests Repository understanding, defect localization, cross-file modification, closed-loop verification Teams mainly maintaining existing code
    Project generation Can it build a complete project from scratch? Output directory structure, configuration, and multi-module code from requirements Architecture design, multi-file coordination, project completeness Teams mainly prototyping new projects
    Tool use and workflow orchestration Can it use the toolchain correctly? Select tools, call them in order, pass parameters, handle failures Tool selection accuracy, workflow continuity, exception recovery Scenarios mainly based on automated workflows
    Computer operation and long-horizon planning Can it complete compound tasks across applications? Process documents, organize data, and coordinate multiple applications in a virtual computer Long-term planning, interface operation, delivery reliability Work requiring cross-application collaboration

    Real-world repository engineering examines a model’s ability to work in an existing project. A typical approach is to give the model an Issue from a real open-source project and let it browse the repository, locate the root cause, modify code, and run tests. For enterprise users, this dimension is closest to daily R&D, because most engineering work happens on existing code rather than from scratch.

    Project generation examines a model’s ability to start from a natural-language requirement and build a runnable, complete project. It places more value on whether the directory layout is reasonable, module boundaries are clear, and imports and configuration across files are consistent. Models often differ on the first two dimensions: some are better at modifying existing code, while others are better at building frameworks. Before selection, clarify your primary scenario.

    Tool use and workflow orchestration is the most error-prone part of agent deployment. A model needs to select the correct tool from similar options, call tools in the correct order, pass parameters, and after an error, analyze the cause and adjust its strategy. Many models perform acceptably on single calls, but in long-chain tasks with five or more steps, errors accumulate.

    Computer operation and long-horizon planning examines a model’s ability to complete compound tasks in a virtual computer environment. These tasks are still limited by permission settings, environment stability, and long-chain reliability; outputs usually require human review. Currently, this dimension is better used as a capability reference, not as a direct basis for fully replacing human work.

    3. How to Interpret Benchmark Results

    First, do not look only at average scores. Two models may have similar simple averages but different strengths. Suppose Model A is stronger at code modification and Model B is steadier at tool use; their total scores are similar, but their applicable scenarios are completely different. Selection should look at the sub-scores that correspond to your own business.

    Second, pay attention to evaluation methodology. For the same model, changing the agent scaffold, context length, reasoning intensity, number of runs, or anti-cheating rules can change the score, sometimes by several percentage points. Therefore, conclusions from direct cross-report score comparisons have limited reliability. When reading a report, first confirm the following:

    • The name and version of the evaluation set, such as the SWE-bench series for code repair, OSWorld for computer operation, and BFCL for function calling;
    • Whether the agent scaffold and tool configuration are consistent;
    • The maximum steps, timeout, and number of runs per task;
    • Whether external retrieval or human intervention is allowed.

    Third, leave room in your conclusions. Public leaderboards reflect results under specific settings, not your business outcomes. Treat them as an initial screening tool.

    4. Custom Evaluation: Let Your Own Tasks Speak

    The most reliable method is to build a small evaluation set using real business tasks. Each task should include an instruction, an initial environment, a checker script, and a dimension. The following code is an illustrative skeleton; it is not directly runnable and must be replaced with implementations in your own environment:

    1. # Illustrative code: not directly runnable; replace with implementations for your own environment.
    2. tasks = load_tasks("my_eval_set.jsonl") # One task per line: instruction, initial environment, checker script path, dimension
    3. RUNS_PER_TASK = 3 # Number of repeated runs for the same task to reduce randomness
    4. MAX_STEPS = 20 # Maximum steps per run; keep consistent across all candidate models
    5. TIMEOUT_SEC = 600 # Timeout per run in seconds
    6. def verify(workspace, checker_path):
    7. # Run the task's checker script (e.g., unit tests); return True if it passes, otherwise False
    8. ...
    9. for model in candidate_models:
    10. for task in tasks:
    11. passes = 0
    12. for _ in range(RUNS_PER_TASK):
    13. result = agent_run(model, task, max_steps=MAX_STEPS, timeout=TIMEOUT_SEC)
    14. if result.infra_error: # Only infrastructure failures (e.g., container crash) may be retried; model failures are not retried
    15. result = agent_run(model, task, max_steps=MAX_STEPS, timeout=TIMEOUT_SEC)
    16. passes += verify(result.workspace, task.checker_path)
    17. record(model, task.dimension, passes / RUNS_PER_TASK) # Pass rate = passes / runs
    18. analyze_by_dimension() # Output pass rate by dimension and annotate the number of tasks in each dimension

    A few conventions make results more comparable:

    • Consistent scoring: Calculate pass rate by run count, and use the same maximum steps, timeout, and checker scripts for all models.
    • Sufficient sample size: At least 20 tasks per dimension are recommended. With too few samples, a single task result can sway the conclusion.
    • Distinguish failure types: Record infrastructure failures and model failures separately; the former should not count toward the model score.

    5. Cost Perspective: What to Estimate for Local Deployment

    Beyond capability, deployment cost is the other half of selection. The following three items need separate estimates.

    1. Weight size. 4-bit quantized weights can be roughly estimated as “parameter count × 0.5 bytes”, plus about 10% to 20% additional overhead (such as embedding layers and quantization metadata). Based on this:

    Model scale Estimated 4-bit weight size Notes
    ~20B ~12GB Theoretical value ~10GB plus additional overhead
    ~30B ~18–20GB Theoretical value 15GB plus additional overhead
    ~70B ~40GB or so Theoretical value 35GB plus additional overhead

    These numbers are estimates only; actual size depends on the specific model, quantization format, and whether some high-precision layers are retained. Before deployment, use the file size on the model release page as a reference and measure on the target hardware.

    2. KV Cache overhead. Agent tasks usually require long context, and each step retains history. KV Cache GPU memory usage grows with context length, concurrent requests, and model structure. In long-context or high-concurrency scenarios, it may exceed the weights themselves. When planning hardware, estimate separately according to your context length and concurrency, and confirm whether the inference framework supports optimizations such as paged KV Cache management.

    3. Operational complexity. The release speed of quantized versions, the completeness of community documentation, and compatibility with mainstream inference engines (such as vLLM and llama.cpp) all affect labor input. These costs are not in GPU memory numbers, but they often determine whether a model can be deployed smoothly.

    6. Selection Workflow

    1. Define the primary scenario first. For existing code maintenance, look at the repository engineering dimension; for from-scratch building, look at project generation; for workflow automation, look at tool use.
    2. Use public leaderboards for initial screening. Refer only to the sub-scores that correspond to your scenario, and check whether the evaluation settings are close to your environment.
    3. Re-test with a custom evaluation set.