A Practical Guide to Running a Full 671B LLM Locally: VRAM, GPU, and Cost Planning

    This guide defines what "full" means for a 671B model (all 671 billion parameters loaded at Q8 or higher), then walks through a conservative memory estimation formula, GPU server combinations by per-card VRAM tier, the real limits of CPU-only inference, cost and procurement trade-offs, additional overhead for fine-tuning, and a deployment checklist. Readers can reproduce the capacity math by hand and size hardware before purchasing.

    1. Define “Full” Before Anything Else

    Start with a shared definition. “Full” means all 671 billion parameters are loaded and used for inference at 8-bit integer (Q8) precision — not a version that has been pruned, distilled, or aggressively quantized. Two conditions are non-negotiable: no parameter is dropped, and weight precision is no lower than 8 bits. Anything below that bar is effectively a reduced version, and its quality and cost structure cannot be compared to the full one.

    Two facts make everything that follows reproducible by hand: memory usage scales linearly with parameter count, and precision determines the byte cost per parameter.

    2. Quantifying VRAM and Memory Requirements

    A commonly used, deliberately conservative formula for quick sizing:

    1. 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, and Q is the quantization bit width. The 4 in the numerator is the baseline conversion from bytes per parameter under FP32, the denominator (32/Q) applies the precision scaling, and the trailing 1.2 is an engineering overhead factor covering framework overhead beyond weights, KV cache, context window, temporary activations, and memory fragmentation.

    Plugging in P = 671:

    • Q8: roughly 805 GiB
    • Q4: roughly 403 GiB

    The 1.2 factor is not a precise measurement but an empirical starting point. Actual usage fluctuates with context length, concurrent batch size, and whether paged attention is enabled. In long-context scenarios the KV cache alone can consume tens or even hundreds of GiB, so for production it is advisable to raise the overhead factor to 1.3–1.5 and recalculate.

    3. Choosing GPU Configurations

    VRAM is the hard constraint, and the card count must serve capacity. Grouped by per-card VRAM, the typical combinations below are expressed in 8-card servers.

    Per-card 80 GiB class (data center training cards):

    • Q8: 2 eight-card servers, or 1 eight-card server plus 1 four-card server;
    • Q4: a single 6-card server is enough.

    Per-card 48 GiB class (professional visualization/workstation cards):

    • Q8: 3 eight-card servers, or 2 eight-card servers plus 1 four-card server;
    • Q4: 1 eight-card server plus 1 two-card server.

    Per-card 24 GiB class (consumer/entry professional cards):

    • Q8: 5 eight-card servers, or 4 eight-card servers plus 1 four-card server;
    • Q4: 3 eight-card servers.

    One constraint is easy to overlook: multi-node deployment is not simple addition. Tensor parallelism is generally confined to a single node; crossing nodes requires pipeline parallelism or expert parallelism, and communication overhead significantly reduces throughput. That is why “fewer nodes, more cards” almost always beats “more nodes, fewer cards” — intra-node high-speed interconnect bandwidth determines the usable compute. Also reserve some VRAM per card for communication buffers; do not size capacity to be exactly full.

    4. The Real Limits of CPU Inference

    Without access to multi-node, multi-card setups, a dual-socket server-class CPU platform with more than 1 TB of memory can barely run Q8, and Q4 only requires proportionally less memory. But be clear about its role: constrained by memory bandwidth and parallel efficiency, this kind of configuration has almost no headroom, and decode speed is typically in the range of single-digit tokens per second. It is only suitable for offline batch processing, precision validation, or development and debugging.

    Fine-tuning or training on CPU alone is not viable — neither the time nor the energy cost holds up.

    5. Cost Structure and Procurement Advice

    From a price-performance standpoint, an 8-card server built from 24 GiB or 48 GiB professional cards costs far less to acquire than a data center training card solution with the same VRAM, while per-card compute is already sufficient for inference workloads. That makes it the rational choice for inference-only scenarios. If the business genuinely needs to cover pretraining, continuous iteration, and full-pipeline tuning, then data center training cards with high-bandwidth interconnect are required, because large-scale parallel training is extremely sensitive to communication latency — interconnect quality matters more than peak per-card compute.

    For a cloud route, look first at GPU cloud server instances offering high-speed interconnect, combined with parallel file storage and object storage. Elastic scaling replaces a one-time heavy capital investment and turns capacity planning from a one-shot decision into an adjustable parameter.

    6. Additional Overhead for Fine-Tuning

    The resource profile of dedicated training differs substantially from inference:

    • Parameter-efficient fine-tuning such as LoRA: VRAM demand is on the same order as inference, slightly higher, typically 1–2x;
    • Full-parameter fine-tuning: requires 6–10x inference VRAM, because gradients, optimizer states, and activations must all be held simultaneously.

    A rough capacity self-check:

    1. def estimate_gib(params_b, bits, factor=1.2):
    2. return (params_b * 4) / (32 / bits) * factor
    3. infer_q8 = estimate_gib(671, 8)
    4. print("Inference Q8:", infer_q8) # ≈ 805
    5. print("LoRA fine-tuning:", infer_q8 * 1.5) # ≈ 1208
    6. print("Full fine-tuning:", infer_q8 * 8) # ≈ 6440

    7. Deployment Checklist

    1. Fix the precision target and recompute capacity with the formula rather than estimating by feel;
    2. Prefer single-node multi-card setups to reduce cross-node communication;
    3. Reserve more than 30% headroom for KV cache and concurrency;
    4. Plan inference and training separately; do not force inference cards to handle training;
    5. Run a small-scale stress test first, measure actual throughput and peak VRAM, then decide the procurement scale.

    With this framework for calculation and validation, hosting a full 671-billion-parameter model locally turns from guesswork into a solvable capacity planning problem.