Local LLM Inference: Why Running Out of VRAM Makes Things Slower

    This article explains why a larger parameter count does not guarantee faster local LLM inference, and why a partially offloaded model can run slower than a pure CPU setup. It covers a unified benchmarking methodology, sample throughput measurements across four configurations, the memory bandwidth and scheduling overhead behind the slowdown, and practical guidance on capacity planning, quantization, and choosing between full GPU, full CPU, or cloud deployment.

    1. The Overlooked Premise: Parameter Count Is Not Speed

    When deploying large language models locally, a common industry claim is that a given hardware platform can smoothly run a model with a larger parameter count. Such statements usually emphasize only that the model “runs,” while avoiding how fast it runs and under what measurement conditions. For developers and enterprise users, what actually determines the experience is the effective output produced per unit of time, not whether the model can be loaded at all.

    It is important to be clear that model parameter count, weight file size, runtime VRAM usage, and inference throughput do not have a simple linear relationship. Parameter scale sets the theoretical capacity ceiling, but throughput is determined jointly by VRAM capacity, bandwidth, compute unit utilization, and the data movement path. Equating “more parameters” with “faster” is the most common cognitive bias in local inference selection.

    2. Unifying the Test Methodology: Making Data Comparable

    The testing approach in the source material is worth borrowing, and its core is reducing the variables to the minimum:

    • Fix the output length and compare speed only, typically 150 to 200 tokens;
    • Calculate speed as the number of output tokens divided by the pure generation phase duration;
    • Exclude model loading and weight loading time to avoid cold-start interference;
    • Record three metrics: weight size, GPU residency ratio, and measured throughput.

    The illustrative calculation logic is as follows:

    1. throughput = eval_count / eval_duration

    Under this methodology, a typical set of observations is:

    Configuration Weight Size Output Duration Throughput GPU Residency
    Small-parameter model ~2.5 GB 200 tok 17.4 s 11.49 tok/s ~86%
    Medium-parameter model ~5.2 GB 200 tok 81.3 s 2.46 tok/s ~50%
    Medium-parameter model, forced full CPU ~5.2 GB 150 tok 53.6 s 2.80 tok/s 0%
    Large-parameter model ~9.3 GB 200 tok 158.2 s 1.26 tok/s All in system memory

    One measurement caveat must be stated clearly: the speed unit above is tokens per second, which measures decode throughput during the generation phase. It is not equivalent to first-token latency, nor does it represent service capacity under concurrency.

    3. Why “Putting It on the GPU” Can Be Slower

    The key variable is the gap between available VRAM and weight size. When the weights cannot reside entirely in VRAM, the inference engine places some layers in system memory, and generating each token requires shuttling activations and weight shards back and forth between VRAM and memory.

    At that point the bottleneck shifts from computation to data movement: VRAM bandwidth is far higher than memory bandwidth, and hybrid placement means the entire chain is held back by its slowest segment. Meanwhile, cross-medium scheduling introduces additional synchronization overhead, compute units spend much of their time waiting, and utilization drops. In the table above, the 50% GPU residency configuration reaches only 2.46 tok/s, below the 2.80 tok/s of the 0% configuration, roughly 14% slower, which is a direct demonstration of this mechanism.

    In addition, a fixed output length amplifies the difference. The generation phase is a token-by-token serial process, and movement overhead accumulates with each step, so the longer the output, the more pronounced the disadvantage of the hybrid mode.

    4. Actionable Selection and Optimization Advice

    1. Calculate capacity before choosing a model. Estimate weight size, context cache, and runtime overhead together, make sure the model can fully reside in VRAM at the target precision, and only then discuss throughput.
    2. Full GPU or full CPU beats half-and-half. If VRAM is insufficient, going full CPU is often more stable and avoids cross-medium movement.
    3. Trade quantization for residency space. Reducing weight size within an acceptable precision range is the most direct way to raise the GPU residency ratio.
    4. Check layer by layer instead of looking only at the total. Measure VRAM usage per layer to locate where the overflow happens, then adjust accordingly.
    5. Build your own benchmark. Fix the output length, fix concurrency, exclude loading time, and produce repeatable comparison data.
    6. Track both first-token latency and throughput. Interactive applications care about latency, batch processing cares about throughput, and the two must be evaluated separately.
    7. Plan cloud deployment around general-purpose capabilities. Inference services can be hosted on a container platform, with monitoring, alerting, and logging services used to observe VRAM and queue levels, and object storage used to manage model file versions.

    5. Conclusion

    “A bigger model on stronger hardware” is not a sufficient condition. When weights cannot fit entirely into VRAM, hybrid inference may be slower than a pure CPU approach because of data movement and scheduling overhead. The rational approach is to unify the test methodology first, account for VRAM capacity, and then decide whether to go full GPU, compress with quantization, or run on CPU entirely, replacing marketing-style conclusions with reproducible benchmark data.