Evaluating Local LLM Deployment: Performance and Problem-Solving Benchmarking Methods
This article presents a reproducible methodology for evaluating a locally deployed large language model across two separate dimensions: inference performance and problem-solving capability. It breaks autoregressive generation into Prefill and Decode, reports single-concurrency baselines and concurrency-driven degradation, and traces high TTFT to queueing caused by conservative scheduler limits rather than raw compute. On the capability side, a 25-task SQL generation benchmark shows a strict pass rate of 36% versus roughly 88% under a 1e-6 numeric tolerance, revealing that most failures stem from output formatting rather than flawed logic. Readers get a practical checklist for fixed-variable benchmarking, dual-criteria scoring, and cost guardrails. All numbers are single-run observations on specific hardware and configuration, intended as methodological reference only.
1. Background and Key Takeaways
After moving a large general-purpose language model into a self-hosted inference environment, many teams first ask “does it run?” But two more fundamental questions decide whether it can reach production: is it fast, and are the answers correct? The first belongs to systems engineering, the second to model capability. The two must be measured separately; otherwise, “slow because of queueing” gets misread as “slow inference,” or “marked wrong because of a format mismatch” gets misread as “the model cannot solve the task.”
A local benchmark of a production release of a general-purpose LLM produced a representative conclusion: the engineering behavior of the inference path is broadly usable but degrades noticeably under high concurrency; the problem-solving path reaches a high accuracy rate once numeric tolerance is relaxed, yet the pass rate drops sharply under the official strict judging criteria. In other words, the bottleneck sits mainly in service scheduling configuration and output format constraints, not in the model’s reasoning ability. This is highly relevant for teams planning to build their own inference service.
One caveat matters: every number below comes from a single run on specific hardware with a specific configuration. Treat them as a methodological reference, not as fixed performance figures for any model. Change the GPU, the quantization scheme, or the inference framework version, and the numbers change; the analysis method and tuning approach remain the same.
2. Inference Performance: Split Latency into Two Stages
Autoregressive generation decomposes into two physical processes: Prefill (processing the entire input in one parallel pass) and Decode (token-by-token generation). They use compute in completely different ways: Prefill is compute-intensive large matrix multiplication, while Decode is memory-bandwidth-intensive per-token work. Measuring them together yields only an average with no explanatory power.
2.1 Single-Concurrency Baseline
In the measurements, Prefill peaked at roughly 757 tok/s with a 4k input length at concurrency 1, and stayed within 629–758 tok/s across input lengths from 2k to 32k, with no significant degradation as length grew. Long context therefore did not break prefill, and compute headroom remained. Decode held steady at 23.8–28.7 tok/s at concurrency 1, a normal range for a model of this size.
The baseline establishes an “ideal ceiling.” Any number measured under concurrency should be compared against this ceiling to compute the real efficiency loss.
2.2 Concurrency Degradation: Prefill Is More Fragile Than Decode
The data shows clear layering: at concurrency 2, Prefill throughput fell by about 30%–45%; at concurrency 4, by about 50%; at concurrency 6, by about 63% (from 688 tok/s to 228 tok/s with a 2k input). Decode dropped to around 18 tok/s at concurrency 8, and hit a low of 8–11 tok/s when long prompts (16k/32k) overlapped with concurrency 4–6, while 32k rebounded to 20–28 tok/s at some data points, which is more likely sampling noise than a genuine recovery.
The mechanism behind this: Prefill is a “large task,” so multiple long inputs arriving at once block each other, producing a head-of-line blocking effect. Decode is a “small task”; each step is light, but it continuously occupies memory bandwidth and KV Cache space. When both compete for the same resources, prefilling long inputs slows down every decode step.
2.3 Time to First Token: Queueing Is the Main Cause
TTFT rose roughly linearly with input length: about 51.5 seconds at concurrency 1 with a 32k input, worsening to about 186.4 seconds at concurrency 6. A gap of this magnitude cannot be explained by compute differences in a single prefill pass; the real source is requests waiting in the queue.
The direct cause identified was an overly conservative server-side concurrency limit: with the maximum number of concurrent sequences set to 2, any request beyond the second must queue, and long prefill tasks at the front of the queue hold execution slots for a long time, creating a feedback loop where longer queues cause more slowdown and more slowdown causes longer queues.
The corresponding tuning direction is to raise the maximum number of concurrent sequences and the maximum tokens per batch so the scheduler has a chance to batch multiple requests together. This is not free: memory utilization is already at a high 0.91, and the KV Cache is nearly full, so enlarging the batch further will directly trigger out-of-memory errors or preemptive recomputation. The right approach is small incremental probing plus monitoring, not maxing out the parameters in one shot.
# Illustrative: core metrics to observe togetherprefill_throughput # magnitude of drop under concurrency; shows whether compute is being shared outdecode_throughput # whether long prompts under high concurrency show a low pointttft # strongly correlated with queue depth; the first user-experience metrickv_cache_usage # determines whether the batch can still be enlargedqueue_length # tells whether queueing or compute is the primary cause
A practical troubleshooting order: check queue length first. If the queue stays non-zero, the problem is scheduling and capacity; only if the queue is short but throughput is still low should you suspect a compute or bandwidth bottleneck. Many teams skip the first step and go straight to buying faster GPUs, which usually pays off less than adjusting concurrency and batching parameters.
3. Problem-Solving Capability: Losing Points on Format Under Strict Criteria
The capability evaluation used a set of 25 SQL generation tasks spanning several difficulty tiers from easy to hard. The model had to complete an autonomous tool-calling loop: generate a statement, execute it in an embedded analytical database, self-correct based on errors, and finally verify whether the result set was correct.
3.1 Results Overview
Under strict official judging (a pass requires the row count, column count, column names, and the entire first row string to match), 9 tasks passed, a 36% pass rate. Broken down by difficulty, the easy tier was almost entirely correct, the medium tier was 0/2, and the hard tier was 0/13. But relaxing the numeric tolerance to 1e-6 raised the number of passes to 22, roughly 88%.
The enormous gap between 36% and 88% is the most memorable point of this evaluation: the vast majority of failures were not logic errors but mismatches between output precision and what the task required. The model habitually omitted the two-decimal rounding explicitly requested in the prompt, so the first row string did not exactly match the expected value and was marked wrong under strict comparison.
3.2 Capability Highlights
Statement correctness was solid: all 25 tasks completed the tool-calling loop autonomously with no mid-way abandonment; complex multi-table joins and window functions (such as fetching the previous row in order, numbering within groups, and cumulative share) were written correctly. Only two tasks had structural errors: one returned column names that did not match the requirement, and another wrote the wrong window for grouped values, returning an empty result with mismatched column names. One additional task reflected a business-definition misunderstanding, where the channel scope was interpreted incorrectly and the computed share did not match expectations.
Token consumption also correlated clearly with difficulty: the easy tier averaged two steps and about 2.4k tokens; the hard tier averaged 6.1 steps, with individual tasks reaching 14–17 steps and consuming on the order of 55k tokens. This shows the self-correction loop works, but the cost is that inference cost rises non-linearly with difficulty, so production environments need step and token limits.
3.3 Recommendations
First, write format constraints as hard requirements in the system prompt, stating explicitly that whenever the task specifies rounding digits or an output shape, it must be followed exactly, and add a self-check on the final statement. Second, for error-prone constructs such as window functions, include a few pattern examples in the prompt, which can significantly reduce structural failures. Third, on the evaluation side, run both criteria in parallel: use the strict criterion for acceptance and the tolerance criterion to diagnose the model’s real capability, avoiding the mistake of treating a format problem as a capability problem.
4. A Reproducible Benchmarking Checklist
- Fix the variables: compare only under the same hardware, the same quantization precision, and the same inference framework version; otherwise the numbers are meaningless.
- Report by stage: give Prefill and Decode separately, annotated with input length and concurrency.
- Flag noise: do not treat a single rebound as a trend; take the median of at least three runs.
- Score with dual criteria: record strict matching and tolerance matching at the same time to separate “cannot do it” from “non-compliant output.”
- Cost guardrails: set a maximum step count, maximum tokens, and a timeout for the tool-calling loop so long-tail tasks cannot drag down the service.
- Capacity coupling: confirm KV Cache headroom before enlarging the concurrency batch, and use monitoring alerts and log services to locate queueing.
5. Summary
The methodological value of this benchmark outweighs the value of its conclusions: on the performance side, distinguish queueing from compute; on the capability side, distinguish logic from format. On the engineering side, prioritize tuning scheduling and batching parameters while holding the memory red line; on the model side, prioritize adding format constraints and pattern examples. Together, these explain results that “look below expectations” at low cost and gradually raise them. To run this load-testing and evaluation pipeline, you can elastically spin up inference instances on a container platform, archive datasets in object storage, and observe metrics with monitoring and alerting, forming a sustainable regression evaluation loop.
