Local LLM Deployment Performance and Capability Evaluation: A Practical Methodology

    This article breaks down a practical methodology for evaluating locally deployed large language models, using a full on-premise stress test and capability benchmark as the guiding example. It separates inference into prefill and decode profiling, shows how concurrency decay and request queuing become the real bottleneck, and explains why strict answer matching can understate a model's actual ability. Readers will find reusable practices for layered load testing, metric decomposition, dual-track scoring, and resource guardrails.

    1. Why “It Runs” Does Not Mean “It Is Usable”

    Loading the full weights of a trillion-parameter-scale model with a sparse activation architecture onto a single local node is already an engineering milestone worth noting. The real dividing line, however, is whether the model can serve real requests stably at acceptable latency and throughput, and whether it produces results that can be automatically judged correct at the business-semantics level.

    Many teams validate only that a single request returns after a successful local deployment, then conclude that the deployment is ready for production. This overlooks two critical risks: queuing and blocking in the inference engine under high concurrency, and a mismatch between the evaluation criteria and the model’s output habits. Using one complete local stress test and capability evaluation as a thread, this article abstracts a general methodology.

    2. Profiling Performance Across the Two Inference Phases

    Large model inference splits into two phases, prefill and decode, with completely different bottlenecks that must be measured separately.

    • Prefill phase: processes all input tokens at once, is compute-intensive, and typically reaches throughput in the thousands of tokens per second. Measured single-concurrency peak was about 757 tok/s (4k input), holding steady at 629–758 tok/s across the 2k to 32k range, which indicates that length decay is not significant in a single-request scenario.
    • Decode phase: generates tokens autoregressively one at a time, constrained by memory bandwidth, and stays stable at 23.8–28.7 tok/s under single concurrency.

    An illustrative structure of the stress test records is shown below (pseudocode, expressing measurement dimensions only):

    1. metrics = {
    2. "prefill_tps": [], # recorded by input length buckets
    3. "decode_tps": [], # recorded by concurrency buckets
    4. "ttft_ms": [], # time to first token
    5. "queue_wait_ms": [], # queue wait time, used to separate compute from scheduling overhead
    6. }

    Key engineering detail: TTFT must be split into “queue wait” and “actual compute.” Otherwise a scheduling problem gets misdiagnosed as a lack of compute.

    3. Concurrency Decay and Queuing: The Real Bottleneck Is Scheduling

    Strong single-concurrency numbers do not mean the server-side capability is adequate. Measurements showed:

    • Prefill throughput dropped about 30%–45% at 2 concurrency, about 50% at 4 concurrency, and about 63% at 6 concurrency (2k input fell from 688 to 228 tok/s).
    • Decode throughput fluctuated between 8–18 tok/s, dropping to a low of 8–11 tok/s when long inputs (16k/32k) were combined with 4–6 concurrency.
    • Time to first token rose roughly linearly with input length: at 32k input, about 51.5 seconds under single concurrency, climbing to 186.4 seconds at 6 concurrency.

    Root cause analysis: when the inference engine’s maximum number of concurrent sequences is capped at 2, excess requests enter a queue; meanwhile long prefill tasks block one another and compute is shared across multiple requests, so TTFT deteriorates sharply. This is a classic scheduling-layer bottleneck, not a limitation of the model itself.

    The improvement direction is to raise the maximum concurrent sequences and the maximum tokens per batch within the memory budget. The constraint to watch: when memory utilization has already reached 0.91 and the KV cache is nearly full, blindly increasing these values triggers swapping or preemption and makes jitter worse. A workable approach is to validate with a small canary traffic slice first, paired with monitoring and alerts to observe cache hit rate and preemption counts.

    4. Capability Evaluation: The “Low Score Trap” Under Strict Judging

    The capability test used 25 questions ranging from easy to hard, requiring the model to complete an autonomous tool-calling loop: generate a query -> execute it in an embedded analytical database -> validate the result -> decide pass or fail.

    Results showed clear stratification: easy questions passed 8/8, relatively easy 1/2, medium 0/2, hard 0/13, for an overall pass rate of 36%.

    A notable positive signal: all 25 questions completed the autonomous tool-calling loop, and complex multi-table joins and window functions (such as lag lookups, ranking, and cumulative share) were written correctly, with only two questions showing structural errors.

    The main point of failure was not logic but precision and formatting: the model often omitted the two-decimal rounding explicitly required in the prompt, while the official judging required strict string matching on the first line, so about 15 of the 20-plus questions were “logically right, one point short on format.” Relaxing the numeric tolerance to 1e-6 raised the pass rate to about 88%.

    There were also a few structural failures: a question involving a common table expression with a discount table across multiple tables returned mismatched column names; a window-function-based question returned zero rows with mismatched column names; and there was an interpretation gap that produced an incorrect channel share calculation.

    Resource consumption is also a metric: 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. Growth in step count and tokens directly amplifies latency and cost and must be included in the evaluation report.

    5. A Reusable Practices Checklist

    1. Layered load testing: establish a baseline at single concurrency first, then increase load step by step, fixing the random seed and input buckets to ensure reproducibility.
    2. Metric decomposition: split TTFT into queue and compute, separate prefill from decode for throughput, and avoid letting a single average hide the long tail.
    3. Align judging with prompting: explicitly emphasize “strictly follow the precision and output format in the question” in the instructions, and provide an output style example in the prompt when necessary.
    4. Establish dual-track scoring: use strict matching as the production gate and tolerance matching to diagnose the model’s true capability; the gap between the two is the “format loss.”
    5. Resource guardrails: bring memory utilization, cache occupancy, and preemption counts into monitoring and alerts, and canary before scaling up.
    6. Targeted optimization for complex queries: add examples and regression cases for failure modes such as window functions and multi-table joins.

    6. Conclusion

    The value of a full local deployment must be defined jointly by a “performance profile + capability profile.” In this case, single-concurrency throughput and stability were good, with the bottleneck concentrated in concurrent scheduling and the memory budget; on the capability side, the logic was complete but dragged down by strict format judging. The takeaway for developers: the design quality of the evaluation plan often determines whether the conclusions are trustworthy, even earlier than model selection does.