Evaluating Open-Source LLM Agents: Benchmarks, Model Selection, and VRAM Estimation
This article explains how to assess agent capabilities in open-source LLMs without relying on isolated benchmark screenshots. It covers four evaluation dimensions—real codebase engineering, project generation from scratch, tool selection and sequential calling, and cross-industry professional tasks—then outlines what to verify in technical reports, how to build a comparison table with consistent settings, and how to estimate local VRAM for model weights and KV cache. It concludes with a practical selection workflow and cost considerations.
Introduction: Use Real Tests Instead of Benchmark Screenshots
Agent capabilities in open-source models change quickly, and a single benchmark screenshot is rarely enough to support a model-selection decision. This article does not list specific rankings, because public score gaps often lack provenance and evaluation setup, leaving readers unable to verify them. The sections below cover four evaluation dimensions, the criteria to check when reading reports, how to build your own comparison table, and how to estimate local VRAM.
1. What Agent Capabilities Actually Measure
A standard LLM question-answering task only requires a text response. An agent, by contrast, must understand the task, choose tools, execute multiple steps in sequence, and adjust on its own when errors occur. Evaluating agent capability therefore means checking whether the model can complete real work in real tasks, not just looking at language metrics.
Agent capability can be broken down into four dimensions:
- Real codebase engineering. Given a real repository and a bug description, the model must locate the problem, modify code across files, and run tests to confirm that the change does not break existing functionality. The SWE-bench series is a common reference for this dimension; tasks are taken from real merged fixes in repositories and judged with test cases.
- Project generation from scratch. The model outputs a complete directory, configuration files, and multiple source files based on a natural-language requirement. Evaluation metrics include whether the project can be installed, whether it can start, and whether key functions work.
- Tool selection and sequential calls. The model must choose the right tools from a set, order calls according to dependencies, and modify parameters and retry after tool errors. The Berkeley Function Calling Leaderboard (BFCL) and τ-bench are representative benchmarks for this capability.
- Cross-industry professional tasks. This simulates office scenarios, including file organization, spreadsheet processing, document writing, and multi-step planning. OSWorld focuses on computer operation, while GDPval covers deliverables across multiple occupations.
Specific task settings for each benchmark should follow the official pages; confirm the version number before citing.
2. Four Things to Verify When Reading Technical Reports
Scores for the same benchmark are not necessarily directly comparable across reports. When reading a report, check the following four items first:
- Benchmark version: Benchmarks with the same name are updated. Different subsets and versions mean scores cannot be compared across versions.
- Agent framework: The same model in different agent frameworks may score very differently. The framework determines prompts, tool descriptions, and retry logic.
- Inference and sampling settings: Reasoning effort, context length, and sampling count (single run vs. best-of-N) all affect results.
- Test rules: Whether web retrieval is allowed, whether human hints are provided, and whether questions have been cleaned or decontaminated.
If a report does not clearly state one of these items, treat that score as reference only and do not use it to draw conclusions.
3. Build Your Own Comparison Table
When comparing candidate models, use a single table and note the evaluation setup in every row:
| Model and version | Codebase engineering | Project generation from scratch | Tool calling | Cross-industry tasks | Agent framework | Context limit | Sampling count | Data source |
|---|---|---|---|---|---|---|---|---|
| Candidate model A | To be filled | To be filled | To be filled | To be filled | To be filled | To be filled | To be filled | Report link |
| Candidate model B | To be filled | To be filled | To be filled | To be filled | To be filled | To be filled | To be filled | Report link |
An average score is meaningful only when all four dimensions come from the same evaluation setup. If two models have very close total scores, compare their performance on the dimension you care about rather than looking only at the total.
4. VRAM Estimation for Local Deployment
For local deployment, VRAM and system memory are mainly consumed by two things: model weights and the KV cache during inference.
The formula for estimating weight footprint is:
Weight footprint (GB) ≈ parameter count (B) × bit width (bit) ÷ 8
Using 4-bit quantization as an example, the estimates for three model tiers are as follows:
| Parameter count | 4-bit theoretical weight footprint | Common actual GGUF size (approx. 4.8-bit average bit width) |
|---|---|---|
| 27B | 13.5 GB | About 16 GB |
| 70B | 35 GB | About 42 GB |
| 600B (MoE flagship) | 300 GB | About 360 GB |
GGUF and similar formats have a higher average bit width than 4-bit, so actual files are larger than the theoretical value. Even if an MoE model activates only a subset of its parameters at a time, all weights must still fit in VRAM or system memory. The numbers above are estimates only; before downloading, use the file size listed on the model page.
The formula for estimating KV cache is:
KV Cache (bytes) ≈ 2 × layers × KV heads × head dimension × context length × concurrency × bytes per element
Here, 2 represents the K and V caches. Under FP16, each element uses 2 bytes. For example, assume a model has 48 layers, 8 KV heads, a head dimension of 128, a context length of 32768, concurrency of 1, and uses FP16. The KV cache is then about 6.4 GB.
Agent tasks usually have long contexts because tool-returned logs, file contents, and conversation history all consume context. As concurrency increases, the KV cache also scales. Therefore, in long-context agent scenarios, actual usage is often significantly higher than the weight estimate.
In addition, the inference framework, CUDA context, and activations consume extra resources; the exact values depend on the framework and hardware and should be measured. When planning hardware, reserve 20% to 30% headroom. Memory bandwidth also affects generation speed; if bandwidth is insufficient, responses will be slower even when VRAM is sufficient.
5. Model Selection Workflow
- Define the scenario first. For code repair and automated tool calling, prioritize codebase engineering and tool calling. For building projects from scratch and office automation, prioritize project generation and cross-industry tasks.
- Filter by hardware. Estimate VRAM using the formulas above, exclude models that cannot fit, and then move on to real testing.
- Run real tests. Prepare 10 to 20 real tasks covering common types of daily work. Keep prompts, agent framework, context limit, and sampling settings consistent. For each run, record the following fields: whether the task was completed, number of manual edits, average turns, main failure types, and time per task.
- Calculate cost. For local deployment, consider VRAM, throughput, and electricity. For cloud APIs, consider token-based pricing, rate-limit rules, and the additional overhead caused by failed retries.
