How to Deploy a Full 671B Parameter Model Locally: Configuration Guide
This guide explains how to run a full 671B parameter model locally without parameter pruning or structural distillation. It defines what "full" means, provides a conservative formula for estimating the memory floor at Q8 and Q4 precision, and outlines minimum GPU cluster configurations by per-card VRAM, a CPU-only option, and the additional VRAM and interconnect requirements for fine-tuning and training. Readers will find practical sizing numbers and a short list of deployment recommendations.
1. Define What “Full” Actually Means
In an engineering context, “full” usually means loading and running a model of roughly 671 billion parameters at its original parameter count, with no parameter pruning and no structural distillation. It is not the same as “high precision.” Resource requirements are determined by the combination of two variables: total parameter count and numerical precision. Running 671B parameters at 8-bit precision is the most common baseline in local deployment discussions. 4-bit quantization compresses the weights to roughly half the size, trading memory for quality, and is an acceptable compromise.
Note that quantization does not change the number of parameters; it only changes the bit width used to store each one. “Full” is therefore a structural concept, while “Q8/Q4” is a resource concept, and the two should not be conflated.
2. Calculate the Resource Floor with a Conservative Formula
A commonly used, deliberately conservative estimate for sizing is:
M = (P × 4) / (32 / Q) × 1.2
Here M is the required memory in GiB, P is the parameter count in units of 1B, and Q is the precision in bits. The 4 in the numerator represents 4 bytes per parameter at the baseline precision, dividing by (32/Q) converts the bit width, and the final 1.2 roughly covers model replicas, KV context cache, runtime fragmentation, and other overhead.
Plugging in P=671:
- Q8: approximately 805 GiB
- Q4: approximately 403 GiB
These two numbers are the foundation of the whole plan. Any configuration below them will fail outright at load time, not merely “run a bit slower.”
3. GPU Route: A Multi-Card Cluster Is the Only Realistic Option
A single card cannot hold the model, so multi-card parallelism is mandatory. Grouped by per-card VRAM, the following are minimum configurations that meet the floor (allow 10%–20% headroom in practice):
- 80G-class cards: Q8 needs about 2 eight-card servers; Q4 needs about 1 six-card server.
- 48G-class cards: Q8 needs about 3 eight-card servers; Q4 needs 1 eight-card server plus 1 two-card server.
- 24G-class cards: Q8 needs about 5 eight-card servers; Q4 needs about 3 eight-card servers.
To compress the footprint into “one large machine plus one small machine,” Q8 can use 1 eight-card plus 1 four-card node, and Q4 can use 1 eight-card plus 1 four-card node (48G class) or 4 eight-card plus 1 four-card node (24G class).
On selection logic: 24G and 48G cards deliver per-card compute close to high-end consumer cards, with low acquisition cost and strong price-performance, making them suitable for inference-heavy workloads. 80G cards offer communication and VRAM advantages in large-scale parallel training that are hard to replace.
4. CPU Route: It Runs, but Accept the Slowness
Without accelerator cards, a dual-socket server platform with 1T of memory is the minimum bar for Q8; Q4 only requires a proportionally lower memory capacity. This route essentially trades memory capacity for VRAM capacity, at the cost of memory bandwidth and parallel compute becoming hard bottlenecks. A model of this scale has almost no spare compute on CPUs, and both time-to-first-token and throughput degrade noticeably. It is suitable only for offline batch processing and validation experiments, not for user-facing online serving.
5. Fine-Tuning and Training: VRAM Multipliers and the Communication Wall
Fine-tuning needs to be considered in two tiers. With low-rank adaptation methods, VRAM usage is close to inference, because the backbone weights are frozen and only a small number of side-path parameters are updated. Full-parameter fine-tuning typically requires 6–10 times the VRAM of inference, plus optimizer states and gradient replicas.
Communication matters even more. Large-scale parallel training is highly sensitive to inter-card and inter-node bandwidth. A cluster built from cost-effective cards is economical for inference, but for pre-training or continuous iteration, communication overhead quickly eats into compute gains. If the goal is the full training pipeline, prioritize a high-end accelerator platform with high-bandwidth interconnect.
6. Practical Recommendations
- Decide precision first: choose Q8 for quality, Q4 for deployability.
- Then decide the form factor: multi-card GPUs for online serving, CPU for offline experiments.
- Leave headroom: plan VRAM and memory at 15% above the formula result.
- Invest in tiers: cost-effective cards for inference, high-bandwidth cards for training; avoid a one-machine-fits-all approach.
In the cloud, the same resources can be combined on demand through general capabilities such as container platforms, bare metal, and high-performance networking. Validating at a small scale before scaling out is often more prudent than a one-time heavy capital purchase.
