Local LLM Inference Benchmark: How Large Memory Improves Speed
This article reports a hands-on benchmark of local large language model inference on a device with 192GB of unified memory. It explains why the bottleneck has shifted from whether a model fits to how fast it generates, breaks down what consumes memory during inference, and shows how speculative decoding with a draft model raised generation speed from roughly 17 to 26 tokens/s on a 284B-parameter model at Q4 quantization. It also shares a reproducible evaluation protocol, capacity-planning guidance, and deployment recommendations for teams.
1. Why the Bottleneck Has Shifted from “Can It Run” to “How Fast”
Over the past two years, discussions about running large language models locally focused on one question: is there enough VRAM? Once a device is equipped with around 192GB of unified memory, the nature of the problem changes. Capacity is no longer the only barrier. Inference throughput, time to first token, and long-context stability have become the core metrics.
The key value of a unified memory architecture is that the CPU and GPU share the same address space, so model weights do not need to be copied back and forth between host memory and VRAM. For models in the tens to hundreds of billions of parameters range, this design significantly reduces deployment complexity and makes it possible to keep a main model and an acceleration component resident at the same time.
The core conclusion of this practice can be stated upfront: running a model in the 284-billion-parameter class under Q4 quantization, the main model alone consumes about 129GB of memory; enabling a draft model raises usage to about 140GB; generation speed increases from about 17 tokens/s to 26 tokens/s, an improvement of roughly 53%. Another model in the 125-billion-parameter class, paired with a draft model, reaches an average generation speed of 34 tokens/s. Time to first token for both configurations falls in the 0.4 to 0.5 second range.
2. Capacity Planning: What Large Memory Actually Holds
Many people simply think of unified memory as “more VRAM,” which is not accurate. During actual inference, memory is divided among at least five consumers:
- Model weights: still the largest item after quantization. Q4 quantization compresses each parameter to about 4 bits, giving a theoretical lower bound of about 142GB for 284 billion parameters, with actual usage deviating due to quantization format and alignment overhead.
- KV cache: grows linearly with context length, an invisible killer in long-document and multi-turn conversation scenarios.
- Draft model: the acceleration component for speculative decoding, typically requiring a few GB to a dozen or so GB.
- Inference framework runtime: computation graphs, operator workspaces, thread stacks.
- Operating system and surrounding services: filesystem cache, network stack, monitoring agents.
A reusable estimation approach is as follows:
Total demand ≈ weights + context length × per-token cache overhead × layer factor + draft model + runtime reserveSafe watermark = total demand / physical memory ≤ 0.85
Keeping the watermark below 85% leaves a buffer for sudden long contexts and system jitter. Once swapping is triggered, throughput drops off a cliff, and this kind of performance collapse is often harder to diagnose than simply “running slowly.”
3. Speculative Decoding: Why a Draft Model Delivers More Than 50%
The idea behind speculative decoding is to let a small model “guess” and the large model “review.” The draft model continuously generates several candidate tokens at very low cost, and the main model verifies them in parallel with a single forward pass, accepting the prefix-matching portion and recomputing from the point of divergence if rejected.
Its benefit conditions are clear: the draft model must be sufficiently close to the main model in distribution and lightweight enough on its own. Typical scenarios with little noticeable benefit include a draft hit rate that is too low, a draft model whose own overhead is too large, and tasks that rely heavily on precise computation, causing candidates to be rejected frequently.
There are three tuning points in practice:
- Draft length: too long lowers the hit rate and increases verification cost, while too short limits the benefit.
- Quantization consistency: when the quantization levels of the main and draft models differ too much, distribution shift is amplified.
- Batching strategy: the benefit is most obvious in single-request low-latency scenarios and needs to be reassessed in high-concurrency aggregated scenarios.
It is worth emphasizing that speculative decoding does not change the theoretical correctness of the output distribution (under the accept-reject sampling framework), so it is a form of “lossless acceleration.” This is what makes it preferable to simply lowering quantization precision or truncating context.
4. Evaluation Method: Making the Data Reproducible
This evaluation uses a unified protocol that is worth using as a template:
- Fixed prompts: all three configurations use exactly the same input, requiring output of a structurally complete long text to extend the sustained generation phase.
- Separate metrics: load time, time to first token, and sustained generation speed are recorded independently, avoiding averages that hide long tails.
- Controlled variables: quantization level, context length, threads, and batch size are kept consistent, with only the draft model toggled on or off.
- Multiple samples: at least three rounds, taking the median and removing cold-start outliers.
An illustrative record structure:
{"config": "main+draft","quant": "Q4","params_b": 284,"ram_total_gb": 192,"ram_used_gb": 140,"ttft_s": 0.45,"tps": 26,"baseline_tps": 17}
The 0.4 to 0.5 second time to first token indicates that, with the model already resident in memory, the bottleneck is not weight loading but computation and scheduling in the prefill phase. This also explains why the improvement in sustained generation speed comes mainly from the draft model rather than memory capacity itself.
5. Deployment Recommendations: From Single-Machine Validation to Team Use
- Tiered deployment: place large model inference on a fixed high-memory host, expose an interface over the local network, and keep terminals as lightweight clients, avoiding a copy of the weights on every device.
- Standardized interfaces: expose a unified text generation interface externally while keeping the internal implementation replaceable, making it easy to switch smoothly between quantization levels and draft strategies later.
- Observability: collect four metrics—VRAM/memory usage, queue wait time, tokens output per second, and time to first token—and combine them with logging and monitoring alerts to form a closed loop.
- Capacity red line: reserve at least 15% of memory for long contexts and set a per-request context limit to prevent a single request from bringing down the whole machine.
- Scenario matching: for short-output scenarios such as code completion and document summarization, prioritize optimizing time to first token; for long-text generation and report writing, prioritize sustained throughput.
6. Unverified Areas and Risk Notes
This practice covers only the dimension of large model inference. Network throughput, power and frequency policies under different performance modes, and thermal behavior and throttling under sustained full load all require separately designed tests. In addition, precision loss from quantization should be regression-tested on specific business corpora rather than inferred from general leaderboards alone.
The conclusion is not complicated: once memory capacity crosses a certain threshold, the focus of local large model optimization shifts from “fitting it in” to “outputting fast.” The main model determines the capability ceiling, the draft model determines the perceived speed, and capacity planning determines whether this combination can run stably.
