Hardware Requirements for Running a Full 671B LLM Locally
This article breaks down what it actually takes to deploy a full 671B-parameter large language model on your own hardware. It defines what "full" means, provides a memory estimation formula for 8-bit and 4-bit precision, and compares three deployment routes: GPU clusters, CPU inference, and heterogeneous tiering with expert caching. It also covers the extra memory overhead of fine-tuning and ends with a practical selection checklist based on budget, throughput, and accuracy needs.
1. Define “Full” Before Anything Else
Before discussing hardware, we need a shared definition. “Full” means every parameter of the model is loaded at its original scale and participates in the forward pass—671 billion parameters in total, with no pruning, no distillation, and no substitution with a smaller variant. This is a critical premise: many lightweight versions have only a fraction of the parameter count, and their hardware requirements are entirely different. The two cannot be discussed interchangeably.
Precision sets the threshold as well. The industry generally treats 8-bit quantization as the reference line for “acceptable precision loss” and 4-bit quantization as the common trade-off of trading memory for cost. The discussion below focuses on these two precisions.
2. Estimating Memory and VRAM
A conservative, hand-calculable estimate works as follows:
M = (P × 4) / (32 / Q) × 1.2
Here, M is the required memory capacity (GiB), P is the parameter count (in units of 1B), and Q is the precision in bits. The 4 in the numerator converts from a 32-bit float baseline, the denominator (32 / Q) represents the precision compression factor, and the final 1.2 is an empirical overhead coefficient covering model replicas, context caching, runtime buffers, and other extra costs.
Plugging in P = 671:
- 8-bit precision: approximately 805 GiB;
- 4-bit precision: approximately 403 GiB.
The significance of this magnitude is that it is not a question of “can a single card fit it,” but “can the aggregate memory/VRAM of an entire machine fit it.” No single-card solution holds up at this parameter scale.
3. Route One: GPU Cluster Inference
Grouping by per-card VRAM capacity, we can roughly estimate the required server scale (assuming 8 cards per server):
- 80GB-class cards: approximately 2 eight-card servers for 8-bit; approximately 1 six-card server for 4-bit.
- 48GB-class cards: approximately 3 eight-card servers for 8-bit; approximately 2 eight-card servers plus 1 four-card server for 4-bit.
- 24GB-class cards: approximately 5 eight-card servers for 8-bit; approximately 4 eight-card servers plus 1 four-card server for 4-bit.
It is important to stress that the table above is the minimum to “get it running,” not a configuration that “runs comfortably.” The real bottleneck in multi-node, multi-card inference is often not compute but inter-card and inter-node communication bandwidth: tensor parallelism requires cross-card synchronization at every layer, and once inter-node interconnect bandwidth is insufficient, communication overhead rapidly eats into compute gains. When purchasing, prioritize high-speed interconnect capability rather than simply stacking card counts.
The relative cost picture is clear: an 8-card machine built from consumer/workstation-class 24GB cards typically costs in the range of several hundred thousand (in the low-to-mid hundreds of thousands), with per-card compute comparable to high-end consumer cards and clearly better cost-performance than a cluster of dozens of 80GB-class data center cards (the latter often requiring an overall investment of a million or more). But this cost-performance advantage only holds for inference scenarios.
4. Route Two: CPU Inference
If you only have memory and do not pursue throughput, CPU inference is viable: 8-bit precision requires at least a dual-socket server-grade processor with 1TB of memory; 4-bit is the same, only adjusting memory capacity.
The cost must be clear: CPU-side memory bandwidth and parallel compute are far from enough to feed a model of this scale, and during the decode phase there is almost no spare compute, so output speed drops to a level that affects usability. As for using a CPU for fine-tuning or training, it is basically not engineering-feasible—do not expect it.
5. Route Three: Heterogeneous Tiering and Expert Caching
Models of this scale generally use a sparse expert structure, meaning each forward pass activates only a small subset of all parameters. Taking advantage of this, you can keep frequently activated experts resident in VRAM and place the rest in large-capacity memory, swapping them in on demand—completing inference with a heterogeneous combination of “one professional GPU + large-capacity memory + multi-socket processors.”
This route reduces VRAM requirements from hundreds of GiB to a single-card level, making it the lowest-cost option for pure inference scenarios. Its applicability boundary is also clear: it suits low-concurrency, latency-tolerant internal Q&A and experimental validation; it is not suited for high-concurrency online services, because swapping in and out introduces extra latency jitter.
6. Additional Overhead from Fine-Tuning
If the requirement includes “domain-specific training,” the memory budget must be recalculated:
- Parameter-efficient fine-tuning (low-rank adaptation methods) has memory requirements on the same order as inference, adding only a small amount of optimizer state and activation cache;
- Full-parameter fine-tuning typically requires 6 to 10 times the inference memory, because it must additionally store gradients, optimizer states, and intermediate activations.
This means the full-parameter route is nearly infeasible locally and must shift to a large-scale cluster with high-speed interconnect, or use on-demand cloud compute.
7. Selection Checklist
- Inference only, budget-sensitive: prioritize the heterogeneous tiering approach—dual-socket processors + 1TB memory + a single professional card.
- Stable throughput needed: plan for 4-bit precision with multi-node, multi-card 80GB-class setups, and verify interconnect bandwidth carefully.
- Accuracy first: plan for 8-bit precision, with roughly double the scale.
- Fine-tuning needed: first validate with parameter-efficient fine-tuning, then assess whether a full-parameter cluster is worth the investment.
- Elastic demand: put peak loads on cloud general-purpose compute and container platforms, keep a small-scale validation environment locally, and manage data and runtime state with object storage plus monitoring and alerting.
