A Practical Guide to Local LLM Deployment: Evaluating Inference Speed and Task Capabilities

    When deploying open-source Large Language Models (LLMs) locally, developers are primarily concerned with practical performance: inference speed and task execution capability. This article provides a reusable evaluation methodology based on hands-on local deployment testing, covering both performance metrics (such as prefill throughput, decode speed, and latency under concurrency) and structured task capabilities (using Text-to-SQL as a closed-loop example). We share typical performance bottlenecks, tuning strategies, task evaluation results, and a three-step approach to comprehensively assess whether a model fits your specific hardware and business scenarios.

    A Practical Guide to Local LLM Deployment: Evaluating Inference Speed and Task Capabilities

    When open-source Large Language Models (LLMs) are released, the community’s primary focus is often not the parameter size, but two more practical metrics: how fast it runs and how well it works. Based on a hands-on local deployment test of an open-source LLM—covering both speed testing and structured task testing—this article outlines a reusable evaluation methodology to help developers make informed choices and tune their systems effectively.

    1. Evaluation Framework: Performance and Capability

    A rigorous model evaluation should consist of two main tracks:

    • Deployment Performance Track: Prefill throughput, Decode speed, TTFT (Time To First Token), performance degradation curve under concurrency, and resource utilization.
    • Task Capability Track: Evaluating the model’s real-world engineering capabilities through structured tasks with automated judging (e.g., Text-to-SQL, closed-loop tool calling), rather than relying solely on benchmark scores.

    Cross-validating these two tracks answers the critical question: “Is this model worth using on my hardware for my specific business scenario?”

    2. Local Deployment Speed Test: Key Points and Typical Findings

    2.1 Core Metric Definitions

    Metric Definition
    Prefill Throughput Speed of processing input prompts, determines the starting point for response in long-context scenarios.
    Decode Speed Speed of generating tokens one by one, directly affects user experience.
    TTFT Time to first token returned, a key experience metric for interactive applications.
    Concurrency Degradation The extent to which metrics drop under concurrent multiple requests.

    2.2 Typical Observations from Testing

    Stable single-concurrency performance with no significant degradation in long contexts. In the 2k–32k input length range, the peak Prefill throughput remained around 630–760 tok/s, indicating stable prefill processing for long inputs. Single-concurrency Decode speed stabilized at 24–29 tok/s, an acceptable interactive level for a single consumer-grade GPU.

    Concurrency is a performance killer. At 2 concurrent requests, Prefill throughput dropped by 30%–45%; at 6 concurrent requests, the degradation reached 63% (e.g., at 2k input, dropping from ~688 tok/s to ~228 tok/s). Decode speed fell to a low of 8–11 tok/s under long prompts (16k/32k) combined with 4–6 concurrent requests, causing noticeable lag.

    TTFT deterioration is mainly caused by queuing, not computation. At 32k input, TTFT increased from ~51 seconds at single concurrency to ~186 seconds at 6 concurrent requests. Analysis showed the bottleneck was in the inference engine’s scheduling parameters: when max-num-seqs was set too low (e.g., 2), requests exceeding the limit queued up, blocking long prefills from each other, which diluted throughput and amplified latency.

    2.3 Tuning Directions

    • Increase max-num-seqs and max-num-batched-tokens: Allowing the scheduler to process more sequences in the same batch can significantly improve high-concurrency throughput and TTFT.
    • VRAM trade-offs cannot be ignored: In this test, GPU VRAM utilization reached 0.91, with KV Cache nearly full. Before increasing batch parameters, you must assess VRAM headroom. If necessary, consider quantizing KV Cache, shortening the context, or adding replicas for horizontal scaling.
    • Scenario-specific configuration: Interactive scenarios should prioritize TTFT and Decode; offline batch processing scenarios can maximize throughput parameters.

    3. Task Capability Test: Text-to-SQL Example

    3.1 Test Design

    We used 25 Natural Language-to-SQL questions of varying difficulty (trivial/easy/medium/hard). The model was required to autonomously complete a multi-turn tool-calling loop: “generate SQL -> submit to execution engine -> verify results.” The pass criteria required strict matching of row count, column count, column names, and the first row’s content.

    3.2 Test Results Analysis

    Overall score: 9/25 passed (36%). The difficulty distribution showed a clear fault line: trivial 8/8, easy 1/2, medium 0/2, hard 0/13. However, this data requires deeper analysis:

    Solid tool-calling capabilities. All 25 questions were completed by the model autonomously driving multi-step loops. Complex multi-table JOINs, window functions (LAG, ROW_NUMBER, cumulative share calculations) were mostly written correctly, with only 2 questions having structural errors. This indicates the model’s “engineering execution” is far better than the raw score suggests.

    Main reason for failure is format precision, not logic. About 15 questions had “correct logic, but lacked formatting precision”—most typically, omitting ROUND(…, 2) when required by the prompt, whereas strict matching required exact string matching of the first row. If the numerical tolerance were relaxed to 1e-6, the pass rate would jump to about 88%.

    Occasional semantic misunderstanding. For example, in a channel share question, the model chose a different statistical caliber for the channel than the standard answer, causing overall deviation. This type of failure reflects an issue with understanding ambiguous business semantics, not a lack of SQL skills.

    Token consumption spikes with difficulty. Trivial/easy questions were completed in an average of 2 steps (~2.4k tokens), while hard questions averaged 6.1 steps. The most complex question ran 17 steps and consumed over 55k tokens—this must be factored into inference cost planning.

    3.3 Targeted Optimization Suggestions

    1. Strengthen format constraints in System Prompts: Explicitly stating “must strictly output according to the ROUND precision and column names required by the prompt” can easily recover many format-related points.
    2. Provide few-shot examples for complex patterns: For instance, providing a sample SQL for QoQ (quarter-over-quarter) window functions can significantly increase the one-shot pass rate.
    3. Result verification loop: Add automatic comparison prompts for column names and row counts into the toolchain, allowing the model to self-correct during multi-turn loops.

    4. Methodology Summary

    The biggest takeaway from this test is: do not be misled by a single score. A 36% strict pass rate and an 88% relaxed pass rate describe the exact same model. Similarly, the conclusion that “single concurrency is smooth, but concurrency causes a crash” can only be reached by running the full degradation curve.

    We recommend that developers follow a three-step method when evaluating any open-source model: First, test the single-concurrency baseline and long-context stability. Second, test the degradation and queuing bottlenecks at target concurrency levels. Finally, use closed-loop tasks that closely resemble real business operations (rather than simple Q&A) to test capabilities, and make comprehensive decisions based on VRAM, throughput, and token costs. During cloud deployment, you can leverage container platforms, monitoring alerts, and logging services to solidify this evaluation process into an automated continuous regression pipeline, ensuring data-driven model iterations.