Evaluating Local LLM Deployment: A Methodology for Performance and Problem-Solving Benchmarks

    This article presents a reproducible methodology for evaluating locally deployed large language models across two dimensions: inference service performance and task completion quality. It breaks latency down into prefill, decode, and time-to-first-token segments, explains how concurrency queuing and KV cache limits shape the results, and shares a sample serving configuration. It also covers a 25-question tool-calling benchmark with strict versus relaxed grading, failure attribution across formatting precision and structural errors, and recommendations for turning benchmarks into regression assets.

    1. Why “Benchmark on Release Day” Became a Necessary Practice

    Once a model’s official release lands, the community usually cares less about parameter count than about two plain questions: is it fast, and is it correct? These map directly onto the two main tracks of real-world engineering work — inference service performance and task completion quality. A rigorous benchmark puts both on the same table and speaks in reproducible metrics instead of subjective impressions.

    One caveat matters up front: local deployments behave systematically differently from hosted cloud services. Hardware model, VRAM capacity, batching strategy, context length, and quantization method can all change the conclusions. So everything below assumes one fixed hardware and software stack with one fixed serving configuration. The focus is the causal relationship between metrics, not absolute numbers that hold everywhere.

    2. Performance: Breaking Latency Into Explainable Segments

    2.1 Prefill: High Throughput but Fragile

    Prefill determines how fast the model “reads the prompt.” Measured single-concurrency peak reached 757.7 tok/s at a 4k context, and stayed between 629 and 758 tok/s from 2k to 32k, with no clear degradation at long context — a sign that parallel efficiency in this compute-bound stage is good.

    Concurrency is where it falls apart. At 2 concurrent requests throughput drops roughly 30% to 45%; at 4 it drops by about half; at 6 the decline reaches 63% (688 down to 228 in the 2k scenario). This is not a model limitation but queuing and mutual blocking caused by the serving layer’s scheduling policy.

    2.2 Decode: Stable but Dragged Down by Long Context

    Decode holds steady at 23.8 to 28.7 tok/s at single concurrency. Above 8 concurrent requests it settles near 18 tok/s; when long prompts (16k/32k) combine with 4 to 6 concurrent requests, it bottoms out at 8 to 11 tok/s. The rebound seen at 32k is more likely sampling noise than a genuine recovery, so benchmarks should run repeated trials and take the median to filter it out.

    2.3 Time to First Token: Queuing Is the Main Cause

    Time to first token (TTFT) rises roughly linearly with context length: 51.5 seconds at 32k with single concurrency, climbing to 186.4 seconds at 6 concurrent requests. Read together, these two segments make the conclusion clear — the bottleneck is not compute but a max-num-seqs setting that is too small (for example, set to 2). Once concurrency passes that threshold, requests enter a queue and long prefill tasks block each other, so throughput gets averaged down.

    The direction for improvement is to raise the maximum number of concurrent sequences and the maximum tokens per batch, while budgeting VRAM carefully: when GPU memory utilization is already at 0.91 and the KV cache is nearly full, blindly increasing these values triggers swapping or preemption and makes tail latency worse instead. The sensible approach is to find the inflection point with load testing first, then set watermark thresholds alongside monitoring and alerting.

    An illustrative serving configuration (expressing parameter semantics only, not a specific product interface):

    1. # Goal: increase concurrency capacity while keeping VRAM usage under control
    2. max_num_seqs: 4 # raised from 2 to relieve queuing
    3. max_num_batched_tokens: 8192
    4. gpu_memory_utilization: 0.88 # leave headroom for KV cache fluctuation
    5. enable_chunked_prefill: true # chunked prefill reduces mutual blocking of long requests

    3. Capability: Closing the Tool-Calling Loop With Strict Grading

    3.1 Task Design

    The capability side used 25 structured query questions requiring the model to complete a multi-step loop on its own: generate the query, execute it against an embedded analytical database, validate the result, and decide whether it meets the bar. Difficulty spread: 8 trivial, 2 easy, 2 medium, 13 hard.

    3.2 Results at a Glance

    Under strict grading, 9 questions passed, a 36% pass rate: all trivial questions passed, 1 easy question passed, and no medium or hard question passed. Relaxing numeric precision to 1e-6 lifts the pass rate to roughly 22/25 (88%). That gap is the signal developers should be most wary of.

    3.3 Where Points Were Lost

    • Formatting precision: the model often skipped the two-decimal rounding the prompt explicitly required, while grading demands a strict string match on the first line — so 15 of 20 questions were “logic correct, format off by a point.”
    • Structural errors: multi-table joins combined with a discount CTE returned mismatched column names; a window-function-based group share question returned 0 rows with mismatched column names; a channel-definition misunderstanding computed distributor channel share as online channel share.
    • Cost distribution: easy questions averaged 2 steps and about 2.4k tokens; hard questions averaged 6.1 steps, with individual questions reaching 17 steps and 55.5k tokens — token cost for long-chain reasoning is not negligible.

    3.4 Recommendations

    Explicitly reinforce in the system prompt that the rounding and output format requirements in the question must be followed strictly, and add sample queries for window-function questions. On the evaluation side, separate “logical correctness” from “format consistency” as two grading tracks so engineering problems are not misread as capability problems.

    4. Conclusion: Make Benchmarking a Regression-Ready Engineering Asset

    Overall, the official release is solid on prefill throughput and single-concurrency decode, with a complete tool-calling loop and good command of complex query structures. The weak spots are scheduling queues under high concurrency and strict adherence to output format. For teams, the safer path is: fix the evaluation set and grading scripts and bring them into continuous integration for regression; use inflection-point load testing on the performance side to set concurrency and VRAM watermarks; and use dual-track grading on the capability side to separate logic from formatting issues. If elastic capacity and unified operations are needed, the inference service can run on a container platform, with object storage holding evaluation datasets, and logging and monitoring with alerting tracking latency and VRAM watermarks — so every version iteration has evidence behind it.