GPU Selection for Local LLM Deployment: A Practical Guide
This article is a practical guide to choosing a GPU for running large language models locally. It explains why VRAM capacity, rather than peak compute, is the real gatekeeper, and shows how to estimate weight VRAM from parameter count and quantization level. It then covers the factors that shape real-world performance—VRAM bandwidth, precision and operator support, and attention optimization techniques—and weighs data-center/professional cards against unofficially modified consumer cards. It also addresses power, cooling, and multi-GPU scaling, and closes with a step-by-step decision framework for balancing capacity, bandwidth, cost, and stability.
GPU Selection for Local LLM Deployment: A Practical Guide
1. Start with the right premise: the bottleneck is VRAM, not compute
When people first try to run an LLM locally, their instinct is to ask “is the GPU’s compute powerful enough?” But what really determines whether a model “will run at all” is VRAM capacity, not peak compute. A large language model’s weights must be loaded into VRAM in full, and inference produces a KV cache on top of that. Compute only affects “how fast it runs”; VRAM determines “whether it runs.”
A widely used simplified estimation formula:
Weight VRAM ≈ parameter count × bytes per parameter
- FP16 half precision: about 2 bytes / parameter
- INT8 quantization: about 1 byte / parameter
- INT4 quantization: about 0.5 bytes / parameter
def estimate_weight_vram_gb(param_count_b, bytes_per_param=2.0):"""Estimate the VRAM used by weights only (in GB)"""return param_count_b * bytes_per_paramprint(estimate_weight_vram_gb(7, 2.0)) # 14.0 GB FP16 for a 7B modelprint(estimate_weight_vram_gb(7, 0.5)) # 3.5 GB INT4-quantized 7B model
A 7-billion-parameter (7B) model needs about 14GB of VRAM in FP16 and can be compressed to about 3.5GB after INT4 quantization. This means an entry-level GPU with 8GB of VRAM can’t run the FP16 7B model, but can run it smoothly once it’s quantized. So “VRAM capacity + quantization strategy” is the first factor to consider when judging feasibility.
One important reminder: the KV cache grows roughly linearly with context length and concurrency. In long-context conversations or batched inference scenarios, actual VRAM usage will be noticeably higher than the weight-only estimate, so be sure to reserve a 20%–30% margin when selecting hardware.
2. VRAM bandwidth: the invisible ceiling that decides how fast it runs
The autoregressive decoding stage of an LLM (generating one token at a time) is a typical memory-bound task: for every token generated, the entire set of weights must be moved from VRAM to the compute units. Here the bottleneck is often VRAM bandwidth rather than compute. This is also why two GPUs with similar compute can differ noticeably in real inference speed—the one with higher bandwidth is usually faster.
An intuitive rule of thumb:
Theoretical decode ceiling (tokens/s) ≈ VRAM bandwidth / bytes read per token
So, as long as capacity is enough to “run,” higher bandwidth means “faster.” Users who want smooth interaction (low-latency conversation) should treat bandwidth as the second consideration, right after capacity.
3. Compute precision and operator support: a hidden advantage of newer architectures
Not all GPUs support every numeric precision equally. Newer architectures typically support bf16 (bfloat16) natively; it has the same exponent range as FP32 but fewer mantissa bits, giving better numerical stability and being less prone to overflow during inference and fine-tuning. Older consumer GPUs may only fully support FP16/FP32 and lack efficient bf16 support, forcing software to fall back to inefficient paths that indirectly slow things down and increase VRAM pressure.
So when choosing between “older architecture with large VRAM” and “newer architecture with standard VRAM,” you can’t just compare the VRAM numbers—you also have to check whether the architecture natively supports the precision and operators you need.
4. VRAM optimization algorithms: the same card, up to 2x the efficiency
The VRAM cost of attention computation grows quadratically with sequence length, and it’s the main reason VRAM usage explodes in long-context scenarios. Mature attention tiling optimizations in the industry avoid fully materializing the huge attention matrix in VRAM by processing in blocks and computing in a streaming fashion, which greatly reduces peak VRAM usage and supports longer contexts.
The key point: these optimizations place certain demands on hardware architecture. Newer architectures support them well, while older architectures often can’t enable them and fall back to the standard implementation, losing out on both VRAM and speed. This is why “an extra two or three GB of VRAM” sometimes doesn’t translate into better real-world performance—without matching optimizations, the marginal value of that extra VRAM is very low.
5. Architecture generation and positioning: why “old card with big VRAM” may not be worth it
Beyond mainstream consumer GPUs, the market also has data-center/professional compute cards, as well as unofficially modified cards with expanded VRAM.
- Data-center/professional cards: usually equipped with ECC VRAM, higher bandwidth, and more complete software-stack support, making them suitable for stable, long-running, high-load operation; but the unit price is high, and they often require dedicated cooling, power, and a full system environment, so the total cost of ownership isn’t low.
- Unofficially modified consumer cards: offer larger VRAM at a lower price and seem like great value, but generally lack ECC and support for newer optimization techniques, and both stability and warranty carry risks—so they’re not suited for production environments.
The conclusion is clear: VRAM capacity is just the entry ticket; whether you can use it well depends on architecture, optimization support, and stability. Blindly chasing “big VRAM at a low price” easily leads to pitfalls.
6. Power, cooling, and multi-GPU scaling
- Power and cooling: a single card can draw several hundred watts, so when selecting hardware you must account for power-supply headroom and chassis cooling capacity; otherwise throttling is likely.
- Multi-GPU parallelism: when a single card’s VRAM isn’t enough, you can split the model across multiple cards via model parallelism / tensor parallelism. But multi-GPU parallelism relies heavily on high-speed inter-card interconnect; a solution that can only go through the PCIe bus sees communication overhead rise sharply, which can even offset the VRAM benefit of going multi-GPU. Whether the motherboard supports the corresponding multi-card splitting and interconnect is a prerequisite you must confirm in advance.
7. A practical GPU selection decision framework
Judging step by step in the following order helps avoid the most common pitfalls:
- Calculate capacity first: estimate weight VRAM with “parameter count × bytes,” then add the KV-cache margin to determine the minimum VRAM threshold.
- Choose quantization: if capacity is tight, prioritize INT4/INT8 quantization to get the target model running.
- Check bandwidth: once capacity is met, use bandwidth to decide interaction smoothness.
- Verify precision and optimization: confirm the GPU natively supports the required precision (e.g., bf16) and attention optimization techniques.
- Do the total math: factor in the GPU price, power, cooling, and full-system cost together, and evaluate “marginal cost vs. marginal benefit” to avoid falling into the trap of diminishing performance and sharply rising cost in the high-end range.
- Stability first: for production or long-running scenarios, prioritize stability and ECC over simply piling on VRAM.
8. Conclusion
Local LLM deployment is a “constraint-driven engineering decision”: VRAM determines feasibility, bandwidth determines experience, architecture and optimization determine efficiency, and cost and stability determine sustainability. Rather than obsessing over the absolute specs of a single card, it’s better to build the reusable evaluation framework above and weigh your model size, context length, and budget item by item. The true “sweet spot” is always the point where performance, cost, and stability intersect.
