Local Full Deployment and Evaluation Methods for Trillion-Parameter LLMs

    A successful local load of a trillion-parameter model is not the same as a usable service. This article uses an anonymized full local deployment to separate single-request throughput from concurrency decay, explain TTFT and KV-cache limits, and show why strict versus tolerance scoring changes task pass rates and cost.

    1. Background: A Working Deployment Is Not an Evaluable Service

    Full local deployment of trillion-parameter models has moved beyond “can it load?” to “can it serve stably, and can it be measured accurately?” A successful deployment only shows that weights load, the inference engine starts, and a basic request path works. What enterprises actually need to know is whether time to first token is acceptable at the target context length and concurrency, whether decode throughput is stable, whether long prompts amplify queuing, whether task accuracy depends on output format, and whether token cost per task stays under control.

    Evaluating a local trillion-parameter deployment should not stop at peak single-concurrency throughput or a few demo questions that merely “look right.” A more useful approach is a three-layer evaluation framework:

    1. Resource and stability: GPU memory use, KV-cache occupancy, long-running stability, failure recovery, and concurrency queuing.
    2. Inference performance: prefill throughput, decode throughput, TTFT, concurrency decay, long-context behavior, and batching efficiency.
    3. Task capability: closed-loop tool-call completion, correctness of structured outputs such as SQL or code, strict-judgment pass rate, and token use versus step count.

    This article uses an anonymized full local deployment of a trillion-parameter model to discuss how to read performance data, locate concurrency bottlenecks, and design capability metrics, then offers practical optimization guidance. The numbers illustrate the method only. They should not be treated as a general performance promise for every environment.

    2. Inference Performance: Separate Peak Throughput from Concurrency Decay

    2.1 Key Metric Definitions

    Common metrics for a local inference service include:

    • Prefill throughput: speed while processing the input prompt, usually in tokens per second. Long prompts and high concurrency often make prefill a source of queuing.
    • Decode throughput: speed of token-by-token generation, which users perceive as typing speed.
    • TTFT: time from sending a request to receiving the first token. It depends on queuing, prefill length, and batching policy.
    • Concurrency decay: how per-request or effective overall throughput changes as concurrency rises.
    • KV-cache occupancy: a primary memory constraint under long context and high concurrency.

    Anonymized measurements from one run:

    Test item Observed result Interpretation
    Peak single-concurrency prefill 757.7 tok/s at 4k; 629–758 tok/s from 2k to 32k Strong single-request prefill, with no clear length decay in this range
    Prefill decay with concurrency About 30%–45% lower at 2-way concurrency, about 50% at 4-way, about 63% at 6-way (2k: 688 → 228) Prefill throughput is shared as concurrency rises; queuing and batching matter
    Single-concurrency decode 23.8–28.7 tok/s, relatively stable Usable single-request decode speed with limited variation
    Decode under concurrency 8–18 tok/s; long prompts (16k/32k) with 4–6-way concurrency fall to a low of 8–11 tok/s; a rebound to 20–28 tok/s appears at 32k Decode degrades under long context plus high concurrency; isolated rebounds look more like noise
    TTFT Rises roughly linearly with length; at 32k, 51.5s (1-way) → 186.4s (6-way) Queuing, not only a slow single prefill, is the main cause of worse TTFT
    Resource level GPU memory utilization about 0.91; KV cache nearly full Higher concurrency needs memory and scheduling together, not only a larger concurrency setting

    2.2 Bottleneck Attribution: Concurrency Caps and Long-Prefill Blocking

    A key setting in this case limited the maximum number of concurrent sequences to 2. Beyond that, requests queued. Long prefill requests also blocked one another, which worsened TTFT and split prefill throughput. What looks like “poor concurrency performance” is the combined effect of the scheduling cap, the batched-token limit, and KV-cache occupancy.

    The following pseudocode describes the tuning direction:

    1. Current state:
    2. max concurrent sequences = 2
    3. max batched tokens = conservative value
    4. GPU memory utilization = 0.91, KV cache nearly full
    5. Tuning actions:
    6. 1. Raise max concurrent sequences gradually: 2 -> 4 -> 6, and watch TTFT P95 and KV occupancy
    7. 2. Adjust max batched tokens so one batch is not so large that long prefills block others
    8. 3. Enable dynamic chunked prefill and split long prefills into schedulable pieces
    9. 4. Give long-context requests a separate queue or priority so they do not block short requests
    10. 5. Monitor queue wait, KV occupancy, and decode troughs, and close the feedback loop

    Raising concurrency is not free. With memory utilization already at 0.91 and the KV cache nearly full, blindly increasing concurrency can cause swapping, timeouts, or an unstable service. A better approach is layered goals: protect TTFT for short requests, protect success rate for long requests, and run background batch work off peak.

    3. Task Capability: Under Strict Scoring, “Logically Right” Is Not “Passed”

    3.1 Closed-Loop Tool Use Is a Baseline Skill

    On structured tasks, the model must complete a tool loop: generate SQL, execute it in an embedded analytics database, check the result, and revise on error. In this case, all 25 SQL items completed the tool-call loop on their own. Complex multi-table JOINs and window functions such as LAG, ROW_NUMBER, and cumulative share were often written correctly, with structural errors on only a few items. The model therefore has some multi-step tool-use ability. A low total score alone does not mean it “cannot do the task.”

    3.2 Layered Pass Rates Show the Real Gap

    Under strict judgment, the case scored 9/25, a 36.0% pass rate. By difficulty:

    Difficulty Pass result Notes
    trivial 8/8 All simple items passed; basic generation is usable
    easy 1/2 Format or definition drift on a simple item
    medium 0/2 Medium items failed strict judgment
    hard 0/13 All hard items failed, though some were close in logic

    The main loss was not a complete failure of SQL logic, but ROUND precision and format. The model often omitted a required ROUND(..., 2), while strict scoring demanded an exact first-row string match. The result was “logic correct, format one point short.” Fifteen of the 25 items fell into this category. If numeric tolerance is relaxed to 1e-6, the pass rate rises to about 22/25, or 88%. That contrast matters: the scoring rule can change the conclusion. If acceptance uses exact string match, system prompts and output checkers must enforce format. If the business only cares about numeric error, use a numeric tolerance instead of strict string matching.

    Example:

    1. -- When the prompt requires two decimal places, write ROUND explicitly
    2. SELECT
    3. channel,
    4. ROUND(SUM(amount) * 100.0 / SUM(SUM(amount)) OVER (), 2) AS share_pct
    5. FROM orders
    6. GROUP BY channel;

    3.3 Structural Failures and Definition Errors

    A few items failed structurally: after a multi-table CTE with a discount, the final aggregate row alias did not match; a period-over-period window returned zero rows and the wrong column names; on channel definitions, the expected dealer-channel share was 73.3%, while the model computed the internet channel. These cases show remaining gaps in multi-table semantics, column-name mapping, and business-definition vocabulary.

    Optimization should not stop at a vague instruction such as “be more accurate.” Use hard constraints:

    1. In the system prompt, require strict use of ROUND, column aliases, row limits, and sort order as specified.
    2. In the tool-call loop, add a result checker for row count, column count, column names, and first-row format.
    3. Provide a small set of high-quality SQL examples for window functions, CTEs, and multi-table JOINs.
    4. Maintain a business-definition glossary and place mappings such as “dealer channel” and “internet channel” in the prompt or retrieved context.
    5. Repair failures in a second pass: have the model rewrite SQL from the validation error instead of returning the failed result directly.

    3.4 Token Use and Step Cost

    In this case, trivial and easy items averaged about 2 steps and about 2.2k input tokens plus 0.2k output tokens. Hard items averaged 6.1 steps. One hard item reached 17 steps and 55.5k tokens; another used 14 steps and 55k tokens. Hard-item cost comes mainly from multi-turn tool calls and error repair. Enterprise evaluation should also record:

    • average step count;
    • tokens per item;
    • first-pass rate and pass rate after repair;
    • timeout rate and retry rate;
    • average latency per item.

    Looking only at pass rate hides the cost and stability risk of long loops.

    4. Evaluation Design: Performance, Capability, Cost, and Scoring Rules Together

    Split the evaluation report into four parts:

    1. Performance baseline: single-concurrency prefill and decode, decay at 2/4/6-way concurrency, TTFT at 4k/16k/32k, and KV occupancy.
    2. Capability baseline: results by trivial/easy/medium/hard, with both strict and relaxed pass rates.
    3. Cost baseline: average steps, average token use, P95 latency, and timeout rate.
    4. Stability baseline: long-running behavior, concurrency stress, failure recovery, and queue wait time.

    For the environment, a general cloud platform such as Baidu AI Cloud can host the evaluation setup: a container platform for the inference service, object storage for datasets and results, and logging and monitoring for TTFT, queue wait, KV occupancy, and error rate. This refers to generic platform capabilities, not a vendor-specific custom interface. Version the evaluation set, prompt versions, scoring scripts, model version, and inference-engine configuration so results can be reproduced.

    5. Optimization Checklist

    • Scheduling: Raise maximum concurrent sequences and maximum batched tokens gradually, and set safety thresholds from KV occupancy. Use chunked prefill or a separate queue for long prefills.
    • Memory: Monitor KV-cache occupancy. Use quantization, prefix caching, or request eviction when needed. Do not leave memory utilization pressed against the ceiling for long periods.
    • Prompts: Turn ROUND, column names, row counts, sort order, and the definition glossary into hard constraints, with positive and negative examples.
    • Validation: In the tool loop, check row count, column count, column names, and first-row format. Trigger self-repair on failure.
    • Evaluation: Report both strict judgment and numeric-tolerance results so a format miss does not hide real ability.
    • Cost: Set a maximum step count and token budget. Above the threshold, send the item to human review or a smaller model.

    6. Conclusion

    Evaluating a full local deployment of a trillion-parameter model should avoid two extremes: looking only at a single peak throughput number, or looking only at a few demo questions. A more professional approach is a four-part system of performance, capability, cost, and scoring rules. On performance, separate single concurrency from high concurrency, short context from long context, and compute time from queue time. On capability, separate logical correctness, format correctness, and business-definition correctness. On cost, account for tokens spent in multi-step tool calls. On scoring, present both strict and tolerance results. Only then can you judge whether a full local deployment actually fits an enterprise workload, rather than stopping at a demo that merely “deployed successfully.”