How to Evaluate LLM Capabilities and the Value of Local Deployment
This article explains how to assess large language models by real task completion, reproducible testing, and cost per successful task. It also covers the cost, quantization, data control, and tool permission issues to consider for local deployment, and a phased rollout approach.
The evaluation of large language models is shifting from “Can it answer questions?” to “Can it reliably get work done?” For developers, the key question is not whether a demo produced an impressive web page. It is whether a model can consistently deliver acceptable results within acceptable cost, latency, and risk limits.
Discussions of new models usually focus on three areas: whether capability approaches the industry’s leading level, whether usage costs drop noticeably, and whether local deployment gives stronger control over data. These questions matter, but conclusions should not rest on social media discussion, single screenshots, or how a model ran on one device.
A more reliable approach is to turn product claims into general technical questions: how to prove capability, how to account for cost, and how to verify that deployment is feasible.
1. Evaluating Capability: Start by Defining “Leading Performance”
“Approaching the leading level” is not a precise technical conclusion. A model may be good at generating interfaces but weak at modifying a large codebase. It may respond quickly to short questions but miss constraints in long documents. It may also produce an excellent result once and vary noticeably when run again.
For this reason, capability should be evaluated against specific tasks rather than general rankings.
1. Output quality: generating something is not the same as delivering it
Take the generation of a business page as an example. Visual appearance is only one part of acceptance. A page that looks complete still needs to be checked for:
- whether the layout works across different screen sizes;
- whether form validation, error messages, and state changes are complete;
- whether interactive controls can be operated with a keyboard;
- whether users get understandable feedback when data loading fails;
- whether the code structure is easy to maintain;
- whether it introduces unnecessary dependencies or security risks.
Comparing screenshots alone can easily mistake similar appearance for similar engineering ability. A proper comparison should include running tests, checking interactions, and reviewing the code.
2. Task completion rate: include the repair process
Programming tasks are often not single question-and-answer exchanges. They are multi-round loops:
Understand requirements → Generate changes → Run tests → Analyze errors → Fix again
Record whether a model can complete the entire loop within a set time and number of interactions. First-pass quality, final completion rate, and the number of human interventions each reflect a different capability. None of them can replace the others.
A model may be cheap per call, but if it needs more rounds of rework, its final cost may not be lower.
3. Stability: look beyond average performance to failure boundaries
Production systems care not only about the best a model can do, but also about the worst that can happen.
Run the same task several times independently, and observe the success rate and the variation in results. Add abnormal inputs, conflicting requirements, missing materials, and operations that cannot be performed. Then check whether the model acknowledges its limits or generates content that looks plausible but is wrong.
For scenarios involving code execution or business writes, the loss from one high-risk error can exceed the savings from many routine tasks.
2. Building Reproducible Evaluations
A credible evaluation needs a defined test set, execution environment, scoring method, and resource budget.
1. Build the test set from real tasks
Test tasks should come from the team’s actual work, not only from cases selected because they look good in a demo. Examples include:
- implementing a page with validation and error handling from a requirements description;
- fixing a defect with clear reproduction steps;
- understanding call relationships across several files and completing a change;
- extracting rules from a long document and identifying conflicts;
- completing a multi-step operation under restricted tool permissions.
The test set should cover common tasks and key risk scenarios. Keep some tasks out of prompt tuning so the evaluation is less likely to overfit the test set.
2. Fix the conditions that affect results
When comparing models, record the input materials, context length, tool permissions, output limits, retry rules, and timeout conditions.
Two kinds of tests are useful. One fixes the resource budget and compares which model performs better. The other fixes the acceptance standard and compares which model uses fewer resources. The two answer different questions, so they should not be merged into one “cost-effectiveness ranking.”
If one option receives more background material, extra human hints, or longer execution time, disclose that clearly with the results.
3. Use multiple metrics instead of a single score
Record at least the following metrics:
| Dimension | Key metrics | Question it answers |
|---|---|---|
| Correctness | Test pass rate, rule satisfaction rate | Does the result meet the requirements? |
| Completion ability | End-to-end success rate, human takeover rate | Can the model finish the work independently? |
| Efficiency | Total time, number of call rounds, throughput | How many resources does the task require? |
| Stability | Result variation across repeated runs | Can the performance be reproduced? |
| Risk | Unauthorized operations, information leakage, incorrect execution | Is it suitable for production systems? |
Automated tests suit results that can be judged clearly. Human review adds judgment on maintainability, requirement understanding, and risk. Combining both is usually more reliable than relying on subjective scoring alone.
3. Judging Cost Advantage: Calculate the Cost per Successful Task
Model call prices are only one part of the cost. For developers, a more meaningful metric is the actual spending required to complete one task that passes acceptance.
Use this formula:
Cost per successful task = Total cost during the evaluation period ÷ Number of tasks that pass acceptance
Depending on the comparison goal, total cost may include call fees, compute resources, tool execution, retries after failures, human review, and operations work. The numerator must include resources consumed by failed tasks. Otherwise, the actual cost of an option with a low success rate will be underestimated.
1. Lower throughput does not necessarily mean higher efficiency
Fewer input and output tokens may come from more precise reasoning. They may also come from answers that are too short, omit requirements, or stop early.
Before judging processing efficiency, confirm that the result quality is comparable. Only when fewer resources complete the task under the same acceptance standard does the option show higher efficiency.
2. Distinguish response speed from completion speed
The latency users perceive includes queuing, input processing, time to first output, continuous generation, tool calls, and retries.
Interactive assistants usually focus on whether the first response arrives promptly. Background automation focuses on total completion time and throughput per unit of time. Different scenarios need different metrics, so “faster generation” should not be used as a general summary.
3. Local inference has no per-call bill, but it is not free
Local inference still involves hardware depreciation, electricity, storage, maintenance, and failure handling. When the equipment sits idle, these costs still accumulate.
“No longer paying per call” and “no usage cost” are two different things. Local deployment may show an economic advantage only when utilization, task volume, and usage period reach a certain level.
4. Low-Bit Quantization Lowers the Barrier, but Its Effects Must Be Verified
Quantization reduces the numerical precision used to represent data such as model weights. This cuts storage and memory needs. It is an important technique for running large models locally, but it is not compression without tradeoffs.
1. Weight size is only the starting point for memory requirements
Weight storage can be roughly estimated as:
Weight storage ≈
