Local LLM Deployment Evaluation: A Practical Two-Dimensional Approach to Performance and Capability
This article presents a practical methodology for evaluating locally deployed large language models across two isolated dimensions: performance and capability. It explains why a model that loads weights and returns its first token is not yet production-ready, defines four core performance metrics (prefill throughput, decode throughput, TTFT, and concurrency degradation), and shows how to locate scheduling bottlenecks through a representative benchmark. On the capability side, it covers layered evaluation sets, strict versus lenient scoring, tool-call closed loops, failure-mode classification, and cost tracking. Readers will find a reusable checklist for building a reproducible, comparable evaluation pipeline.
1. First, Define the Problem: A “Successful” Local Deployment Is Not the Same as a “Usable” One
Loading the weights of a very large Mixture-of-Experts (MoE) model locally, mapping it into GPU memory, and returning the first token only solves the engineering plumbing. What actually determines whether the model can go into production are two things: whether it is fast enough under the target concurrency, and whether it is accurate enough on real tasks. When these two things are discussed together, you end up with unreproducible conclusions like “seems fine.”
So the first principle of evaluation is variable isolation: measure performance and capability separately, and fix the environment for each. Recommended baseline controls include: driver and runtime versions, quantization scheme and weight precision, maximum context length, KV cache utilization, batching-related parameters, sampling parameters (temperature, top-p, max generation length), and whether acceleration features such as speculative decoding are enabled. Any change to these requires a full rerun; otherwise the numbers are not comparable.
2. The Performance Dimension: Four Metrics and What They Really Mean
2.1 Metric Definitions
- Prefill throughput: tokens generated per second during the input-prompt processing stage; it determines time-to-first-token in long-document and long-context scenarios.
- Decode throughput: speed during the token-by-token generation stage; it directly determines the reading experience.
- TTFT (Time To First Token): the core of perceived latency, including queueing time plus prefill time.
- Concurrency degradation curve: the rate at which throughput changes as concurrency rises; a key input for capacity planning.
2.2 The Shape of a Typical Measurement
Take a trillion-parameter-class MoE model on a single machine with multiple GPUs and a KV cache utilization of about 0.9 as an example. The measurements show the following pattern (the numbers are for methodology illustration only and are not the metrics of any specific product):
| Dimension | Observed Result | Interpretation |
|---|---|---|
| Prefill, single concurrency peak | ~750 tok/s (4k input), holding 630–760 across the 2k–32k range | No significant degradation as length grows; the compute side is healthy |
| Prefill, concurrency degradation | 2 concurrent: −30% to −45%; 4 concurrent: ~−50%; 6 concurrent: ~−63% | Steep degradation, pointing to scheduling rather than compute |
| Decode, single concurrency | 24–29 tok/s, stable | Usable for a single user |
| Decode, concurrency | 8–18 tok/s; drops to 8–11 with long prompts at 4–6 concurrency | Long context combined with concurrency is the low point |
| TTFT | Rises linearly with length; at 32k input, ~51s at 1 concurrency and ~186s at 6 concurrency | Queueing is the main cause |
2.3 How to Locate the Bottleneck
The key diagnostic is this: if single-concurrency throughput is normal but concurrency throughput collapses, and TTFT grows far beyond the growth in prefill time itself, then the bottleneck is in the request-scheduling layer, not the compute layer. A common cause is that the engine’s maximum number of concurrent sequences is set too low, so concurrent requests queue up, long prefills block one another, and throughput gets averaged down.
The corresponding tuning direction is to raise the maximum number of concurrent sequences and the maximum tokens per batch, but you must trade off against GPU memory: when the KV cache is already near full, blindly increasing these triggers preemption and recomputation, which is actually slower. The recommended practical order is: first record KV utilization and the number of preemptions, then adjust batching parameters in small steps, changing only one variable per step and retesting at four lengths: 2k / 8k / 16k / 32k.
A representative load-test loop:
for concurrency in [1, 2, 4, 6]:for length in [2048, 8192, 16384, 32768]:stats = run_benchmark(prompt_len=length,max_new_tokens=256,num_prompts=concurrency * 4, # average over multiple rounds to suppress noise)report(concurrency, length, stats.ttft_p50,stats.prefill_tps, stats.decode_tps)
Note that the occasional throughput “rebound” at 32k length is usually data-point noise; do not draw conclusions from it when the sample size is insufficient. Take the median of at least three rounds per cell, and record both P50 and P95.
3. The Capability Dimension: Tool-Call Closed Loops and Scoring Strictness
3.1 Layering the Evaluation Set
Divide tasks into four tiers: trivial / easy / medium / hard, examining instruction following, single-step reasoning, multi-step planning, and long-chain stability respectively. Take a task like “convert natural language into a query statement and execute and validate it against a local analytical database.” The full closed loop is: generate the statement → call the execution tool → read the result → self-validate → return. The evaluation script should automatically check whether the row count, column count, column names, and first row all match.
3.2 A High-Signal Finding
In one measurement, the model autonomously completed the multi-round tool-call loop on all 25 questions, correctly writing complex multi-table joins and window functions (such as lagged columns, ranking, and cumulative ratios); but under strict official scoring, only 9 questions passed (36%). After relaxing numerical precision to 1e-6, the pass count rose to about 22 questions (88%).
This comparison shows: the main source of failure is not reasoning ability, but output-contract compliance—the rounding digits and column naming required by the problem statement were omitted. Such issues should not be recorded as model capability defects; they should be fixed by reinforcing format constraints through the system prompt and by providing target column names and rounding examples in the prompt.
3.3 Classifying Failure Modes
- Format: omitted rounding, mismatched column names—the largest share, solvable with prompt engineering.
- Definition: misunderstanding of business definitions (such as choosing the wrong channel dimension), requiring added definition explanations.
- Structure: complex queries returning empty result sets or mismatched column structures, requiring example statements.
3.4 Cost Observation
Record step count and token consumption at the same time: simple tasks average about 2 steps and about 2.4k tokens; hard tasks average about 6 steps, with some reaching 14–17 steps and about 55k tokens. Step count is a more sensitive leading indicator of cost than tokens, and should be presented alongside accuracy in the evaluation report.
4. Conclusion and a Reusable Checklist
The preliminary conclusion is: this configuration is usable for single-user interactive scenarios, while high-concurrency long-context scenarios require scheduling and GPU-memory tuning first; on the capability side, the real weakness is format contracts rather than logical reasoning.
For practical adoption, it is worth固化ing into a checklist:
- Archive the environment baseline and a parameter snapshot;
- Run a matrix load test of the four performance metrics × four lengths × multiple concurrency levels;
- Layer the capability evaluation set, and run the scoring script in both strict and lenient modes;
- Archive failure samples into three categories: format / definition / structure;
- Present accuracy, step count, tokens, and P95 latency in the same table.
If you need to productize the evaluation pipeline, you can use a container platform to freeze the environment, object storage to save datasets and artifacts, and logging and monitoring/alerting services to carry metric collection, so that every parameter change is traceable and comparable.
