671B LLM Hardware Requirements: A Guide to Local Deployment
Deploying a complete 671-billion-parameter model locally requires careful planning for memory capacity, GPU interconnects, and workload requirements. This guide covers Q8 and Q4 memory estimates, GPU cluster sizing, multi-card parallelism, CPU inference limitations, and the additional resources needed for fine-tuning and training.
1. Define What “Full Model” Means
Before choosing hardware, establish a consistent deployment target. In this guide, a full-model deployment means loading and running all 671 billion parameters at 8-bit precision (Q8), without reducing the parameter count, pruning experts, or switching to a smaller distilled model.
Models at this scale typically use a mixture-of-experts (MoE) architecture. Although the total parameter count is approximately 671 billion, only about 37 billion parameters are activated for each token.
This distinction has two important implications:
- Weight storage depends on the total parameter count. Keeping all expert weights resident requires enough aggregate GPU memory or system RAM for the complete model.
- Compute requirements depend on the activated parameters. Per-token computation is much lower than for a dense model with the same total parameter count. Memory capacity and bandwidth therefore become central deployment constraints.
For hardware sizing, treat this primarily as a capacity-constrained deployment, rather than choosing hardware solely by peak compute performance. Prioritize aggregate GPU memory capacity, followed by inter-GPU and inter-node bandwidth.
2. Estimate Memory Requirements
A conservative engineering estimate is:
M = (P × 4) / (32 / Q) × 1.2
Where:
Mis the estimated memory requirement.Pis the parameter count in billions; here,P = 671.Qis the number of bits used to represent each weight.1.2is a headroom factor for model copies, KV cache, context buffers, and framework runtime overhead.
Using the source sizing convention, the estimates are:
- Q8:
(671 × 4) / (32 / 8) × 1.2 = 805.2 - Q4:
(671 × 4) / (32 / 4) × 1.2 = 402.6
These are approximate capacity-planning figures, commonly described as roughly 805 GiB for Q8 and 403 GiB for Q4. Be consistent about GB and GiB when comparing them with hardware specifications.
The following script reproduces the estimates for different precisions and headroom factors:
def estimate_gib(params_b: float, bits: int, overhead: float = 1.2) -> float:return (params_b * 4) / (32 / bits) * overheadfor q in (16, 8, 4):print(f"Q{q}: {estimate_gib(671, q):.1f} GiB")
A 1.2 headroom factor is a starting point for getting the model running, not a guarantee of sufficient capacity for every workload. Context lengths of 128K or more and higher request concurrency can substantially increase KV-cache requirements. For those workloads, a planning factor of 1.3–1.5 may be more appropriate.
3. GPU Deployment: Card Counts and Cluster Size
Divide the estimated total memory requirement by the memory capacity of one GPU to obtain a theoretical card count. Then round up to a practical server configuration, generally using eight-GPU servers as the deployment unit, with additional capacity where possible.
The following figures are engineering approximations:
| GPU memory per card | Q8 theoretical GPU count | Suggested Q8 cluster | Q4 theoretical GPU count | Suggested Q4 cluster |
|---|---|---|---|---|
| 80 GB-class data center accelerator | ≈10.1 | Two eight-GPU servers: 16 GPUs | ≈5.1 | One server with six to eight GPUs |
| 48 GB-class professional compute GPU | ≈16.8 | Three eight-GPU servers: 24 GPUs | ≈8.4 | One eight-GPU server plus one two-GPU server, or two eight-GPU servers |
| 24 GB-class consumer or graphics GPU | ≈33.6 | Five eight-GPU servers: 40 GPUs | ≈16.8 | Three eight-GPU servers: 24 GPUs |
More GPUs do not mean proportionally lower cost
A 24 GB GPU may cost less individually, but a Q8 deployment requires approximately five servers and 40 GPUs under this sizing approach. Chassis, power delivery, networking, and operational complexity all increase with the number of devices. A larger fleet also creates more opportunities for hardware failure.
80 GB GPUs provide the highest deployment density
An eight-GPU server with a high-speed internal interconnect provides a suitable domain for tensor parallelism. Using fewer nodes helps limit cross-node communication and makes the two-server Q8 configuration a relatively straightforward topology.
48 GB GPUs offer a capacity–cost compromise
For Q4, two eight-GPU servers provide a practical configuration. This can suit budget-conscious teams that also want a path toward a larger Q8 deployment.
Capacity alone is not enough to validate a configuration. Check the actual interconnect topology and the parallelism supported by the inference framework before purchasing hardware.
4. Engineering Constraints for Multi-GPU Parallelism
Once the GPU count is established, the next challenge is how to distribute the model.
- Tensor parallelism (TP): Splits the weights within a layer across GPUs. Communication is frequent, so it is best kept within a server’s high-speed interconnect domain—typically up to eight GPUs in the configurations discussed here.
- Pipeline parallelism (PP): Splits groups of layers across devices or nodes. It generally requires less communication than tensor parallelism, but introduces pipeline bubbles.
- Expert parallelism (EP): Distributes MoE experts across GPUs. This reduces the expert-weight storage required on each GPU, but is highly sensitive to all-to-all communication bandwidth.
A practical starting topology is TP=8 within each server, with PP or EP across servers.
For cross-node communication, use a low-latency, RDMA-capable fabric such as InfiniBand or RoCE Ethernet. Ordinary Ethernet below 10 Gb/s can become a substantial bottleneck for large-scale all-to-all traffic.
Storage also affects deployment usability
Loading hundreds of gigabytes of model weights from a single SATA drive can make every cold start take tens of minutes. Local NVMe RAID is a more suitable option for loading weights, while object storage can support model repository and version management.
5. CPU Inference: Feasible, but Not a Fast Serving Option
A CPU-only deployment requires a large-memory server platform:
- Q8: A dual-socket server-class CPU system, such as two mainstream x86 server processors with 16–32 cores each, and approximately 1 TB of RAM.
- Q4: The same general CPU platform, with approximately 512–768 GB of RAM.
The main constraint is memory bandwidth, rather than core count alone.
A simple bandwidth-only estimate illustrates the challenge: dividing an approximately 805 GB memory footprint by an aggregate memory bandwidth of roughly 1 TB/s gives about 1.2 tokens per second. This is a rough sizing illustration, not a reliable performance prediction for an MoE model. The total resident footprint and the weights accessed for a particular token are not the same quantity.
Autoregressive decoding remains highly sensitive to weight-access bandwidth, and additional CPU compute capacity does not automatically translate into useful throughput.
The practical role of CPU inference is therefore:
- Functional validation
- Output and precision comparisons
- Offline batch processing
It is generally not the preferred route for responsive online serving. CPU-only fine-tuning or training at this parameter scale is also not a practical deployment target.
6. Resource Requirements for Fine-Tuning and Training
Inference hardware requirements should not be treated as training requirements. The memory and communication demands change substantially with the training method.
Parameter-efficient fine-tuning with LoRA
Low-rank adaptation methods such as LoRA freeze the base model and train only low-rank adapter matrices. Memory requirements remain closer to inference than to full-parameter training.
The source sizing suggests an eight-GPU server with 48 GB per GPU as an entry point for a Q4 base model. However, this is a tight configuration relative to the Q4 memory estimate above, so it should be treated as a starting point to validate rather than a guaranteed fit.
Full-parameter fine-tuning
Full fine-tuning must accommodate:
- Model weights
- Gradients
- Optimizer states, including the two FP32 moment estimates used by Adam-style optimizers
A rough planning estimate is 6–10 times the inference memory requirement. Relative to the Q8 estimate, this means approximately 4,800–8,000 GB of aggregate memory.
Such deployments require multiple servers and GPUs, optimizer-state sharding, and mixed precision.
Pretraining and continued training
At this scale, communication bandwidth strongly affects distributed training efficiency. Consumer GPUs and professional graphics cards can be limited by their interconnect capabilities, reducing the benefits of scaling across servers.
Data center accelerators and high-speed networking are the appropriate hardware class for these workloads.
Procurement considerations
Professional compute GPU servers can offer attractive value for inference and parameter-efficient fine-tuning. Data center accelerator servers generally carry a substantially higher acquisition cost, but their interconnect capabilities matter much more for large-scale training.
Prices vary with market conditions and purchasing channels. Use current supplier quotations rather than treating any indicative price as a fixed budget.
7. Hardware Selection Checklist
Choose precision first.
Q8 is the full-model target defined in this guide. Q4 is the lower-cost alternative. Quantization below Q4 is not recommended here for this model scale.Calculate total capacity.
Apply the memory estimate, round up to a practical server configuration, and include spare capacity where possible. Extra capacity should not be confused with automatic failover.Validate the interconnect.
Prefer eight-GPU high-speed domains within servers. For multi-node deployments, plan for RDMA-capable networking.Account for context length and concurrency.
Long contexts and multiple simultaneous requests can push the headroom factor toward 1.3–1.5.Match the hardware to the workload.
Cost-effective GPUs may be suitable for inference and some fine-tuning workloads. Full-parameter fine-tuning and pretraining require high-bandwidth accelerators and networking.Consider cloud deployment as an alternative.
If building and operating a local facility is undesirable, GPU cloud instances, container orchestration, object storage for weights, and monitoring, alerting, and logging services can provide an operational alternative. On-demand scaling can reduce the need for a large upfront hardware investment.
Conclusion
Running a complete 671B-parameter model locally is primarily an engineering challenge. The planning estimates are approximately 805 GiB for Q8 and 403 GiB for Q4, with configurations starting around two eight-GPU servers for Q8 or one eight-GPU server for Q4 when using 80 GB-class accelerators.
The decisive question is not simply whether the weights fit. It is whether memory bandwidth, GPU interconnects, and cross-node networking can deliver usable throughput—and whether the deployment leaves enough capacity for longer contexts, concurrent requests, and future fine-tuning.
