How to Choose GPU Hardware for Local LLM Deployment

    This article explains why GPU selection for local LLM deployment is constrained by VRAM capacity, memory bandwidth, interconnect, and engineering stability rather than raw compute. It profiles three neutral hardware classes, summarizes layered performance in throughput, latency, and stability scenarios, shows a practical VRAM estimation method, and gives selection paths by workload scale, plus the host, software, and operations requirements that are easy to overlook.

    1. Reframing the Problem: Compute Is No Longer the Bottleneck

    When teams plan a local deployment for a mixture-of-experts (MoE) model with roughly 671B total parameters that activates only a small subset of experts per inference pass, the most common mistake is treating the decision as a compute race. Real-world failures tend to look the same: the cards arrive, peak floating-point throughput looks impressive on paper, but the model weights hit a VRAM overflow halfway through loading. Or the model barely starts, and once the context grows beyond 32K, throughput falls off a cliff and time-to-first-token jumps from a few hundred milliseconds to several seconds.

    The reason is not mysterious. Deploying this class of model is constrained by four curves at the same time:

    • Weight residency curve: even if only some experts are activated per token, all expert weights must stay resident in VRAM. Otherwise every step requires moving weights from host memory, and latency becomes unacceptable.
    • KV cache growth curve: cache usage is roughly proportional to concurrency × context length, which makes it the real VRAM killer in long-context scenarios.
    • Bandwidth constraint curve: autoregressive decoding reads the full set of activated weights for every generated token, so decode speed is highly sensitive to VRAM bandwidth.
    • Communication constraint curve: multi-GPU tensor parallelism and expert parallelism introduce collective communication. When inter-GPU interconnect bandwidth is insufficient, adding more compute just wastes it.

    The conclusion is straightforward: VRAM capacity decides whether it runs, VRAM bandwidth decides how fast it runs, interconnect and scalability decide how far it can scale, and engineering stability decides whether you dare put it into production. Compute ranks after all four.

    2. Capability Profiles of Three Hardware Classes (Neutral Description)

    To avoid getting pulled into marketing numbers for specific models, this article uses three hardware profiles that are common across the industry:

    Class A: data-center accelerators with high-bandwidth memory. These offer large VRAM capacity, a high-bandwidth memory subsystem, mature high-speed inter-GPU interconnect, and stable driver/firmware update cycles. They are the default answer for long-context, high-concurrency production workloads.

    Class B: professional workstation/server cards with large VRAM. VRAM capacity sits between Class A and consumer cards. They typically come in passive or active cooling variants, support ECC memory, and can host a fairly large model on a single card. Power draw and data-center fit are clearly better than consumer products.

    Class C: consumer high-performance graphics cards. Lowest cost per unit of VRAM, and single-token generation efficiency is very strong in light-load scenarios. However, VRAM capacity is small, ECC is missing, multi-GPU interconnect depends on host-side channels, and sustained full-load stability requires additional engineering safeguards.

    3. Layered Behavior Under Real Workloads

    Drawing on public inference framework benchmarks and community deployment feedback, the three classes separate clearly under production loads (the figures below are experiential ranges, not official specs for any specific product):

    1. High-concurrency throughput: Class A delivers roughly a 1.8–2.1x throughput improvement over the previous generation of data-center cards in serving configurations with 16K+ long context and larger batches. Class B clearly outperforms Class C at medium concurrency with long context, landing at roughly 1.3–1.7x the throughput of Class C. The advantage comes from VRAM headroom and KV cache capacity, not peak compute.
    2. Single-user latency: when the model is small enough that weights fit entirely in VRAM, Class C can beat Class B on time-to-first-token by about 5%–15%, because it avoids the fixed overhead of a large-memory subsystem under light load. This range matters most for interactive applications such as coding assistants and personal agents.
    3. Stability: in a rack running 24/7 at full load, without ECC protection and with constrained cooling, Class C is more likely to show memory bit flips and clock throttling, which has to be offset with redundant nodes and fast failover.

    4. Capacity Estimation: Do the Math Before Buying Cards

    A practical rough estimation method (illustrative; calibrate against your framework implementation):

    1. # Unit: GB; for capacity planning illustration only
    2. def estimate_vram(params_b, quant_bytes, ctx_len, concurrency, kv_per_token_bytes):
    3. weights = params_b * quant_bytes # weight footprint
    4. kv_cache = ctx_len * concurrency * kv_per_token_bytes / 1e9
    5. overhead = weights * 0.10 # framework/activation/fragmentation reserve
    6. return weights + kv_cache + overhead
    7. # Example: 671B parameters, 8-bit quantization, 32K context, 16 concurrent
    8. need = estimate_vram(671, 1.0, 32768, 16, 0.5e-3)
    9. print(f"Total need is about {need:.0f} GB")

    Three rules of thumb from engineering practice: quantization compresses weights significantly, but compressing the KV cache requires cooperation between the framework and the precision strategy; the impact of context length on VRAM is often underestimated, and 128K versus 8K can be a difference of more than ten times; reserving 10%–20% of VRAM for fragmentation avoids the “slow leak” style of failure after long service periods.

    5. Selection Paths by Scenario

    • Validation, teaching, or small models (≤30B): a single Class C card, optimizing for the lowest performance per dollar.
    • Team-level private knowledge base (concurrency <10, context ≤32K): start with one or two Class B cards, balancing data-center fit and stability.
    • Department-level online service (tens of concurrent users, 32K–128K context): multiple Class B cards with high-speed interconnect, or a small number of Class A cards; focus on KV cache headroom.
    • Enterprise high-concurrency production: Class A as the mainstay, paired with elastic queuing and degradation strategies; for cloud-based options, evaluate general capabilities such as the container platform, monitoring and alerting, and log services offered by Baidu AI Cloud for elastic scaling and full-stack observability.
    • Cost-sensitive edge or offline batch processing: a Class C cluster with job queuing, accepting higher operational overhead.

    6. Engineering Support That Is Easy to Overlook

    The GPU is only the tip of the iceberg. On the host side you need enough memory channels (both model loading and swapping consume memory bandwidth), fast local disks (weight loading time is often underestimated), and reliable power and cooling. On the software side you need a serving framework that supports paged KV management, continuous batching, and quantized inference. On the operations side you need metrics for VRAM watermarks, time-to-first-token, output tokens per user per second, and automatic removal of faulty cards. Get these right, and mid-range hardware often produces more than a higher-spec cluster that lacks tuning.