Practical Guide to Performance and Capability Evaluation for Local LLM Deployment
As open-source large language models (LLMs) become increasingly popular for local deployment, moving from simply "running" to "running well" requires a comprehensive evaluation process. This guide explores a typical local deployment evaluation across two critical dimensions: inference performance and task capabilities. We break down key metrics such as prefill throughput, decode speed, and time to first token (TTFT), alongside capability testing for structured tasks like SQL generation. By analyzing common bottlenecks, failure modes, and token consumption patterns, this article provides actionable optimization strategies for developers to refine model selection, prompt engineering, and deployment configurations.
Practical Guide to Performance and Capability Evaluation for Local LLM Deployment
In recent years, open-source large language models (LLMs) have become increasingly popular for local deployment. However, there is a significant gap between simply getting a model to run and ensuring it runs optimally, a gap bridged by thorough evaluation. Based on a typical local deployment testing process, this article systematically outlines key metrics, common bottlenecks, and optimization paths for LLM evaluation from two dimensions: inference performance and task capabilities. It serves as a reference for developers during model selection and deployment tuning.
1. Why Two Types of Evaluation are Necessary
Before deploying an LLM, two questions must be answered: First, is the inference service performance sufficient? This dictates user experience and resource costs. Second, does the model capability meet the standard? This determines whether it can truly accomplish business tasks. Both are indispensable—a model that is fast but inaccurate, or accurate but takes minutes to respond, cannot be practically deployed.
A standardized evaluation should include:
- Performance Layer: Prefill throughput, decode speed, TTFT (Time to First Token), and concurrency degradation curve.
- Capability Layer: Accuracy in structured tasks (e.g., SQL generation, tool calling), failure mode classification, and token consumption profiling.
2. Inference Performance Evaluation: Key Metrics and Interpretations
2.1 Prefill Throughput
During the prefill phase, the model processes the input prompt in batches, which is a primary bottleneck in long-context scenarios. It is recommended to test input lengths ranging from 2k to 32k tokens and measure peak throughput under single concurrency. The ideal characteristic is that throughput shows no significant degradation across the length range. In our testing, single-concurrency peak throughput reached about 750 tok/s, stabilizing between 630–760 tok/s in the 2k–32k range, indicating healthy prefill scheduling for long contexts.
2.2 Concurrency Degradation
Concurrency capability cannot be tested with a single stream alone. A typical pattern is: doubling concurrency reduces single-stream prefill throughput by 30%–45%; at 4 concurrent requests, it drops by about half; at 6, it may lose over 60%. If the inference engine’s scheduling parameters (such as maximum concurrent sequences) are set too low, requests will block each other in the queue, causing long prefill requests to wait in line and TTFT to deteriorate sharply.
2.3 Decode Speed
Decode is the token-by-token generation phase, typically limited by memory bandwidth. Single concurrency usually stabilizes at 20–30 tok/s. However, under long prompts (16k/32k) combined with high concurrency (4–6 streams), it may drop to a low of 8–11 tok/s. This is a typical symptom of KV Cache expansion compressing available batch space.
2.4 TTFT (Time to First Token)
It is normal for TTFT to increase linearly with input length, but it is crucial to distinguish between “compute time” and “queue time.” For example, with a 32k input, single-concurrency TTFT is about 50 seconds, but at 6 concurrent requests, it can spike to over 180 seconds. In this scenario, queueing is the primary cause; simply upgrading to more powerful compute will not solve it, requiring intervention in the scheduling strategy instead.
3. Bottleneck Analysis and Optimization Directions
Performance collapse under high concurrency is most commonly rooted in a mismatch between the inference engine configuration and the VRAM budget:
- Undersized scheduling parameters: When the maximum concurrent sequence count is set to 2, excess requests are directly queued, spreading out throughput. Appropriately increasing the maximum concurrency and the token limit per batch can significantly improve high-concurrency throughput.
- VRAM near capacity limit: If GPU utilization is already above 0.9 and KV Cache is nearly full, blindly increasing concurrency will trigger swapping or OOM (Out of Memory). In this case, consider quantizing the KV Cache, enabling PagedAttention, or horizontally scaling inference instances.
- Mixed long and short requests: Long prefill processes block short requests. Enabling chunked prefill or request priority scheduling can allow interactive requests to return the first token sooner.
4. Capability Evaluation: “Explicit” and “Implicit” Score Losses
4.1 Test Design
Using a SQL generation task as an example: Given 25 questions ranging from easy to difficult, the model must autonomously complete a tool-calling loop of “generate SQL -> run via an embedded execution engine -> verify results.” Judgment uses strict criteria: the row count, column count, column names, and the first row content must all match perfectly to pass.
4.2 Interpreting Test Results
The measured pass rate was about 36% (9/25), but stratifying the data reveals significant insights: all easy questions were correct, medium questions had partial passes, and difficult questions saw massive failures. More importantly is the failure mode analysis:
- Format loss (the majority): About 15 questions were “logically correct, but slightly off in format.” A typical example is the prompt requiring
ROUND(…, 2), which the model omitted, causing a mismatch in the first row string. If numerical tolerance is relaxed to 1e-6, the pass rate jumps to about 88%—indicating that the model’s core reasoning ability is far better than the surface score suggests. - Structural failures (minor but critical): For instance, returning incorrect column names in a multi-table JOIN + discount CTE scenario; window function questions for period-over-period comparisons returning 0 rows; or metric understanding deviations (calculating one channel’s share as another’s). These failures point to genuine capability shortfalls that require targeted optimization.
- Token consumption profile: Easy questions took an average of 2 steps and about 2.4k tokens to complete. Hard questions averaged over 6 steps, with some repeatedly retrying for 14–17 steps and consuming 55k tokens. Abnormal step expansion often indicates the model is stuck in an “error-retry” loop, a signal of issues in prompt or tool feedback design.
5. Actionable Optimization Suggestions
- Strengthen format constraints in prompts: Explicitly stating in the system prompt to “strictly retain ROUND and decimal places as required by the prompt, and align column names verbatim” can eliminate the majority of format losses at a low cost.
- Provide few-shot examples: Attaching correct example SQL in the prompt for error-prone patterns like window functions and CTEs significantly reduces structural errors.
- Improve tool feedback quality: Execution error information should be structured and locatable (error type + position + expected schema), helping the model self-correct in fewer turns and reducing token consumption.
- Layered attribution of evaluation results: Distinguish between “capability deficit” and “format/metric deviation” to avoid misjudging the model’s value based on a single pass rate.
6. Conclusion
The core of local LLM deployment evaluation is not to produce a single score, but to establish a closed loop of “metrics — bottlenecks — optimization.” On the performance side, use throughput, latency, and concurrency degradation to pinpoint scheduling and VRAM configuration issues. On the capability side, differentiate between format issues and logical issues through failure modes, then improve prompts and toolchains accordingly. Solidifying this methodology into a regression testing pipeline is the only way to continuously maintain quality baselines amidst model version iterations and deployment parameter adjustments.
