How to Run a Full 671B LLM Locally: Hardware and Memory Requirements
This guide explains what it takes to deploy a full 671B parameter model locally with 8-bit (Q8) weights. It walks through a conservative memory estimation formula, GPU scaling across single-card memory tiers, CPU-based inference trade-offs, and the extra capacity needed for fine-tuning, then closes with practical planning advice for choosing hardware and deciding between local and cloud resources.
1. Define What “Full” Actually Means
Before discussing hardware, the terminology needs to be aligned. “Full” means loading and running the complete 671 billion parameter model with weights held at 8-bit precision (Q8), not a distilled, pruned, or heavily quantized lightweight variant. This definition sets the baseline for every hardware estimate that follows: the parameter count cannot be reduced, and the precision cannot be fudged.
Parameter count and memory usage are roughly linear, while precision determines how many bytes each parameter occupies. Multiplying the two gives the base size of the model weights; adding runtime overhead on top yields the real requirement.
2. A Conservative Formula for Sizing
A commonly used, deliberately conservative estimate 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 is the per-parameter byte baseline at 32-bit float; dividing by (32 / Q) converts to the target precision; the final 1.2 covers extra overhead such as model replicas, KV context cache, and runtime buffers.
Plugging in P = 671:
- At Q8: roughly 805 GiB
- At Q4: roughly 403 GiB
These two numbers are the anchors for the entire article. Any claim of running the full model on a single machine that cannot explain where this 800-level capacity comes from can be dismissed as unfounded.
3. GPU Path: Scaling Across Cards and Servers
The smaller the memory per card, the more cards and servers are required. Using an 8-card server as the common unit, the following gives an order-of-magnitude reference:
| Per-card memory | Q8 scale | Q4 scale |
|---|---|---|
| 80 GiB class | 1 × 8-card server | 1 × 6-card server |
| 48 GiB class | 1 × 8-card server + 1 × 4-card server | 2 × 8-card servers + 1 × 4-card server |
| 24 GiB class | 2 × 8-card servers | 3 × 8-card servers |
Three points stand out. First, 80 GiB-class cards are the efficiency inflection point: a single 8-card server can host Q8. Second, the 48 GiB class requires an asymmetric “full server plus half server” combination, making networking and parallel configuration more complex. Third, although 24 GiB-class cards are cheaper per unit, doubling the card count raises communication overhead and failure rates, so actual throughput may not be better.
Multi-node deployment must also account for inter-card and inter-node interconnect bandwidth. If the interconnect tier is insufficient, tensor parallelism gets blocked by communication, producing the phenomenon where more cards lead to lower utilization.
4. CPU Path: Feasible but Slow
For CPU inference, Q8 requires at least a single machine with a dual-socket server-grade processor and 1 TiB of memory; Q4 follows the same pattern, with memory capacity reduced per the formula. The value of this path is that memory capacity is cheap and easy to scale, but memory bandwidth and parallel compute are hard bottlenecks. A model of this scale has almost no spare compute, so generation is slow and the interactive experience is limited. Using CPUs for fine-tuning or training is essentially not viable.
5. Cost and the Extra Overhead of Training and Fine-Tuning
In terms of cost-effectiveness, a multi-card server built from 24 GiB-class cards is usually the best value: the whole-machine price is far below the 80 GiB-class option, and per-card compute is close to consumer flagship levels. But if the goal is pre-training, continuous iteration, and full-pipeline tuning, low-bandwidth interconnect becomes the bottleneck, and high-bandwidth, high-memory data-center-class accelerators are the reasonable choice.
For fine-tuning: the memory demand of parameter-efficient methods such as LoRA is close to inference; full-parameter fine-tuning requires 6 to 10 times the inference memory and demands fresh capacity planning.
6. Practical Recommendations
- Size capacity with the formula first, then pick card types, avoiding “buy cards first, do the math later.”
- Prioritize interconnect bandwidth within a single machine before scaling horizontally.
- Plan inference and fine-tuning separately, reserving several times the headroom for training scenarios.
- If local investment is too high, evaluate cloud on-demand container platforms combined with object storage, using elastic resources to absorb peaks.
