Local LLM Deployment Hardware: VRAM, Memory Bandwidth, and Speed
This article explains how memory capacity, compute, and memory bandwidth determine whether and how fast a large language model can run locally. It compares knowledge distillation, quantization, and sparse activation as ways to lower hardware requirements, reviews unified-memory and discrete-GPU configurations, and offers practical guidance for sizing memory, avoiding deployment pitfalls, and choosing hardware by budget.
As open-source large models continue to update quickly, more developers, researchers, and data-sensitive enterprise teams want to deploy models on their own devices. Local operation can protect data privacy, avoid dependence on cloud services, and offer more flexible invocation. But can an ordinary PC run models with tens of billions of parameters smoothly? This article looks at hardware bottlenecks, model compression, and configuration choices to outline practical paths for local deployment.
1. Where Does LLM Inference Bottleneck?
Inference requires large numbers of matrix multiplications. Weight files are usually large and must remain resident in memory or VRAM during runtime. Three metrics interact and jointly determine the experience.
Capacity: whether the model can fit
The estimation formula is: required memory (GB) is approximately the parameter count (B) multiplied by the number of bytes per parameter. FP16 uses 2 bytes per parameter, so the weights of a 10B model require about 20GB. This is only the weight portion. Runtime also consumes KV cache (intermediate data that stores context), inference framework overhead, and operating system memory. Long conversations cause the KV cache to grow continuously. Actual capacity should be higher than the weight size, with at least 20% headroom.
Compute: how fast calculation runs
Compute (TOPS) affects the speed of each forward pass and therefore the number of tokens generated per second. When compute is insufficient, text appears slowly token by token.
Memory bandwidth is often the real ceiling
For each generated token, model weights must be moved from memory to the compute units. If bandwidth is insufficient, compute units sit idle even when compute is strong. For token-by-token generation, inference speed is usually limited by memory bandwidth.
2. Distillation, Quantization, and Sparse Activation: Three Ways to Lower the Barrier
Knowledge distillation
Distillation uses the outputs of a large model (the teacher) to train a smaller model (the student). The student can retain some core capabilities, such as code generation and common reasoning. Common distillation can reduce the parameter count to about 1/2 to 1/10 of the teacher model, depending on the task and training method. Hardware requirements scale roughly linearly with parameter count, not exponentially. Distilled models are usually weaker than the original model, so test them on your own tasks before choosing.
Quantization
Quantization stores weights with fewer bits. Converting FP16 to INT8 reduces size by about half; converting FP16 to 4-bit reduces size to about one quarter of the original. Q4_K_S is a 4-bit quantization type in the GGUF format. It offers small size and fast speed, but there is some accuracy loss. The amount of loss depends on the model and task. Compare output quality with the original model before deciding.
Sparse activation (MoE)
Some MoE models activate only a subset of expert parameters during each inference pass, which reduces the compute per token. However, this does not reduce memory occupancy in proportion to the activated parameters, because all expert weights still need to be loaded into memory during inference. Therefore, the capacity and bandwidth requirements of MoE models are still constrained by the total parameter count.
3. How to Interpret Hardware Platforms and Benchmark Data
Advantages of unified memory
A unified memory architecture lets the CPU and GPU share the same physical memory. Data does not need to be copied over the PCIe bus, latency is lower, and memory can be allocated to the model more flexibly. With high-bandwidth memory such as LPDDR5X and a fast SSD, larger models can run on a laptop or small host.
Generation speed by model size
The reference figures are: 7B to 8B models exceed 60 tokens/s, 14B models reach about 30 to 40 tokens/s, and 20B and larger models reach about 20 tokens/s. These numbers come from a unified-memory platform using Q4_K_S quantization. The context length, batch size, inference framework version, and power consumption were not listed, so the results cannot be directly applied to other devices. Readers should retest on their own hardware.
In general, 10 to 15 tokens/s is an acceptable lower bound, and 30 tokens/s or more usually feels smooth. This is an empirical judgment; there is no uniform standard.
Pure CPU performance
Quantized small models have been tested in a pure CPU environment at about 5 to 8 tokens/s. The CPU model, core count, memory channels, and frequency used in the test were not disclosed. CPU compute is sufficient to execute the calculations, but memory bandwidth is lower, which limits speed. This approach suits occasional questions or short text processing, not long interactive sessions.
4. How to Choose a Configuration by Budget
Option 1: Thin and light unified-memory device
This suits programmers, content creators, and users who need mobile productivity. Choose a platform with strong integrated graphics and support for large unified memory. With sufficient unified memory capacity, Q4_K_S quantization, and short context, it can run models below 20B. Actual speed depends on the specific platform, power mode, and inference framework settings.
Option 2: Discrete-GPU desktop
This suits data science researchers and teams that need to fine-tune models. A single 24GB GPU can usually run quantized models around 13B to 30B and is more stable with short context. However, it is not enough to fully hold the Q4 weights of a 70B model, which require about 35 to 40GB plus KV cache. To run a 70B model, you usually need two or more GPUs, or offload some layers to CPU memory, or choose a GPU with more VRAM. After offloading to CPU, generation speed drops noticeably.
Option 3: Local small model plus cloud large model
Run a small model locally for simple tasks such as format conversion and text summarization. Use an API to call a cloud large model for complex reasoning. This approach has low hardware investment and controllable cost. Before use, assess whether sensitive data is allowed to be uploaded to the cloud.
5. Deployment Pitfalls to Avoid
Do not treat virtual memory as a replacement for RAM
The Windows page file can provide swap space when memory is insufficient, but it is much slower than physical memory. Once the model starts writing to disk, the system usually becomes severely sluggish. Physical memory should be larger than the model size, with headroom left over.
Reserve memory for long contexts
Input prompts and conversation history both consume KV cache, and usage grows linearly with length. During deployment, reserve at least 20% of memory to avoid crashes after long conversations.
Adjust inference process priority
On Windows, you can set the inference process to a higher priority in Task Manager to reduce resource contention from background tasks. This is only a scheduling reference; verify the effect through testing. On Linux, use nice or renice to adjust priority, and taskset to bind the process to specific CPU cores. On macOS, renice can also adjust priority. Inference frameworks differ in their support for thread scheduling, so consult the framework documentation.
6. Conclusion
Local LLM deployment requires three things: calculate capacity, check bandwidth, and use distillation and quantization to lower the barrier. Start by testing a small model on your own device. Record context length, quantization format, and tokens/s before deciding whether to upgrade hardware. Conclusions obtained this way are more reliable than copying benchmark numbers from others.
