A Practical Guide to Deploying a Full-Parameter 671B LLM On-Premises
This guide explains how to size hardware for running a full-parameter 671B large language model locally at Q8 or Q4 precision. It covers the definition of a "full" model, a memory capacity formula, multi-node GPU server configurations, the limits of CPU-only inference, and a hybrid GPU-CPU caching approach that lowers the entry cost. It also outlines the extra resources required for fine-tuning and training, plus a phased cloud alternative.
1. Defining What “Full-Parameter” Actually Means
Before discussing hardware, the terminology needs to be aligned. In this guide, “full-parameter” means loading and running a large language model with its original parameter count of roughly 671 billion (671B) at 8-bit precision (Q8), with no parameter pruning and no distilled smaller model. Any claim of a “full” model that compresses the parameter count into the tens of billions or applies low-bit quantization changes the hardware conclusions significantly. All calculations below use this definition.
It is also important to note that models at the 671B scale typically use a Mixture of Experts (MoE) architecture: the total parameter count is very large, but each forward pass activates only a small subset of the expert networks. This characteristic is what makes the hybrid inference approach discussed later feasible, and it is key to understanding the cost differences.
2. Quantifying Memory and VRAM Capacity
The most conservative estimate can be written as:
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), Q is the precision in bits, and the factor of 1.2 covers additional overhead such as model copies, KV context cache, and runtime framework usage.
Plugging in the numbers:
- Q8 precision: approximately 805 GiB
- Q4 precision: approximately 403 GiB
These figures establish the floor for hardware procurement: regardless of the acceleration approach, the usable memory pool (VRAM or system RAM) cannot fall below this level, or the model cannot be fully resident.
3. Server Configuration for a GPU-Only Path
If you insist on keeping all weights resident in VRAM, planning must be based on per-card capacity. Using the common 80GB, 48GB, and 24GB per-card tiers (corresponding to data center accelerators, professional graphics cards, and high-end consumer cards), with an 8-card server as the typical deployment unit, the approximate breakdown is:
| Precision | 80GB×8 Server | 48GB×8 Server | 24GB×8 Server |
|---|---|---|---|
| Q8 | 2 units | 3 units | 5 units |
| Q4 | 1 unit, 6 cards | 1 unit with 8 cards + 1 unit with 2 cards | 3 units |
If you only have a single 8-card 80GB server, Q8 requires adding a 4-card machine, while Q4 can run on 6 cards in a single unit. The key point is that multi-node deployment is not just about adding machines; it introduces cross-node communication overhead. High-speed interconnect between nodes (such as an RDMA-class network) is required to avoid pipeline parallelism being bottlenecked by bandwidth.
On cost, a practical rule of thumb is that an 8-card server built with professional cards whose per-card compute is close to a flagship consumer card typically costs in the range of several hundred thousand RMB to purchase, clearly lower than a data center training card solution of the same scale (which runs into the millions of RMB). This makes it more cost-effective for pure inference. However, if the goal is pre-training, continuous iteration, and full-parameter tuning, communication bandwidth becomes a hard constraint, and training-grade cards with high-bandwidth interconnect are still required.
4. The Feasibility Boundary of a CPU-Only Path
In theory, a dual-socket server-grade CPU (such as a 9004/9005 generation EPYC or a fifth-generation Xeon Platinum class platform) paired with 1TB of memory can handle a Q8 model; Q4 only requires a corresponding reduction in memory capacity. But its limits must be clear:
- Memory bandwidth is the bottleneck, and CPU parallel compute is limited, leaving almost no spare compute at this model scale;
- Both first-token latency and generation throughput degrade noticeably, resulting in a poor interactive experience;
- Attempting to use a CPU for fine-tuning or training is essentially not viable.
The CPU path should therefore be positioned as “runnable, verifiable, and extremely low cost,” not as a production-grade online service.
5. Hybrid Inference: The Key to Low-Cost Deployment
For MoE architectures, a cache-style inference approach has emerged that places the currently activated experts in VRAM while keeping the remaining experts in system memory: the CPU and RAM handle the bulk of weight storage, and the GPU only performs matrix operations for the hot experts. The effect is to reduce VRAM requirements from hundreds of GiB to a range a single card can handle.
A typical low-cost configuration looks like this: a dual-socket next-generation server CPU + 1TB of memory + one professional-grade or high-end consumer GPU. This combination brings the entry point back from “multiple 8-card servers” to “a single workstation-class machine,” which is highly attractive to teams that only need inference and do not perform fine-tuning. Three engineering points need attention: first, populate all memory channels to maximize bandwidth; second, match the context length to actual business needs to avoid the KV cache crowding out memory; third, continuously monitor VRAM hit rate and throughput through a monitoring service, and dynamically adjust the caching strategy.
6. Additional Overhead for Fine-Tuning and Training
If the requirement goes beyond inference:
- Parameter-efficient fine-tuning such as LoRA requires VRAM roughly on the same order as inference, with a small increase over the inference configuration;
- Full-parameter fine-tuning typically requires 6–10 times the inference VRAM, covering optimizer states, gradients, and activations;
- Pre-training and continuous iteration must follow a multi-node, multi-card, high-bandwidth interconnect path.
7. Cloud Alternatives and Selection Guidance
For most enterprises, a one-time hardware investment of millions of RMB is not economical. A more prudent path is to layer the approach: use on-demand general-purpose GPU instances in the cloud during the validation phase; combine reserved annual/monthly commitments with elastic scaling during the stable phase; persist data and model weights through object storage, delegate task scheduling to a container platform, and add monitoring, alerting, and logging services for full-chain observability. General-purpose GPU cloud servers, container, and storage products from Baidu AI Cloud can serve as the foundation for this kind of architecture.
The conclusion is clear: for pure inference, evaluate the hybrid inference approach first; pursue multi-node, multi-card GPU clusters when stable throughput is required; the CPU path is only suitable for validation and offline batch processing; and training and fine-tuning must be planned with resources an order of magnitude higher.
