GPU Selection for Local LLM Deployment: A Guide to VRAM and Compute Requirements
This guide explains why memory capacity and bandwidth, rather than raw compute, are the primary constraints when deploying large sparse Mixture-of-Experts (MoE) models on-premises. It presents a four-dimension evaluation framework, compares data center, workstation, and consumer GPU categories, offers a step-by-step VRAM estimation method, and provides scenario-based selection and engineering best practices for stable, scalable inference.
1. Background: The Bottleneck Is Memory, Not Compute
Ultra-large Mixture-of-Experts (MoE) models are pushing open-source inference capabilities to new heights. Take a common sparse model with 671B total parameters that activates only a few billion parameters per token: it excels at long-context understanding, complex logical reasoning, and multi-task generation. Yet when enterprises move to private deployment, the first wall they hit is not floating-point compute (TFLOPS), but the VRAM wall and the bandwidth wall.
Three structural facts explain why:
- The total weight footprint is enormous. Even if only a fraction of the experts are activated per token, all expert weights must remain resident in VRAM (or be swapped in and out at high speed); otherwise, routing introduces unacceptable jitter.
- KV Cache grows linearly with context length. Pushing the context from 16K to 128K increases cache usage by nearly an order of magnitude, which is especially pronounced in long-context scenarios.
- Concurrency amplifies cache and scheduling overhead. In multi-user online serving, VRAM must hold not only the weights but also a large volume of session caches and scheduling buffers.
Therefore, during selection, VRAM capacity and memory bandwidth usually take priority over peak compute. This does not diminish the value of compute; it clarifies the order of constraints: first ensure the model “fits and is well-fed,” then worry about “computing fast.”
2. Evaluation Framework: Four Dimensions, Not a Single Benchmark
Instead of relying on a single benchmark score, use the following four-dimension framework:
- VRAM capacity: Determines the parameter count, quantization precision, and maximum context length you can support.
- Memory bandwidth: Determines actual throughput in the decode phase (token-by-token generation), which is a typical bandwidth-bound workload.
- Scalability: Multi-GPU interconnect topology within a node, cross-node scaling capability, and whether inter-GPU communication becomes a bottleneck.
- Engineering stability: Driver and inference framework compatibility, long-running stability, fault recovery, and observability.
A practical rule of thumb: the prefill phase is compute-bound, while the decode phase is bandwidth-bound. The user experience of online serving is determined jointly by time-to-first-token and per-token output speed, which correspond to the different dimensions above.
3. How Three Hardware Categories Differ (Neutral Descriptions)
To avoid pointing to specific products, this section describes three positioning categories: “data center high-bandwidth VRAM cards,” “workstation-class large-VRAM professional cards,” and “consumer high-value cards.”
3.1 Data Center High-Bandwidth VRAM Cards
These feature very large VRAM capacity paired with a high-bandwidth memory subsystem and mature multi-GPU interconnect within a single node. They suit high-concurrency online serving and ultra-long-context tasks. Their advantage comes from “fitting more weights and cache on a single card,” which reduces the communication overhead of cross-GPU partitioning. For long-context throughput, this category typically delivers close to a 2x improvement over the previous generation of similarly positioned hardware, but this range depends heavily on batch size, context length, and scheduling configuration and should not be treated as a fixed guarantee.
3.2 Workstation-Class Large-VRAM Professional Cards
These offer single-card VRAM capacity significantly higher than consumer products, with more mature engineering stability and driver support. Their value lies not in peak compute but in “single-card VRAM headroom + long-context stability + larger KV Cache space.” Under medium concurrency combined with long context, they often achieve roughly 30% to 70% higher throughput than consumer cards, again depending on batch and context settings. For mid-sized teams with limited budgets that need 24×7 stable operation, this is a cost-effective compromise.
3.3 Consumer High-Value Cards
These offer low cost per unit of VRAM and good performance-per-watt per card, but have small VRAM capacity and weak multi-GPU interconnect bandwidth. They are better suited to smaller models or heavily quantized workloads, and to low-concurrency, latency-sensitive personal assistant applications. When the model is fully resident in VRAM, their time-to-first-token can be slightly better than same-generation professional cards (roughly a 5%–15% variation range), but once VRAM overflow or cross-GPU partitioning is triggered, that advantage disappears quickly.
4. Capacity Estimation: Calculate VRAM First, Then Throughput
A reusable rough estimation method is as follows (illustrative, not an exact formula):
Total demand ≈ weight footprint + KV Cache + runtime overheadWeight footprint ≈ parameter count × bytes per parameter × (1 + framework overhead factor)KV Cache ≈ 2 × num_layers × hidden_dim × context_length × concurrency × bytes per elementRuntime overhead ≈ activation buffers + communication buffers + framework reserve (recommend 10%~20% headroom)
For a 671B-parameter model at FP8 (about 1 byte per parameter), the weights alone approach the 671GB range, before accounting for cache and overhead. This means:
- A single node with 8 GPUs at 96GB-class per card (about 768GB total) is feasible for “weights + medium-concurrency cache,” but long-context high-concurrency scenarios require a more conservative concurrency cap.
- A 141GB-class per-card configuration can significantly reduce the degree of partitioning and lower communication loss.
- Consumer 32GB-class single cards cannot hold the full weights and must rely on more aggressive quantization or multi-GPU partitioning, which raises engineering complexity and latency risk in tandem.
Quantization is an unavoidable lever: dropping from 16-bit to 8-bit saves about half the VRAM, and dropping to 4-bit with a suitable grouping strategy can halve it again, but this introduces precision loss and dequantization overhead that must be validated against a business evaluation set.
5. Scenario-Based Selection Recommendations
- High-concurrency online serving (multi-user, long context): Prioritize high-bandwidth large-VRAM cards, use a hybrid of tensor parallelism and expert parallelism, enable paged cache management and continuous batching, and set the concurrency cap as a function of VRAM headroom rather than an arbitrary fixed value.
- Low-latency interaction (coding assistants, personal agents): Prioritize keeping the model fully resident in VRAM and minimizing cross-GPU communication; consumer cards offer strong value in these small-model or heavily quantized scenarios.
- Mid-sized team private deployment (balancing budget and stability): Workstation-class large-VRAM cards are a solid choice, allowing a single-node start and horizontal scaling as the business grows.
- Edge or cost-sensitive scenarios: Consider smaller distilled versions of the same architecture or more aggressive quantization, trading VRAM for cost.
6. Engineering Best Practices
- Inference framework choice: For high-throughput serving, prefer a serving-oriented framework with continuous batching, paged caching, and prefix caching. Lightweight runtimes are fine for local testing but should not directly carry production concurrency.
- Parallelism strategy: Within a node, prioritize tensor parallelism; across nodes, add pipeline or expert parallelism. Avoid spending high-bandwidth interconnect on low-value partitioning.
- Observability: Build monitoring and alerts for VRAM usage, cache hit rate, queue latency, and time-to-first-token. Capacity decisions must be based on data, not peak benchmark scores.
- Elasticity and cloud coordination: Beyond the private base, use a container platform to host elastic replicas, object storage for model weights, and logging and monitoring services for full-chain observability, forming a hybrid model of “local-primary with cloud bursting for peaks.”
- Validation loop: Before launch, run dual-track accuracy and throughput evaluations on real business corpora, record curves across different context lengths and concurrency levels, and build a reusable capacity baseline.
7. Conclusion
Local deployment of ultra-large sparse models is essentially a constrained optimization problem of “VRAM capacity × bandwidth × scalability × stability.” First calculate the VRAM floor from parameter count and context length, then choose the hardware category based on concurrency targets, and finally balance cost and performance with quantization and parallelism strategies. This is the reproducible, scalable path to production.
