How to Deploy a Full 671B Parameter LLM On-Premises: A Configuration Guide

    This guide explains how to deploy a full 671B parameter large language model on-premises without parameter pruning or expert dropping, loading all weights at 8-bit precision. It covers a conservative memory estimation formula, GPU-only, CPU-only, and hybrid single-GPU-plus-RAM configurations, a cost comparison between 48GB and 80GB GPU servers, and a pre-launch checklist for capacity planning and inference optimization.

    1. Define What “Full” Means First

    Before discussing hardware, we need a shared definition. In this article, “full” means running inference on all 671 billion parameters at 8-bit precision, with no parameter pruning and no expert dropping. Any approach that compresses the parameter count or reduces the number of experts is out of scope.

    Three concepts are also easy to confuse:

    • Parameter count: 671 billion, written as 671B, refers to the scale of the model weights.
    • Precision: 8-bit, 4-bit, and so on, which determines how many bytes each parameter occupies.
    • VRAM and system memory: VRAM is attached to the GPU, while system memory is attached to the processor. Their capacity and bandwidth characteristics are completely different.

    2. Estimate Memory Usage with a Conservative Formula

    In engineering, a deliberately conservative formula is often used to quickly assess feasibility:

    1. M = (P × 4) / (32 / Q) × 1.2
    2. M: required memory capacity (GiB)
    3. P: parameter count (in units of 1B)
    4. Q: precision in bits
    5. 1.2: a rough overhead factor for model replicas, context cache, and runtime

    Plugging in P = 671:

    • At Q8, roughly 805 GiB.
    • At Q4, roughly 403 GiB.

    The value of this formula is to establish the upper bound before discussing optimizations. It assumes all weights permanently reside in a single type of storage, so the result is pessimistic. In real deployments, tiered placement can bring actual usage significantly below this figure, but capacity planning must start here to avoid discovering insufficient headroom after launch.

    3. GPU-Only: Multi-Node, Multi-GPU Is a Hard Requirement

    If you insist on keeping all weights in VRAM, the number of servers required can be estimated from per-GPU VRAM capacity:

    • 80GB-class GPUs: about 2 eight-GPU servers at 8-bit precision; about 1 six-GPU server at 4-bit precision.
    • 48GB-class GPUs: about 3 eight-GPU servers at 8-bit precision; about 2 eight-GPU servers plus 1 four-GPU server at 4-bit precision.
    • 24GB-class GPUs: about 5 eight-GPU servers at 8-bit precision; about 3 eight-GPU servers at 4-bit precision.

    The key point is that cross-node inference is not as simple as filling every slot with GPUs. Inter-node communication bandwidth becomes the main bottleneck. Tensor parallelism suits high-bandwidth interconnects within a single machine; across machines, pipeline parallelism is typically used instead, splitting different layers across nodes at the cost of lower utilization from pipeline bubbles. So the first principle of configuration selection is: solve parallelism within a single machine whenever possible, and do not span machines.

    4. CPU-Only: It Runs, but Do Not Expect Speed

    Without professional GPUs, a dual-socket server processor with 1TB of memory can still run the model: at 8-bit precision, at least one dual-socket high-end server processor platform with 1TB of memory is required; 4-bit precision is the same, with the memory capacity reduced accordingly.

    But its positioning must be clear: limited by memory bandwidth and parallel compute, a model of this scale has almost no compute headroom on processors. Output speed is measured in a few tokens per second, making it suitable for offline batch processing and algorithm validation, but not for online serving. Fine-tuning or training on processors is essentially not viable.

    5. Hybrid: One GPU Plus System Memory Is Currently the Best Value

    The hybrid approach comes from the sparse expert structure of this class of ultra-large models: each layer contains a large number of experts, but each token activates only a few of them. So the experts needed for the current response can be placed in VRAM, while the remaining experts stay in system memory and are swapped in and out on demand.

    1. [VRAM] hot experts + attention and prefix cache + activation buffers
    2. [System memory] remaining expert weights (sequential prefetch)
    3. [Processor] handles swap-in/swap-out scheduling and preprocessing

    Implementation: a dual-socket high-end server processor + 1TB of memory + one professional GPU. Its advantages are a low procurement threshold and no need for multi-node communication. The cost is latency jitter from initial loading and expert switching, which must be smoothed out through prefetching, caching pinned memory, and batching requests.

    6. The Dividing Line Between Cost and Training Needs

    From a procurement perspective, an 8-GPU 48GB-class professional GPU server costs roughly 300,000 to 400,000 RMB, with per-GPU compute close to that of a consumer flagship, clearly lower than an 8-GPU 80GB-class solution (in the millions). For inference only, this tier is the most cost-effective.

    But for full-pipeline pre-training, continuous iteration, and full-parameter tuning, large-scale clusters are constrained by communication bandwidth and still require high-end training GPUs with high-bandwidth interconnects. For fine-tuning: low-rank adaptation methods require VRAM close to inference; full-parameter fine-tuning requires 6 to 10 times the inference VRAM, so capacity planning must be scaled up accordingly.

    7. Pre-Launch Checklist

    1. Decide precision first, then capacity, and leave more than 20% headroom using the conservative formula.
    2. Prefer single-machine multi-GPU and avoid cross-node tensor parallelism.
    3. Context length directly increases cache usage; estimate by business peak, not average.
    4. Use continuous batching and paged cache to improve concurrent throughput.
    5. Put monitoring, alerting, and logging in front of the inference service, watching time-to-first-token and VRAM levels.
    6. If validating in the cloud, start with a container platform and on-demand instances for small-scale load testing before deciding whether to build your own.