How to Evaluate Agentic Capabilities of Open-Source LLMs and Estimate VRAM for Local Deployment
As competition among large language models shifts from single-turn Q&A to agentic capabilities, teams need reliable ways to evaluate models and plan deployment costs. This article explains four core evaluation dimensions for agentic abilities, three prerequisites for interpreting benchmark scores, how to build a private evaluation set, and how to calculate VRAM requirements for local deployment—including model weights, KV Cache, and headroom—so you can make informed model selection decisions.
Why Agentic Capability Has Become the Key Selection Criterion
Competition among large language models is shifting from single-turn question answering to agentic capability. Agentic capability refers to a model’s ability to complete a full closed loop in real workflows: understanding a task, breaking it down into a plan, calling tools, reading and writing code, verifying results, and correcting itself when something goes wrong. A model that answers a single question well does not necessarily complete an entire pipeline reliably.
The open-source community has recently released several flagship models in quick succession. Trending charts on model hosting platforms also show that mid-sized models are attracting more attention. Many teams are finding that, when balancing capability against deployment cost, mid-tier models often deliver better value.
Four Core Evaluation Dimensions
Vendors attach benchmark scores to their model releases, but the benchmarks they use are often different from one another. When comparing models, prioritize benchmarks that are widely cited by multiple parties and that measure non-overlapping aspects. The table below lists the four main dimensions.
| Dimension | What It Tests | Suitable Use Cases | What to Watch When Reading Scores |
|---|---|---|---|
| Real-world repository engineering | Locating defects, understanding cross-module dependencies, modifying multiple files and running tests | Teams maintaining existing codebases | Verify how the test pass rate is calculated |
| Generating complete projects from natural language | Building directory structures and multi-file projects from scratch based on requirements, with runnable results | Scaffolding generation, new project kickoff | Focus on whether the project runs directly, not just code volume |
| Continuous tool-chain invocation | Selecting the right tools, calling them in sequence, and adjusting strategy when intermediate results fail | Automated operations, data processing pipelines | Pay close attention to error recovery ability |
| Cross-domain professional composite tasks | Long-term planning, simulated computer operation, delivering final results | Office automation, end-to-end business workflows | Results are heavily influenced by task design; check the task distribution |
Three Prerequisites for Interpreting Benchmark Scores
Benchmark scores indicate a general direction, but before comparing them directly, you need to confirm three things.
First, whether the agent framework is consistent. The same model can score very differently across frameworks because tool definitions, prompts, and retry logic differ.
Second, whether the runtime settings are consistent. Parameters such as maximum context length, reasoning effort, and number of runs all affect results. If a model is run only once, the variance may exceed the gap between two models.
Third, whether anti-cheat rules are consistent. For example, whether the model is allowed to read test cases directly changes the actual meaning of a score.
Therefore, if two models differ by only a few points, they most likely belong to the same tier. Scores are suitable for narrowing down candidates, not for making final procurement decisions on their own.
Replace Leaderboard-Chasing with a Private Evaluation Set
Leaderboards reflect general capability distributions; a private evaluation set reflects your own business. You can build one with the following steps:
- Extract 20–50 representative tasks from real tickets, historical requirements, or logs, covering common scenarios plus a few difficult ones.
- For each task, define the input, verifiable success criteria, and scoring rules. For example, “all tests pass after the fix” counts as a pass, while “functionally works but the code structure is messy” counts as a partial pass.
- Retest all candidate models under the same agent framework, the same context length, and the same number of runs. Run each model at least 3 times, and record both the average and the variance.
- Categorize failures by cause, such as wrong tool selection, context loss, or premature termination. Then decide whether to switch models or adjust prompts and workflows.
When the two conclusions conflict, trust the private evaluation set.
How to Estimate Local Deployment Costs
Most newly released models have not yet published cloud pricing, so local deployment cost is a factor you can estimate in advance. The estimate has two parts: model weight size and the KV Cache during inference.
Weight Size
Weight size roughly equals the parameter count multiplied by the bytes per parameter. With 4-bit quantization, each parameter takes about 0.5 bytes.
- A 27B model: 27 × 0.5 ≈ 13.5 GB. In practice, quantization formats keep some layers at higher precision and include metadata overhead, so common 4-bit files are usually around 15–18 GB, depending on the chosen format.
- A 54B model: 54 × 0.5 ≈ 27 GB, with actual files around 30–35 GB. Doubling the parameter count roughly doubles the weight size.
For MoE models, storage and VRAM must still be calculated based on the total parameter count, because weights typically need to be fully loaded during inference. Inference speed, however, behaves more in line with the number of activated parameters.
KV Cache
KV Cache grows linearly with context length and concurrency. In long-context agentic tasks, it can exceed the size of the weights themselves. The estimation formula is:
KV Cache size = 2 × number of layers × number of KV heads × head dimension × context length × concurrency × bytes per element
The number of layers, KV heads, and head dimension need to be read from the model’s configuration file. Using a set of hypothetical parameters—64 layers, 8 KV heads, head dimension of 128, and FP16 precision for the cache (2 bytes per element)—the KV Cache for a single 32K context is:
2 × 64 × 8 × 128 × 32768 × 1 × 2 ≈ 8.6 GB
With 4 concurrent requests at 32K each, the KV Cache for the same model would be about 34 GB.
VRAM and Reserved Headroom
Total VRAM ≈ weights + KV Cache + runtime buffer. A runtime buffer of 10%–20% is generally reserved. Taking a 27B model with 4-bit quantization and a single 32K context as an example:
- Weights are about 15–18 GB, plus roughly 8.6 GB of KV Cache, totaling about 24–27 GB.
- Adding a 10%–20% runtime buffer, the total requirement is roughly 26–32 GB.
This means a 24 GB GPU leaves very tight headroom for a single 32K context. For long contexts or high concurrency, calculate the KV Cache with the formula first, then add the buffer—do not apply a fixed ratio blindly.
In addition, when keeping multiple quantized versions locally, reserve corresponding disk space, along with room for temporary files during download and conversion.
Model Selection Recommendations
- Match models to task types. Teams maintaining existing codebases or automating workflows should prioritize real repository engineering and tool-calling scores. For scaffolding generation and office automation, focus on project generation and composite task scores.
- Use leaderboards to narrow down candidates first, then make the final decision with your private evaluation set.
- Calculate the total cost. Include weights, KV Cache, concurrency headroom, hardware depreciation, and operational time. When workloads fluctuate significantly, cloud inference services are usually more convenient and support pay-as-you-go billing. When workloads are stable and usage is consistently high, local deployment may offer lower unit costs.
- Retest after quantization. 4-bit quantization may reduce accuracy, especially for long-chain reasoning and code generation. Retest with your private evaluation set rather than merely confirming that the model file loads.
