How to Deploy a Full 671B LLM Locally: Hardware and Configuration Guide

    This guide explains how to run a full 671B parameter large language model locally with all parameters loaded at 8-bit precision. It covers a memory estimation formula, GPU server configurations for 80GB, 48GB, and 24GB cards, the practical limits of CPU-only inference, cost and capability trade-offs, and how fine-tuning changes resource requirements. Use it to size memory, choose hardware, and plan a local deployment.

    1. What “Full” Actually Means

    Before discussing hardware, it helps to define the term. In this article, “full” means every parameter of the model is loaded and participates in computation at 8-bit precision, with a parameter count of roughly 671 billion. No pruning, no distillation, and no expert routing reduction. Any variant labeled “lightweight” or “compact” is out of scope.

    Precision determines how many bytes each parameter occupies. At 8-bit precision, each parameter takes about 1 byte; at 4-bit precision, about 0.5 bytes. This conversion is the basis for every estimate that follows.

    2. Estimating Memory and VRAM

    A commonly used, slightly conservative formula is:

    1. M = (P × 4) / (32 / Q) × 1.2

    Where M is the required memory capacity in GiB, P is the parameter count in units of 1B, and Q is the precision in bits. The 1.2 factor covers model replicas, the context cache (KV Cache), runtime framework overhead, and VRAM fragmentation.

    Plugging in P = 671:

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

    This is an estimate near the lower bound. Long contexts and large concurrent batches raise KV Cache usage significantly, so it is advisable to reserve an additional 15% to 30% when planning.

    3. GPU Inference: Card Counts and Server Combinations

    The core constraint for multi-GPU deployment is that total VRAM capacity must be greater than or equal to the estimate, and the cards need high-speed interconnect. Grouped by per-card VRAM:

    • 80GB-class cards: Q8 needs about 10 cards, which can be split into one 8-GPU server plus one 4-GPU server, or two 8-GPU servers; Q4 needs about 6 cards, so a single 6-GPU server works.
    • 48GB-class cards: Q8 needs about 17 cards, meaning two 8-GPU servers plus one 4-GPU server, or three 8-GPU servers; Q4 needs about 9 cards, or two 8-GPU servers plus one 2-GPU server.
    • 24GB-class cards: Q8 needs about 34 cards, or four 8-GPU servers plus one 4-GPU server, or five 8-GPU servers; Q4 needs about 17 cards, or three 8-GPU servers.

    More cards is not automatically better. Interconnect bandwidth within a single machine is far higher than across machines, so keep tensor parallelism inside one server and use pipeline parallelism only across machines. This noticeably reduces throughput loss from communication bottlenecks.

    4. The Practical Limits of CPU Inference

    Without accelerators, Q8 requires at least a dual-socket server-grade processor platform with 1TB of memory; Q4 lowers the memory requirement accordingly. The point of this route is that it works, not that it is fast: memory bandwidth and parallel compute become hard bottlenecks, leaving almost no headroom for concurrency. Fine-tuning or training on a pure CPU setup is essentially impractical from an engineering standpoint.

    5. Matching Cost to Capability Goals

    On price-performance, a full 8-GPU server with 48GB-class cards typically costs somewhere in the range of several hundred thousand yuan, with per-card compute close to flagship consumer cards. That is clearly better value than high-end training card setups in the eight-hundred-thousand-yuan range, whose full systems often exceed a million. But the goal drives the choice:

    • Inference and light adaptation only: prioritize inference-oriented servers with high VRAM and good interconnect.
    • Pre-training and continuous iteration: a training cluster with high-bandwidth interconnect is mandatory, otherwise communication overhead will eat the compute gains.

    If you use cloud resources, you can select general capabilities such as container platforms, object storage, and monitoring and alerting on demand to handle deployment and operations, avoiding a large one-time capital investment.

    6. How Fine-Tuning and Training Scale Resources

    Parameter-efficient fine-tuning, such as low-rank adaptation, needs VRAM close to inference, making it a realistic starting point for local specialized training. Full-parameter fine-tuning needs 6 to 10 times the inference VRAM and requires replanning the cluster. You also need to reserve space for optimizer states, gradients, and activations, and this overhead grows quickly with long sequences.

    7. Deployment Checklist

    1. Decide on precision and target concurrency first, then work backward from the formula to the memory and VRAM lower bounds.
    2. Prefer multiple GPUs in a single machine to reduce cross-machine communication.
    3. Configure memory at 20% above the estimate.
    4. Prepare fast local storage so weight loading does not become a startup bottleneck.
    5. Run a small-sample stress test before deciding whether to scale up.