Hardware Requirements for Running a 671B Parameter Full-Precision LLM Locally
This guide explains what "full-precision" operation means for a 671B parameter MoE model, walks through a conservative memory-estimation formula, and compares GPU and CPU deployment options. It covers how to size multi-GPU server clusters by VRAM tier, the cost-performance tradeoffs between professional and data-center cards, and the extra resources needed for LoRA and full-parameter fine-tuning. By calculating capacity first, then checking interconnect bandwidth and budget, you can choose a deployment setup that fits your scenario.
1. First, Define What “Full-Precision Operation” Really Means
Before discussing hardware, we need to be clear about what “full-precision” means. Here it refers to loading and running a mixture-of-experts (MoE) model with a total of 671 billion (671B) parameters at 8-bit precision (Q8), in full. Specifically:
- No lossy compression to lower bit widths; the weights reside in memory or VRAM at close to their original precision.
- No truncation of expert modules and no removal of layers.
- Although the MoE architecture activates only part of the parameters per inference pass, all weights must remain accessible at all times, so the resident capacity is still calculated on the full parameter count.
Many articles claim that “a few tens of GB of VRAM is enough to run a hundred-billion-parameter model.” That claim rests on aggressive 2-bit or 3-bit quantization, which incurs obvious precision loss and does not fall within the full-precision scope of this article.
2. Estimating Memory Requirements: A Conservative, Reliable Formula
You can estimate the required memory with a commonly used conservative formula:
M = (P × 4) / (32 / Q) × 1.2
where the variables are:
- M: required memory in GiB;
- P: model parameter count, in units of 1B (one billion);
- Q: weight precision in bits;
- 1.2: an overhead factor reserved for model replicas, KV cache, runtime context, and other extras.
Plugging in 671B parameters:
- Q8 (8-bit precision): M ≈ 671 × 4 / (32/8) × 1.2 ≈ 805.2 GiB
- Q4 (4-bit precision): M ≈ 671 × 4 / (32/8) … ≈ 402.6 GiB
This formula essentially starts from a 32-bit baseline of “4 bytes per parameter,” scales linearly by the precision bit width, and then multiplies by the overhead factor. It is a conservative estimate. In real deployments, longer context lengths and higher concurrency push KV cache overhead up further, so it is wise to leave an extra 10%–20% margin on top of the calculated result when planning.
3. GPU Inference: Scaling Server Count by VRAM Tier
For GPU inference, you distribute the memory requirement above across multiple multi-GPU servers. Using three common per-card VRAM tiers as an example (80G-class data-center cards, 48G-class professional cards, and 24G-class consumer/prosumer cards), the approximate cluster sizes are:
1. Q8 precision (with redundancy, roughly 805 GiB or more)
- 80G per card: 2 servers with 8 cards each;
- 48G per card: 3 servers with 8 cards each;
- 24G per card: 5 servers with 8 cards each.
2. Q8 precision (compact layout, lower redundancy)
- 80G-class: 1 server with 8 cards + 1 server with 4 cards;
- 48G-class: 2 servers with 8 cards + 1 server with 4 cards;
- 24G-class: 4 servers with 8 cards + 1 server with 4 cards.
3. Q4 precision (about 402 GiB)
- 80G-class: 1 server with 6 cards is enough;
- 48G-class: 1 server with 8 cards + 1 server with 2 cards;
- 24G-class: 3 servers with 8 cards each.
Two engineering details are worth noting:
- Inter-card and inter-node interconnect bandwidth is the key bottleneck. In cross-node inference, tensor-parallel communication volume is enormous; over ordinary Ethernet, real throughput can fall far below the theoretical value. Within a single machine, prefer models with high-bandwidth interconnect (such as NVLink-class links); across machines, deploy a high-speed RDMA network such as InfiniBand or RoseRay.
- Load imbalance in MoE models also causes VRAM fragmentation, so do not plan your layout with the margin fully consumed.
4. CPU Inference: Feasible but Expensive
If you choose pure CPU inference, the barrier looks like simply “having enough memory”:
- Q8 needs at least a dual-socket server-grade CPU (such as a current-generation server platform) paired with a server holding 1T of memory;
- The Q4 option is the same, just with a correspondingly lower memory capacity.
But this path has three hard limits:
- Memory bandwidth bottleneck: Large-model inference is a memory-access-intensive task. CPU memory bandwidth is far lower than GPU VRAM bandwidth, so token generation speed during the decode phase is very slow.
- Weak parallel compute: Even though only part of the parameters are activated, CPU compute density is insufficient to deliver a practically useful response speed, leaving almost no compute headroom.
- Training is not viable: If you intend to fine-tune or even train on CPU, it is basically unusable—the intermediate activations and gradients of backpropagation multiply memory pressure several times over, and computation time becomes unacceptably long.
So the CPU option only suits scenarios insensitive to response speed, aimed at offline batch processing or validation.
5. Cost and Cost-Performance Analysis
When planning a budget carefully, the following order-of-magnitude market observations are useful:
- An 8-card 48G-class professional-card server is currently the most cost-effective choice, with a whole-machine price roughly in the 350,000–400,000 yuan range. Per-card compute is comparable to high-end consumer cards, with cost-performance clearly higher than an 8-card data-center flagship setup (usually above 1.5 million yuan).
- But if the workload is end-to-end pretraining, continuous iteration, and large-scale tuning, the professional-card option is constrained by inter-card communication bandwidth, and training efficiency drops sharply. In that case you must return to data-center-class cards with high-bandwidth interconnect (A100/H100-class tiers, referring to the spec class rather than a product recommendation).
In one sentence: for inference, prefer a 48G-class professional-card cluster; for training, you must use data-center-class cards.
6. Additional Resources for Fine-Tuning and Training
If your needs go beyond inference and involve “task-specific training,” the resource calculation is completely different:
- LoRA fine-tuning: Only the low-rank adaptation matrices are updated while the original model weights stay frozen, so VRAM demand is roughly on par with inference. This is the most realistic fine-tuning path for a hundred-billion-parameter model.
- Full-parameter fine-tuning: Weights, gradients, and optimizer states must all be stored simultaneously, so VRAM demand is about 6–10× that of inference. Taking Q8 inference at 805 GiB as the baseline, full-parameter fine-tuning may require aggregated VRAM on the order of 4.8T–8T, which is nearly unrealistic in a local environment. Be sure to evaluate the feasibility of cloud elastic compute or a distributed training framework.
7. Conclusion
Running a 671B model locally at full precision is essentially a three-part test of “capacity + bandwidth + interconnect”: Q8 needs about 805 GiB of aggregated memory/VRAM, and Q4 halves that; the GPU route uses multiple 8-card servers, with 48G-class professional cards recommended for inference and data-center-class cards for training; the CPU route is feasible but extremely slow and cannot train; for fine-tuning, prioritize LoRA. Calculate capacity first using the method here, then verify interconnect bandwidth, and finally match against your budget to make a deployment decision that fits your scenario.
