How to Deploy a Full-Parameter 671B LLM On-Premises: Hardware Configuration Guide
This guide explains how to size hardware for self-hosting a full-parameter 671B large language model. It defines what "full-parameter" means, provides a memory estimation formula with results for 8-bit and 4-bit precision, and compares pure GPU, pure CPU, and hybrid offloading approaches. It also covers the extra resources required for fine-tuning and ends with a practical selection checklist for building a cost-efficient deployment.
1. What “Full-Parameter” Actually Means
Before discussing hardware, it helps to align on terminology. “Full-parameter” generally means loading all model parameters at a precision close to the original weights, rather than running a lightweight version produced by distillation, pruning, or heavy quantization. A common industry reference point is a 671 billion parameter model running at 8-bit weight precision.
Two conclusions follow from this definition. First, the weight footprint is a hard cost that cannot be avoided through tuning. Second, any “low-cost full-parameter” approach does not actually compress the model; it changes how the weights are distributed across the storage hierarchy.
2. Quantifying VRAM and Memory Requirements
A conservative formula is commonly used in engineering to quickly estimate memory needs:
M = (P × 4) / (32 / Q) × 1.2
Where M is the required memory (GiB), P is the parameter count (in units of 1B), Q is the precision in bits, and the 1.2 factor covers model replicas, the KV cache, framework runtime, and fragmentation overhead.
Plugging in P = 671:
- 8-bit precision: approximately 805 GiB
- 4-bit precision: approximately 403 GiB
Note that 1.2 is only the lower bound for getting the model to start. Long context windows, high concurrency, and larger batches significantly increase KV cache usage. For practical planning, add another 20% to 30% on top of the estimate.
3. Pure GPU Inference: Server Configurations
If you insist on keeping all weights resident in VRAM, you need to assemble machines based on per-GPU memory capacity. Using an 8-GPU server as the minimum scheduling unit, the approximate mapping is:
| Per-GPU VRAM | 8-bit precision | 4-bit precision |
|---|---|---|
| 80 GiB class | 2 × 8-GPU servers | 1 × 6-GPU server |
| 48 GiB class | 3 × 8-GPU servers | 1 × 8-GPU server + 1 × 2-GPU server |
| 24 GiB class | 5 × 8-GPU servers | 3 × 8-GPU servers |
If you already own equipment, you can mix full and partial servers, for example one 8-GPU server plus one 4-GPU server to handle an 8-bit workload.
The problem with this route is the communication overhead of horizontal scaling. Multi-node inference depends on high-speed interconnects. Once cross-node bandwidth is insufficient, tensor parallelism efficiency drops quickly and latency jitter becomes noticeable. As a result, single-node multi-GPU is preferable to multi-node multi-GPU, and interconnect capability deserves more attention than per-GPU compute when selecting hardware.
4. Pure CPU Inference and the Cost Reality
Another option is to host the weights on a large-memory server: a dual-socket server-grade CPU platform with 1 TiB of memory is enough to meet the basic loading requirement for 8-bit precision; 4-bit precision only requires a proportionally smaller memory capacity.
However, its limits must be clear. The CPU route is constrained by both memory bandwidth and parallel compute. Decode throughput is typically far lower than on GPUs, with almost no headroom for concurrency. Training or fine-tuning on CPUs is essentially impractical.
In terms of total cost of ownership, a server built with mid-range professional GPUs is a more pragmatic starting point, with procurement and operating costs far below those of a high-end training card server with the same VRAM capacity. For full-pipeline pre-training and continuous iteration, however, a cluster of high-end accelerator cards with high-bandwidth interconnects is still required; otherwise, communication becomes the primary bottleneck.
5. Hybrid Offloading: The Key to Low-Cost Inference
Sparse activation architectures in large models, such as mixture-of-experts (MoE) structures, have an important property: a single forward pass only activates a small number of expert modules. Building on this, the industry has developed a “layered weight placement” inference paradigm—placing the expert weights most frequently hit by the current request in VRAM, keeping the remaining experts in host memory, and having the scheduling layer dynamically swap them in and out based on token routing.
The resource profile is roughly: a single professional GPU with sufficient VRAM + memory on the order of 1 TiB + a multi-core CPU platform is enough to run inference at full scale. Three points to note in practice:
- The expert cache hit rate determines actual throughput; uneven routing distribution triggers frequent paging.
- Host memory bandwidth becomes the new bottleneck, so the number of memory channels and their frequency should be prioritized.
- This paradigm is designed for inference optimization and is not suitable for training or full-parameter fine-tuning.
6. Resource Scaling for Fine-Tuning
If your needs go beyond inference and include domain adaptation, resource estimation must be recalculated:
- Parameter-efficient fine-tuning (low-rank adaptation methods): VRAM requirements are on the same order as inference and can be carried out directly on inference hardware.
- Full-parameter fine-tuning: VRAM requirements are roughly 6–10× those of inference, requiring a multi-node high-speed interconnect cluster combined with techniques such as VRAM sharding, recomputation, mixed precision, and gradient accumulation.
7. Selection Checklist
- Define the precision target: 8-bit aligns with the “full-parameter” definition, while 4-bit can significantly reduce costs.
- Perform capacity estimation first, then assemble hardware based on per-GPU VRAM, leaving more than 20% headroom.
- Prefer single-node multi-GPU and be cautious about cross-node scaling.
- For pure inference scenarios, evaluate layered weight offloading first.
- If fine-tuning is required, plan for 6–10× the VRAM and isolate training resources from inference.
- If you do not want to build your own data center, evaluate elastic options on cloud container platforms and high-performance computing instances, combined with object storage, image registries, and monitoring/alerting to build a complete pipeline, scaling up and down on demand to control costs.
