Choosing GPUs for Local LLM Deployment: Why VRAM Matters More Than Compute

    When deploying 100B+ parameter large language models locally, the hardware selection criteria differ significantly from traditional deep learning training. While training prioritizes peak compute power, inference—especially for long-text generation—is typically bottlenecked by VRAM capacity and bandwidth. This article breaks down the GPU selection logic from an engineering deployment perspective, offering configuration strategies across different scenarios, including VRAM estimation, bandwidth analysis, GPU tiering, and essential benchmarking practices.

    Deploying hundred-billion-parameter large language models locally requires a different hardware selection approach compared to traditional deep learning training. Training prioritizes peak FP16 or BF16 compute power, whereas inference, particularly long-text generation, is often bottlenecked by VRAM capacity and bandwidth. This article breaks down the GPU selection logic from an engineering deployment perspective and provides configuration strategies for different scenarios.

    1. Calculating VRAM Requirements

    Before selecting a GPU, estimate your VRAM needs. VRAM usage primarily comes from two parts.

    The first part is model weights. Weight usage is roughly equal to the number of parameters multiplied by the bytes per parameter. FP16 or BF16 takes 2 bytes per parameter, INT8 takes 1 byte, and INT4 takes about 0.5 bytes. For a 30-billion-parameter dense model, FP16 requires about 60GB, while INT4 requires about 15GB.

    The second part is the KV Cache, which grows linearly with sequence length and concurrent requests. A common estimation formula is:

    KV Cache bytes ≈ 2 × num_layers × num_kv_heads × head_dim × seq_length × concurrency × bytes_per_element

    The 2 at the beginning accounts for storing both Key and Value. This formula is only an estimate. Different frameworks have additional overheads like paged management and block alignment. Some models use Grouped-Query Attention (GQA), where the number of KV heads is much smaller than query heads. The final value should be based on the actual VRAM usage after the framework loads the model.

    Beyond weights and KV Cache, you must reserve a margin for activations, framework runtime, and VRAM fragmentation. The required margin depends on the framework and workload; it is recommended to test it in your target environment.

    Mixture of Experts (MoE) models feature a large total parameter count but only activate a subset of experts per token. This reduces the computation per step but does not reduce VRAM demand, as all expert weights typically need to reside in VRAM. If VRAM is insufficient, you must rely on CPU Offload to place some weights in system memory and transfer them when needed, which significantly decreases speed.

    2. VRAM Bandwidth Determines the Upper Limit of Decoding Speed

    When a large model generates tokens sequentially, each newly generated token requires reading the currently used weights from VRAM once, along with reading the corresponding KV Cache. This type of operation reads a lot of data but involves relatively little computation, making it memory-bound.

    A rough theoretical upper limit can be estimated as follows:

    Single-user decoding speed limit ≈ VRAM bandwidth / bytes read per token

    Assume a dense model using INT4 quantization has weights of about 15GB, and the GPU VRAM bandwidth is 1000GB/s. The theoretical upper limit is about 66 tokens per second. The actual speed will be lower due to KV Cache reading, scheduling, and sampling overheads. However, this formula indicates the direction: doubling the bandwidth doubles the theoretical speed limit.

    During batch inference, multiple requests share a single weight read, improving throughput. However, the KV Cache will consume more VRAM as concurrency increases. When VRAM is insufficient, the framework can only reduce the batch size, causing throughput to drop. Therefore, VRAM capacity and bandwidth must be evaluated together; looking at only one can easily lead to misjudgments.

    3. Three Tiers of GPUs

    GPUs used for local deployment currently fall into roughly three tiers. Note that specific models, prices, and availability change quickly, so always refer to the specifications and quotes at the time of purchase.

    Tier 1: Enterprise Large-VRAM Compute Cards. These feature large VRAM capacity and high bandwidth. A single card or a small multi-card setup can accommodate the weights of a 100B-level MoE model, leaving ample room for long contexts and high concurrency. They are suitable for online businesses with high availability requirements. The downsides are limited procurement channels, high unit prices, and strict power and cooling requirements.

    Tier 2: 96GB Professional Workstation Cards. Their VRAM capacity is significantly higher than consumer-grade products, capable of housing low-precision quantized versions of larger models, and they handle long contexts better. Driver support and energy efficiency are generally stable, making them suitable for small to mid-sized teams. Their compute and bandwidth are lower than Tier 1, so throughput will be limited under high concurrency; this requires validation through real-world testing.

    Tier 3: 24GB Consumer Flagship Cards. These have relatively low procurement costs. When the model can fit entirely into VRAM, the Time To First Token (TTFT) for a single user is quite good. For dense models under 30B parameters or quantized small-to-medium models, they can meet personal development and lightweight application needs. Once the model or context exceeds the VRAM, you will need Offload or quantization, and generation speed will drop noticeably. Out-of-memory (OOM) errors are also common under multi-concurrency.

    4. Rely on Benchmarks Over Specifications

    Spec sheets only show theoretical capabilities. What truly determines the user experience is performance under actual workloads. Before deployment, it is recommended to test at least the following metrics:

    • Time To First Token (TTFT): The time from sending a request to returning the first token. It primarily affects the interactive experience.
    • Time Per Output Token (TPOT) or Decoding Speed: Determines the output speed of long responses.
    • System Throughput: The total number of tokens processed per unit of time, determining how many users the service can support.
    • Peak VRAM: The highest usage under the target context length and concurrency, determining whether OOM will occur.

    When testing, fix and record the following conditions: model name and precision, inference framework and version, batch size, input and output length, concurrency, context length, and driver version. Only with complete conditions can the measured numbers be compared across different machines. If you only test with one model and one workload, the conclusion only applies to that specific combination.

    It is recommended to design a small test matrix—for example, combining two to three concurrency levels with two to three context lengths—to observe where the performance inflection point occurs. Inflection points are often more instructive for capacity planning than peak values.

    5. Configuration Strategies for Typical Scenarios

    Scenario 1: Services for External Users (SaaS or External APIs)

    The core requirements for this scenario are stability, concurrency capability, and long-context support. It is recommended to prioritize Tier 1 enterprise compute cards, utilizing multi-card or multi-node deployment, alongside mature inference frameworks for load balancing and monitoring. On a limited budget, a multi-card setup using Tier 2 professional cards is an option, but it requires more comprehensive stress testing and reserving significant room for scaling.