Local LLM Deployment: A Hardware Configuration and Selection Guide
When you move a large language model from the cloud to your own hardware, the first question you hit is rarely "is there enough compute?" It is "can this machine actually run it?" For very large model inference — especially trillion-parameter Mixture of Experts (MoE) architectures — the real constraints have shifted to whether all weights fit in VRAM, whether long contexts (16K–128K and beyond) stay stable, and whether throughput holds up under concurrent users. The old "more TFLOPS wins" approach tends to fail here. This guide breaks down how to evaluate hardware configuration around those questions.
Introduction: The Local Deployment Bottleneck Has Moved
Migrating a large model from a hosted API to local hardware usually runs into a practical wall long before a theoretical one. In large-scale inference, particularly trillion-parameter MoE models, the binding constraints are no longer raw compute:
- Whether VRAM can hold all the weights;
- Whether the setup stays stable at long context (16K–128K or more);
- Whether throughput remains predictable when many users hit it at once.
The traditional “stack more FLOPS” mindset breaks down frequently in local deployment. This article unpacks the hardware evaluation logic behind these core issues.
1. Why VRAM Takes Priority Over Compute
For trillion-parameter MoE deployment, VRAM capacity and memory bandwidth typically matter more than peak compute. Three reasons:
- If it does not fit, nothing else matters. Model weights must load fully into VRAM — or be offloaded to system memory or disk at a steep cost. Once VRAM runs short, constant swapping kicks in, performance falls off a cliff, and in the worst case the model will not start at all.
- Bandwidth determines how fast weights can be fed to the compute units. Inference is an autoregressive, token-by-token process: at every step, huge amounts of weights must move from VRAM into the compute units. When bandwidth is insufficient, compute units sit idle waiting for data, and no amount of raw compute can compensate.
- KV Cache grows linearly with context length and concurrency. The longer the sequence and the higher the concurrency, the more VRAM the KV Cache consumes — directly eating into the memory available for everything else.
So hardware evaluation should focus on four dimensions — VRAM capacity, memory bandwidth, scalability, and engineering stability — rather than headline FLOPS.
2. Estimating VRAM Requirements: Can It Even Fit?
Before comparing cards, build a VRAM budget. Total VRAM demand breaks down into three parts:
Total VRAM ≈ Model weights + KV Cache + Runtime overhead
(1) Model weights
Weight VRAM ≈ Parameters × Bytes per parameterFP16/BF16 : 2 bytes/parameterINT8 : 1 byte/parameterINT4 : ≈ 0.5 bytes/parameter
A 670B-parameter model needs roughly 1.3 TB of VRAM in FP16, and still more than 300 GB after INT4 quantization. Clearly a single card cannot carry that — you are forced into either multi-GPU or quantization.
(2) KV Cache
KV_Cache ≈ 2 (K and V) × Layers × (batch × sequence length) × Hidden dimension × Bytes per element
This scales linearly with concurrency (batch) and context length, and it is the part most often underestimated in long-context scenarios.
(3) Runtime overhead
The framework itself, activations, and temporary buffers all consume memory. Reserve another 10%–20% headroom to stay clear of borderline OOM.
A simple estimation script:
def estimate_vram(params_b, quant_bytes, layers, hidden, seq_len, batch, bytes_per_elem):weights = params_b * 1e9 * quant_bytes # Model weightskv_cache = 2 * layers * (batch * seq_len) * hidden * bytes_per_elemoverhead = (weights + kv_cache) * 0.15 # Reserve 15% headroomtotal_gb = (weights + kv_cache + overhead) / 1e9return total_gb
Work out this number first, then compare it against the total single-GPU or multi-GPU capacity of your candidate hardware. Selection now has an objective basis.
3. Memory Bandwidth: The Hidden Ceiling for Long Context and Concurrency
Even when the model fits, insufficient bandwidth will hurt long-context performance badly. Token-by-token generation is memory-access intensive, which makes throughput highly sensitive to bandwidth. That is why two cards with identical headline compute can diverge sharply on long-text, high-concurrency workloads.
In practice:
- Accelerators with high-bandwidth memory (HBM-class) tend to be more stable for long context (16K+) and high-concurrency inference;
- A large-VRAM, high-bandwidth combination leaves more room for KV Cache and reduces degradation caused by running out of space.
4. Single-User Latency and High-Concurrency Throughput Are Two Different Curves
This is the most commonly confused point in local deployment selection: low concurrency and high-density concurrency are two entirely different optimization goals.
- Single user / low concurrency (for example, a coding assistant or a personal agent): the metrics that matter are time to first token (TTFT) and per-token generation speed. The model sits fully resident in VRAM and memory pressure is manageable, so hardware responsiveness is the key factor.
- High concurrency / serving (for example, exposing an inference service): the metrics that matter are overall throughput (tokens/s) and batching efficiency. Here KV Cache capacity, bandwidth, and the scheduling capabilities of the framework become dominant, and a large-VRAM, high-bandwidth single-card setup shows clear advantages.
Do not derive “the answer for every scenario” from “the winner in one scenario.” First decide whether the business is “few users, low latency” or “many users, high throughput,” then choose hardware accordingly.
5. Special Considerations for MoE Architectures
MoE models are characterized by very large total parameter counts while activating only a subset of experts per inference. Two consequences follow:
- Weight VRAM is calculated from total parameters. Even though a single token only routes through a few experts, all expert weights must remain resident in VRAM (or be scheduled on demand efficiently). VRAM budgeting cannot be based on activated parameters alone.
- Routing and KV Cache grow dynamically. Different requests may hit different experts, and uneven load distribution leaves some hardware idle while other parts are under pressure. This requires the inference framework to have solid load balancing and memory management.
In other words, MoE selection cannot copy the rules of thumb from dense models — you need enough VRAM headroom for “full weights plus dynamic activation.”
6. Large Single-Card VRAM vs. Multi-Card Scaling
When one card cannot hold the model, there are two paths:
- Few cards with very large VRAM: a small number of high-capacity cards carry the model. Interconnect overhead is low, deployment is simpler, and long context is handled more comfortably. Suited to small-to-medium concurrency and stability-focused scenarios.
- Multi-card parallelism: tensor or pipeline parallelism splits the model across several cards, so total capacity scales out. However, this requires additional inter-card interconnect bandwidth, communication overhead rises with the degree of parallelism, and configuration and tuning become more complex.
Weigh interconnect bandwidth, the communication cost introduced by parallel splitting, and operational complexity. More cards is not automatically better — it has to match the interconnect conditions and what the framework supports.
7. Selection by Scenario
- Individual or small-team development and validation: prioritize getting the model (including quantization) to fit completely, and focus on single-user latency. Meeting the VRAM capacity target is enough; bandwidth and responsiveness matter more.
- External inference service (high concurrency, long context): prioritize large VRAM plus high bandwidth, paired with a high-throughput inference framework, and leave ample headroom for KV Cache. Aim for throughput stability rather than peak compute.
- Large-scale production clusters: evaluate single-card capacity, scalability, interconnect bandwidth, and total cost of ownership together, balancing availability and maintainability.
8. Engineering Stability and Supporting Resources
Beyond hardware, stable deployment needs a complete engineering stack:
- Inference serving framework: choose a mature option that supports efficient batching, PagedAttention-style memory management, quantization, and parallelism;
- Quantization: use INT8/INT4 to reduce VRAM pressure where accuracy remains acceptable;
- Monitoring and alerting: continuously observe VRAM usage, throughput, latency, and OOM events;
- Elasticity and storage: if elastic scaling is required, general cloud capabilities such as container platforms, object storage, and logging services can handle model distribution and state management.
Conclusion
Local LLM deployment is fundamentally a trade-off across four dimensions — VRAM capacity, bandwidth, scalability, and engineering stability — not a simple comparison of FLOPS. Calculate the VRAM budget first, then pick a hardware direction based on whether the workload is “low concurrency, low latency” or “high concurrency, high throughput,” and finally rely on a mature inference framework and solid engineering support to underwrite stability. That sequence is what determines whether a local deployment actually gets off the ground.
