Evaluating Local Deployment of Large Models: Performance and Capability Benchmarking Methods
This article breaks down how to benchmark locally deployed ultra-large language models along two independent tracks: service performance and model capability. On the performance side, it separates the compute-bound Prefill stage from the memory-bound Decode stage, shows how concurrency and long context trigger queueing that inflates TTFT, and explains where tuning hits the memory ceiling. On the capability side, a strict 25-task SQL benchmark reveals that most failures come from output-format compliance rather than reasoning errors. A reusable checklist for reproducible evaluation is included.
1. What Are We Actually Evaluating?
Once parameter counts reach the trillion scale, the question for local deployment is no longer “can it run?” but “how do we trade off throughput, latency, and answer quality once it runs?” Many teams get the full weights, record a single peak throughput number, and draw conclusions from it. That is far too thin a sample: single-concurrency peak only reflects the compute ceiling under ideal conditions and says nothing about behavior under a realistic request distribution.
A more sound approach splits the evaluation into two non-interfering tracks. The first is the service performance track, which measures throughput and latency curves for the Prefill and Decode phases across different input lengths and concurrency levels. The second is the model capability track, which measures whether the model can complete a multi-step tool-calling loop and return format-compliant results under strict judging rules. Only when the two tracks cross-validate can you answer the real question: is this deployment worth putting into production?
Note that full weights and compressed/distilled variants differ enormously in memory footprint, KV cache pressure, and bandwidth demand. Their performance curves cannot be extrapolated from one another, and their capability results cannot be compared directly either.
2. Performance Evaluation: Split the Two Phases
2.1 Prefill: Compute-Bound, Low Sensitivity to Length
A typical measured result: for short inputs (around 4k tokens), single-concurrency Prefill exceeds 750 tok/s, and across the 2k to 32k range throughput holds at 630–760 tok/s with no clear length decay. This matches the nature of Prefill — it is essentially one large parallel matrix operation with high compute utilization, so longer sequences mainly add computation rather than reduce per-unit-time processing efficiency.
What actually breaks the Prefill curve is concurrency. Going from 1 to 2 concurrent requests drops throughput by roughly 30–40%; at 4 concurrency it drops by about half; at 6 concurrency with a 2k input, throughput falls from about 690 tok/s to about 230 tok/s, a drop of more than 60%. This cliff-like decay is usually not a model problem but a scheduling and queueing problem.
2.2 Decode: Memory-Bound, Most Fragile Under Long Context Plus High Concurrency
Decode generates tokens one at a time and reads the entire KV cache at every step, making it a typical memory-bound workload. At single concurrency it stays relatively stable at 24–29 tok/s; above 8 concurrency it settles near 18 tok/s; and when a long prompt (16k/32k) is combined with 4–6 concurrency, it drops to a low of 8–11 tok/s. The rebound seen at 32k is most likely sampling noise and should not be used as a basis for optimization.
2.3 TTFT and Bottleneck Isolation
Time to first token (TTFT) rises roughly linearly with input length: about 51 seconds at 32k input under single concurrency, ballooning to about 186 seconds at 6 concurrency. That inflation far exceeds linear, which points to queueing as the main cause: once concurrent requests exceed the server’s maximum number of parallel sequences, the excess enters a waiting queue, long Prefills block each other, throughput gets averaged out, and TTFT degrades.
To isolate this class of problem, work through the following order:
1. Record the single-concurrency baseline (three curves: Prefill / Decode / TTFT)2. Fix the input length, raise concurrency step by step, and note the concurrency at which the throughput inflection appears3. Compare the inflection concurrency against the max parallel sequences setting to confirm whether queueing is the cause4. Observe memory utilization and KV cache occupancy to gauge tuning headroom5. Adjust batch size and per-batch token cap, then retest to verify whether the inflection shifts right
2.4 The Limits of Tuning
Raising the max parallel sequences and the per-batch token cap usually improves high-concurrency throughput, but KV cache and memory usage climb at the same time. Once memory utilization is already above 0.9 and the KV cache is nearly full, pushing higher only trades “queueing latency” for “risk of memory overflow.” A more practical direction at that point is to quantize the KV cache, cap the maximum context per request, trim long prompts up front, or do request prioritization and rate limiting at the gateway layer — rather than blindly enlarging batch parameters.
3. Capability Evaluation: “Format Deductions” Under Strict Judging
3.1 Evaluation Design
The capability side uses a set of 25 SQL generation tasks. The model must complete the full tool-calling loop on its own: generate SQL → execute it in an embedded analytical database → validate the result → decide pass or fail. The judging rule is strict: a task passes only when row count, column count, column names, and the first-row string all match.
The result is 9/25 passing (36%): trivial 8/8, easy 1/2, medium 0/2, hard 0/13. If numeric precision is relaxed to 1e-6, the pass rate jumps to about 22/25 (88%).
3.2 Interpreting the Results
The huge gap between 36% and 88% is the most valuable information in this evaluation: most lost points come not from reasoning errors but from insufficient adherence to the output contract. Models commonly omit the rounding and decimal-place constraints explicitly stated in the task, causing strict first-row string comparison to fail and producing many samples that are “logically right, off by a hair on format.” Only 3 tasks are structural failures, showing up as mismatched returned column names, a window-function query returning zero rows, and a wrong business definition (computing channel share against the wrong channel dimension).
By token consumption, easy tasks converge in an average of two steps and about 2.4k tokens; hard tasks average 6.1 steps, with individual tasks reaching 14–17 steps and around 55k tokens. This shows the cost of multi-step reasoning grows non-linearly with difficulty, so cost accounting must be bucketed by difficulty rather than averaged.
3.3 Improvement Suggestions
- In the system prompt, elevate “format and precision requirements” to a hard constraint and restate the rounding rules from the task statement;
- For error-prone patterns such as window functions, cumulative share, and year-over-year/quarter-over-quarter comparisons, provide a minimal example in the prompt;
- Add result self-checks on the tool side: validate column names and column count before execution, and validate first-row format after execution;
- Have the evaluation output both a “strict pass rate” and a “tolerance pass rate” — the former measures engineering usability, the latter measures reasoning correctness.
4. A Reusable Evaluation Checklist
- On the performance side, fix input-length buckets (2k/4k/16k/32k) and concurrency buckets (1/2/4/6/8), and output a 2D curve rather than a single point;
- Clearly distinguish latency inflation caused by queueing from the throughput ceiling caused by compute;
- On the capability side, record pass rate, average step count, and token consumption together, bucketed by difficulty;
- Align judging rules with stakeholders first, then decide between strict matching and tolerance matching;
- Every configuration change (batch size, context cap, cache strategy) must have a corresponding retest record, so conclusions stay traceable.
Overall, local deployment of this class of ultra-large model has entered a phase of “engineering tuning and output-contract governance”: performance bottlenecks mostly come from scheduling and memory limits, while capability shortfalls mostly come from format-constraint adherence. Measuring and governing these two tracks separately is what yields an evaluation that is truly meaningful for production decisions.
