Local LLM Inference Benchmark: Balancing Throughput and Accuracy
This article presents a local benchmark of a production large language model release, separating system performance from task quality. It reports prefill and decode throughput under varying input lengths and concurrency, identifies request queuing caused by a low max_num_seqs setting as the main driver of time-to-first-token latency, and shows how strict versus relaxed grading rules change the pass rate on structured query tasks. It closes with a reproducible four-step evaluation framework and tuning directions that trade off concurrency, KV cache usage, and output compliance.
1. Why a “Production Release” Is Not Automatically Better
When a model in the tens to hundreds of billions of parameters range ships a production release, the community usually cares less about leaderboard scores than about two plain questions: does it run fast on my machine, and does it answer correctly? A local test of one large model’s production release showed it was not uniformly better than the lighter models in the same family — on some capability dimensions the lighter versions were actually more stable. That result is not unusual. Model version iterations are typically a re-balancing of capability, cost, and latency rather than a monotonic improvement.
So the first principle of evaluation is to layer it: measure system performance and task quality separately, then attribute each on its own. The former is determined by hardware, inference framework settings, and batching strategy; the latter by model training, instruction following, and output format constraints. Mixing the two easily leads to the wrong conclusion that “the model got worse.”
2. Performance: Read Throughput by Stage, Not as a Single Number
2.1 Prefill: Single-Stream Behavior and Length Sensitivity
Prefill sets the floor for time to first token. In testing, single-stream prefill peaked at about 757 tok/s with 4k input and stayed within 629–758 tok/s from 2k to 32k, with no clear degradation as length grew. This indicates that the complexity growth of the attention implementation had not yet become the dominant bottleneck in that range, and that compute and bandwidth were being used relatively efficiently.
2.2 Concurrency Decay: The Real Pressure Point
The problem is concurrency. At 2 concurrent requests, prefill throughput dropped roughly 30%–45%; at 4, about 50%; at 6, throughput with 2k input fell from 688 tok/s to 228 tok/s, a decay of about 63%. Decode was affected too: single-stream held steady at 23.8–28.7 tok/s, but rose concurrency pushed it down to 8–18 tok/s, bottoming out at 8–11 tok/s when 16k or 32k inputs were combined with 4–6 concurrent requests.
One notable anomaly: 32k input recovered to 20–28 tok/s under high concurrency. Rebounds like this are usually measurement noise or a scheduling batch that happened to align, and should not be used as a basis for optimization. Benchmark reports must annotate data-point noise, otherwise they mislead later tuning.
2.3 Time to First Token: Queuing Is the Main Cause
Time to first token (TTFT) rose roughly linearly with input length, worsening from 51.5s single-stream to 186.4s at 6 concurrency with 32k input. The key attribution is queuing rather than computation: with the framework’s maximum number of concurrent sequences set to 2, requests beyond that entered a waiting queue, long prefill tasks blocked one another, throughput was averaged out, and latency was amplified.
The configuration relationship can be sketched as:
max_num_seqs = 2max_num_batched_tokens = a small valuegpu_memory_utilization = 0.91# Result: requests queue when concurrency > 2, and long prompts block each other
2.4 Locating the Bottleneck and Tuning Directions
To locate the bottleneck, fix the input length and sweep concurrency, recording three curves — prefill throughput, decode throughput, and TTFT — while collecting GPU memory usage and batch size at the same time. The tuning direction is to raise the maximum number of concurrent sequences and the maximum tokens per batch so more requests land in the same batch. But memory has to be weighed: when memory utilization is already at 0.91 and the KV cache is nearly full, blindly increasing concurrency triggers preemption and recomputation, which makes jitter worse. Viable paths include capping per-request context length, chunking long inputs or reusing prefixes, using quantization to reduce KV cache footprint where necessary, and making the concurrency limit and memory watermark a linked configuration.
3. Capability: Losing Points on Format Under Strict Grading
3.1 Grading Rules Decide the Score
On the same set of 25 structured query tasks, official strict grading (a pass requires the row count, column count, column names, and the first-row string to match exactly) yielded only 9 passes, a 36% pass rate. Relaxing numeric precision to 1e-6 raised the pass rate to about 88%. By difficulty: easy 8/8, fairly easy 1/2, medium 0/2, hard 0/13.
The core lesson is that capability evaluation must state its grading criteria explicitly. Strict string matching measures instruction following and output conformance; relaxed numeric matching measures whether the computation logic is correct. The two cannot be mixed.
3.2 What Deserves Credit
The model completed the full tool-calling loop autonomously on all 25 tasks: generating the query, executing it against an embedded analytics database, checking the result, and judging success. It wrote correct complex multi-table joins and window functions (such as lag lookups, ranking, and cumulative share), which shows the reasoning and tool-orchestration chain works end to end.
3.3 Where Points Were Lost
- Precision omission: tasks asked for two decimal places, but the model often left out the rounding function, so the first-row string failed to match. About 15 tasks were “logic right, format one point short.”
- Structural errors: a few tasks returned column names that did not match the requirement, or returned zero rows; in individual tasks the model misread the business definition and computed the channel scope wrongly, shifting the share results overall.
- Rising cost: hard tasks averaged 6.1 interaction steps, with individual tasks reaching 14–17 steps and consuming about 55k tokens; long chains amplify the probability of format errors.
3.4 Recommendations
Reinforce in the system prompt that rounding and column naming must follow the task statement exactly, and provide an output template; give example skeletons for window-function tasks; add a result self-check on the tool side that compares column names and row counts before submitting; and set step and token budget caps for long-chain tasks to keep cost from spiraling.
4. A Reproducible Evaluation Framework
Fix the evaluation into four steps. First, an environment baseline recording hardware, driver, inference framework version, and key settings. Second, a performance matrix that sweeps input length against concurrency in two dimensions and outputs throughput, TTFT, and memory curves. Third, a capability matrix graded by difficulty with a fixed grading standard, keeping both strict and relaxed results. Fourth, an attribution report that classifies failed samples as logic errors, format errors, or definition errors, with counts. Using a cloud container platform together with monitoring, alerting, and logging services, load testing and metric collection can be automated into a baseline that supports continuous regression.
5. Conclusion
The preliminary verdict from this test: on the system side, single-stream is usable while concurrency is under-tuned; on the capability side, logic is largely correct while spec compliance is weak. This does not negate the value of the production release. It shows that model selection cannot rely on the version number alone and must be validated quantitatively against local memory headroom, concurrency targets, and grading criteria. Measure performance and accuracy separately, separate noise from real decay, and attribute logic errors separately from format errors — that is the reproducible, comparable, and optimizable way to evaluate.
