How to Evaluate Local LLM Deployment Performance and Problem-Solving Ability

    A practical, reproducible framework for evaluating a locally deployed large language model after its official release. It breaks performance testing into prefill throughput, decode throughput, TTFT, and concurrency degradation, shows how queuing limits cause long-context slowdowns, and explains how strict judging turns formatting issues into apparent capability failures. Includes bottleneck tuning guidance, a cost breakdown by task difficulty, and a five-part optimization checklist.

    1. Why an Official Release Needs a Reproducible Evaluation Method

    Once a model’s official version is live, the most common community feedback is subjective: “it feels faster” or “it feels smarter.” Such impressions cannot support engineering decisions. A usable evaluation has to answer two questions: what the throughput and latency curves look like under the current hardware and inference framework configuration, and where the model’s capability boundaries sit on a realistic task distribution—whether lost points come from limited capability or from the judging criteria.

    The findings from a real deployment are representative. On the speed side, performance degraded noticeably under high concurrency with long contexts. On the capability side, the pass rate was low under strict judging, but rose sharply once numeric precision requirements were relaxed. “Not good enough” is therefore a mixed conclusion that must be broken down by dimension; otherwise it leads to the wrong model selection and optimization decisions. The method below is abstracted into a transferable process.

    2. Performance Evaluation: Measure by Stage, Not Just End to End

    2.1 Breaking Down the Metrics

    End-to-end “is it fast” is meaningless. At minimum, split it into four groups of metrics:

    • Prefill throughput (tok/s): determines time to first token for long prompts;
    • Decode throughput (tok/s): determines perceived smoothness during generation;
    • TTFT (time to first token): the metric users are most sensitive to;
    • Concurrency degradation rate: how much throughput drops as concurrency rises, reflecting scheduling and remaining GPU memory headroom.

    2.2 Typical Observed Patterns

    Single-concurrency prefill peaked at about 757 tok/s and stayed within 629–758 tok/s across the 2k–32k range, with almost no length-related decay—compute and memory access were not the bottleneck at this stage. However, at 2 concurrent requests prefill dropped by roughly 30%–45%, by about 50% at 4, and by about 63% at 6 (688 falling to 228 with a 2k input). Decode held steady at 23.8–28.7 tok/s with a single request, fell to 8–18 tok/s above 8 concurrent requests, and hit a low of 8–11 tok/s when a long prompt overlapped with 4–6 concurrent requests.

    TTFT rose roughly linearly with context length: 51.5 seconds at 32k input with one concurrent request, and 186.4 seconds with six. The key judgment here is that TTFT degradation is caused mainly by queuing, not by insufficient per-request compute.

    2.3 Locating the Bottleneck and Trading Off Parameters

    The typical cause of this pattern is that the inference service caps the maximum number of concurrent sequences at 2. Beyond that, requests enter a waiting queue, long prefills block one another, and throughput gets diluted. The direction for improvement is to raise the maximum number of concurrent sequences and the maximum token count per batch, but this must be weighed against GPU memory: when memory utilization is already at 0.91 and the KV cache is nearly full, blindly enlarging batch size triggers preemption or swapping and makes jitter worse.

    1. # Illustrative: three categories of settings to watch together (not product-specific values)
    2. max_num_seqs # concurrency cap, determines the queuing threshold
    3. max_num_batched_tokens # per-batch token budget, determines how much prefill is aggregated
    4. gpu_memory_utilization # memory watermark, determines available KV cache space

    The practical recommendation is a two-dimensional sweep: fix the context length and sweep concurrency, then fix concurrency and sweep length, and plot contour lines for TTFT and throughput to find the “queuing inflection point” rather than a single optimal value.

    3. Capability Evaluation: “Formatting” Failures Under Strict Judging

    3.1 Task Design

    The test used 25 data-query questions ranging from easy to hard, requiring the model to complete a tool-calling loop on its own: generate a query → execute it in an embedded analytics database → validate the result → decide whether it succeeded. The difficulty distribution was 8 trivial, 2 easy, 2 medium, and 13 hard.

    3.2 Attributing the Results

    Under strict judging (row count, column count, column names, and the first-row string all matching exactly), 9 of 25 passed, about 36%: trivial 8/8, easy 1/2, medium 0/2, hard 0/13. All 25 questions did complete the tool-calling loop, and complex multi-table joins and window functions (lagged retrieval, ranking, cumulative share) were basically written correctly. Only 3 questions had structural errors: a multi-table CTE with a discount scenario returned mismatched column names, a window-function scenario returned 0 rows with mismatched column names, and a misunderstanding of the channel definition led to a wrong share calculation.

    The real dividing line was numeric precision. For 15 questions the logic was right but the format was slightly off—the two-decimal rounding required by the prompt was omitted, while judging demanded an exact first-row string match. Relaxing precision to 1e-6 brought the pass rate to about 22/25 (88%).

    3.3 Cost-Side Observations

    Trivial and easy questions averaged 2 steps, about 2.2k input plus 0.2k output tokens. Hard questions averaged 6.1 steps; the hardest took 17 steps and 55.5k tokens, and another took 14 steps and 55k tokens. Steps and token consumption concentrate in a few hard questions, which is the main lever for cost optimization.

    4. An Actionable Optimization Checklist

    1. Prompt layer: make “strictly follow the rounding and column naming required by the question” a hard constraint in the system prompt, and provide an output template.
    2. Task layer: provide example skeletons for window-function problems to reduce structural failures.
    3. Judging layer: separate “semantically correct” from “strictly formatted” into two sets of criteria and record them separately to avoid distorted metrics.
    4. Service layer: locate the queuing inflection point before tuning batch parameters, and expand GPU memory or reduce KV cache usage in tandem.
    5. Cost layer: set step and token limits for high-step tasks, and fall back to human handoff or a degraded strategy once triggered.

    5. Conclusion

    An objective assessment of the official version is this: single-request performance and the tool-calling loop meet the bar, high concurrency with long contexts hits a scheduling bottleneck, and the low pass rate under strict judging comes mainly from formatting constraints rather than reasoning ability. Measuring performance and capability separately, and judging criteria separately from model capability, is what yields an actionable, reproducible selection conclusion. For cloud deployment, the inference service can run on a container platform, evaluation datasets can live in object storage, and a logging service with monitoring and alerting can track TTFT and throughput curves to form a continuous regression evaluation pipeline.