Local LLM Deployment: Why Bandwidth and Compute Matter More Than Capacity

    Deploying large language models locally involves more than just having enough memory to load the weights. This article breaks down the three critical bottlenecks in local inference: memory capacity, memory bandwidth, and compute power. It explains how memory bandwidth dictates decoding speed and how compute resources affect the time to the first token. By analyzing the theoretical limits of decoding speeds and comparing dense models with Mixture of Experts (MoE) architectures, readers will gain practical insights into optimizing local LLM performance beyond raw capacity.

    1. From “Feasibility” to “User Experience”

    The discussion around running large language models (LLMs) locally is shifting from “can it fit?” to “how is the experience after fitting?”. As memory capacity grows, the scale of parameters a system can accommodate increases significantly. However, inference speed and the time to the first token (TTFT) do not improve proportionally. When selecting models, focusing solely on total memory capacity can easily lead to misguided conclusions.

    2. Three Core Bottlenecks: Capacity, Bandwidth, and Compute

    Local inference is primarily constrained by three types of resources:

    • Capacity: Whether the model weights and KV cache can fit into the available memory.
    • Bandwidth: During the generation phase, each token requires reading the currently active weights from memory. The read speed determines the decoding speed.
    • Compute: During the preprocessing phase, matrix operations are performed on the entire input sequence. The computational capability determines the TTFT.

    These three correspond respectively to “can it run,” “how fast does it run,” and “how long is the wait.” Most user experience issues stem from bandwidth and compute limitations, rather than just capacity.

    3. Theoretical Upper Limits of Decoding Speed

    During autoregressive generation, generating each token roughly requires reading all active weights once. Under ideal assumptions that ignore cache and computational overhead, the theoretical upper limit of decoding speed can be estimated using the following relationship:

    Decoding Speed Limit ≈ Memory Bandwidth ÷ Bytes of Weights Read per Token

    Assuming a memory bandwidth of 256 GB/s, the theoretical upper limits for three common configurations are as follows:

    • 30B Dense model, Q8 quantization: Weights are approximately 30 GB, reading about 30 GB per token, resulting in an upper limit of around 8.5 tokens/s.
    • 30B Dense model, Q4 quantization: Weights are approximately 15 GB, reading about 15 GB per token, resulting in an upper limit of around 17 tokens/s.
    • 30B total parameter / 3B active parameter MoE model, Q4 quantization: Reads only about 1.5 GB per token, resulting in an upper limit of around 170 tokens/s.

    Actual speeds will be lower than the theoretical limits because attention computation, KV cache reading, and scheduling overhead all consume time. However, the relative relationship among the three is reliable: quantization reduces the number of bytes per parameter, and MoE reduces the memory access footprint per token. Both directly elevate the decoding speed ceiling.

    4. Dense Models vs. Mixture of Experts (MoE) Models

    A dense model activates all its parameters during every inference step. A Mixture of Experts (MoE) model splits the feed-forward layers into multiple experts, routing each token to only a select few experts. This allows the model to possess a large total parameter count while keeping the computation and memory access footprint of a single step relatively small.

    This leads to two conclusions:

    1. Total parameter count determines memory footprint, so capacity must be calculated based on total parameters.