A Practical Guide to Deploying a Full-Parameter 671B Large Model On-Premises
This guide explains how to size hardware for running a full 671B-parameter large language model locally. It defines what "full" means in technical terms, provides a formula for estimating memory and VRAM requirements at 8-bit and 4-bit precision, and compares three deployment paths: GPU-only, CPU-only, and hybrid VRAM-plus-memory inference. It also covers how resource needs scale for fine-tuning and training, and outlines a three-step selection process along with a cloud-based alternative.
1. Defining What “Full” Actually Means
Before discussing hardware, it helps to align on terminology. In practice, “full” usually means the model loads all 671 billion parameters at 8-bit precision, with no layer pruning, no distillation, and no replacement of the attention structure. Anything below that bar—4-bit quantization, parameter distillation, or structural pruning—is not a full version, and its resource profile and output quality need to be evaluated separately.
Note that 8-bit precision is simply the baseline for “uncompressed,” not the only precision the model can run at. The same model still produces reasonably usable output under 4-bit quantization, but strictly speaking it is then a compressed version. The estimates below cover both precisions so you can choose based on how sensitive your use case is to quality.
2. Estimating VRAM and Memory Requirements
The first question for any large model deployment is whether it fits; speed comes second. A conservative formula for the loading requirement is:
M = (P × 4) / (32 / Q) × 1.2
Here, M is the required memory capacity in GiB, P is the parameter count in units of 1B (671 in this case), and Q is the precision in bits. The 1.2 factor covers overhead from model replicas, context caching, the framework runtime, and fragmentation.
Plugging in the numbers: roughly 805 GiB at 8-bit precision and roughly 403 GiB at 4-bit precision. This scale makes one thing clear—single-GPU or single-machine setups are not viable for this model. You must go multi-GPU or combine VRAM with system memory.
3. GPU-Only: Total VRAM as the Only Hard Constraint
If you insist on keeping all weights in VRAM, the number of GPUs is determined by per-card capacity, and the number of servers follows from the standard 8-GPU-per-node configuration. At 8-bit precision: about 2 eight-GPU servers with 80GB-class cards; about 3 eight-GPU servers with 48GB-class cards; about 5 eight-GPU servers with 24GB-class consumer cards. Asymmetric configurations, such as one 8-GPU node plus one 4-GPU node, can also lower the procurement threshold. At 4-bit precision the requirement roughly halves: a single 6-GPU node with 80GB-class cards, or about 3 eight-GPU nodes with 24GB-class cards.
From a procurement standpoint, an 8-GPU node built from 24GB-class consumer cards typically costs in the range of several hundred thousand RMB, well below an 80GB-class training-card node, which runs into the millions. Per-card compute is comparable, making consumer cards more cost-effective. The trade-offs are real, though: consumer cards lack high-speed interconnects and reliable multi-node communication, so inter-card bandwidth becomes the bottleneck and scaling efficiency drops as the cluster grows. Stability and thermal headroom under sustained full load also fall short of professional cards. This tier therefore suits validation scenarios where getting it running matters more than peak efficiency.
4. CPU-Only Inference: Feasible but Not for Production
Another path is a dual-socket server-grade CPU setup with 1TB of memory to hold 4-bit or 8-bit weights. The advantages are cheap, easily expandable memory capacity. The drawbacks are insufficient memory bandwidth and parallel compute, resulting in very low decode throughput and almost no headroom for concurrency. The conclusion: CPU inference works for offline batch processing, functional validation, or as a fallback, but it is not suited to user-facing online services, and even less so for fine-tuning or training.
5. Hybrid VRAM and Memory: Cost Savings Enabled by Architecture
Hybrid inference is currently the most cost-effective option, and its feasibility comes from the sparse activation of the Mixture-of-Experts (MoE) architecture: each token activates only a few experts, and the remaining expert weights do not participate in that forward pass. You can therefore keep frequently activated experts resident in VRAM and leave the rest in system memory, loading them on demand—running the full model with one professional GPU, large-capacity memory, and a CPU.
Three engineering points matter. First, the expert residency strategy must match your workload, since the hit rate directly determines throughput. Second, swapping in and out adds latency, so evaluate whether time-to-first-token and generation speed meet your SLA. Third, leave memory headroom for context and concurrency; 1TB is a safe starting point. The approach is highly attractive for pure inference, but the swapping overhead makes it unsuitable for training.
6. How Resource Needs Scale for Fine-Tuning and Training
If you need more than inference, the estimates scale up. Parameter-efficient fine-tuning such as LoRA requires VRAM on the same order as inference and can be done on the inference cluster. Full-parameter fine-tuning typically needs 6 to 10 times the inference VRAM and is sensitive to inter-card and inter-node bandwidth, making high-speed interconnects and parallel training frameworks mandatory; consumer cards and CPU-only setups do not apply. For full pre-training and continuous iteration, plan according to training-cluster standards rather than reusing the inference configuration.
7. Deployment Recommendations and a Cloud Alternative
A three-step selection process works well. First, define your precision and concurrency targets, then use the formula to calculate the capacity floor. Second, compare the latency and total cost of the GPU-only, CPU-only, and hybrid paths. Finally, reserve supporting resources for operations, monitoring and alerting, logging, and object storage.
If your organization prefers to avoid a large upfront capital investment, general-purpose cloud compute is an option: rent GPU instances and high-memory instances on demand, use a container platform for elastic scaling, monitor latency and throughput with alerting and logging services, and store model weights and datasets in object storage. Baidu AI Cloud offers general-purpose GPU and memory instances along with container and storage products that can serve as the foundation for such an elastic setup, suitable for validating at small scale before deciding between self-hosting and long-term rental.
