Deploying a 671B LLM Locally: VRAM Requirements and Capacity Planning Guide

    This guide explains how to size hardware for running a full 671B-parameter model locally. It defines what "full-parameter" inference means versus quantized inference, gives a conservative formula for estimating weight and runtime capacity, and works through the resulting numbers for 8-bit (about 805 GiB) and 4-bit (about 403 GiB) precision. It then converts those totals into minimum GPU counts for 80 GiB, 48 GiB, and 24 GiB cards, maps them onto 8-GPU nodes, and explains why total VRAM alone does not determine performance — interconnect bandwidth, inter-node networking, and load balancing all matter. Additional sections cover host memory sizing (1.2–1.5x weight size), local storage (two to three copies of the weights), power and cooling, and the extra VRAM consumed by KV cache as context length and concurrency grow. A five-step evaluation workflow and a final configuration recommendation help readers move from a static capacity estimate to a deployment that is stable, fast enough, and maintainable.

    1. What “Full-Parameter Operation” Actually Means

    Before discussing local deployment of a 671B-class model, it is worth separating two ideas: running the complete parameter set, and running a quantized version.

    “Full-parameter” usually means performing inference with the complete 671 billion parameters, rather than a distilled variant, a smaller-parameter release, or a pruned model. Note that full-parameter does not mandate a specific precision. The same 671B model can be stored and computed at 8 bits, 4 bits, or even lower bit widths, but precision directly affects VRAM usage, inference speed, output quality, and deployment cost.

    If the goal is to run the complete 671B model at 8-bit precision, treat that as “8-bit quantized inference of the full model.” That is not the same thing as training or running inference with the original high-precision weights. This article focuses on inference, because training or full-parameter fine-tuning a 671B-class model locally requires far more resources than inference and is generally outside the feasible range of ordinary enterprise servers.

    2. Basic Formulas for VRAM and Memory Estimation

    For a model with P parameters and quantization bit width Q, a reasonably conservative estimate is:

    1. Base weight capacity ≈ P × 4 ÷ (32 ÷ Q)
    2. Actual deployment capacity ≈ Base weight capacity × 1.2

    Where:

    • P is the parameter count, in billions of parameters;
    • Q is the number of bits used per parameter, for example 8 or 4;
    • 4 is the conversion factor based on 32-bit floating-point parameters;
    • 1.2 reserves room for model replicas, runtime metadata, temporary buffers, and some context overhead.

    For a 671B model:

    1. 8-bit precision

    Base weight capacity is roughly:

    1. 671 × 4 ÷ (32 ÷ 8) = 671 GiB

    Adding about 20% runtime overhead:

    1. 671 × 1.2 ≈ 805.2 GiB

    So 8-bit inference should be planned around at least 805 GiB of available VRAM or memory. The word “available” matters: nominal hardware capacity is not all allocatable to the model. The operating system, drivers, runtime frameworks, and parallel communication all consume some of it, so leave a larger margin when purchasing.

    2. 4-bit precision

    Base weight capacity for 4-bit quantization is roughly:

    1. 671 × 4 ÷ (32 ÷ 4) = 335.5 GiB

    Adding runtime overhead:

    1. 335.5 × 1.2 ≈ 402.6 GiB

    So 4-bit inference needs about 403 GiB of available VRAM or memory. Compared with 8-bit, the capacity requirement is close to half, but model quality, long-context behavior, task-specific accuracy, and differences between quantization algorithms can all vary. Final results cannot be judged from capacity alone.

    3. Estimating GPU Count from Per-Card VRAM

    The calculations below consider capacity only; they do not guarantee that the resulting system will reach ideal throughput. Assuming 80 GiB, 48 GiB, and 24 GiB of VRAM per card available for model deployment:

    Quantization 80 GiB-class card 48 GiB-class card 24 GiB-class card
    8-bit, ~805 GiB at least 11 at least 17 at least 34
    4-bit, ~403 GiB at least 6 at least 9 at least 17

    These are pure-capacity figures rounded up. For example, 10 80 GiB cards give 800 GiB of theoretical total VRAM, still below the ~805.2 GiB estimate, so capacity is not safe. Real deployments must also account for VRAM fragmentation, communication buffers, and context caches, so a sounder plan usually adds one to several cards beyond the theoretical minimum.

    Using an 8-card server as the basic node, capacity planning looks like this:

    • 80 GiB-class cards: an 8-card node cannot hold the 8-bit model, so two 8-card nodes are typically required; the 4-bit model is basically feasible on one 8-card node by capacity, but framework overhead and context settings still need confirmation.
    • 48 GiB-class cards: the 8-bit model needs at least three 8-card nodes; the 4-bit model needs two 8-card nodes, or about 9 cards under a finer-grained deployment.
    • 24 GiB-class cards: the 8-bit model needs at least five 8-card nodes; the 4-bit model needs at least three 8-card nodes.

    These results only say whether the model fits, not whether it will run efficiently. In multi-node deployments, inter-node bandwidth and latency significantly affect generation speed.

    4. Why Total VRAM Is Not Enough

    A 671B-class model typically requires tensor parallelism, pipeline parallelism, or a hybrid approach across multiple cards. System performance then depends not only on total VRAM but also on the following.

    1. Inter-card interconnect bandwidth

    Generating each token requires exchanging intermediate results between devices. If inter-card communication relies on a lower-speed general-purpose bus, communication time can become the dominant bottleneck. Multi-card systems should favor hardware with high-speed interconnect and minimize cross-node communication.

    2. Inter-node network

    When a single node cannot hold the full model, deployment must span servers. Node-to-node bandwidth, latency, congestion control, and communication stability all affect inference throughput. For low-concurrency, short-output workloads the impact may be minor; for high-concurrency serving or long-context tasks it is continuously amplified.

    3. VRAM allocation and load balancing

    Computational cost is not identical across layers. If the model is partitioned poorly, some devices may stay at high load while others wait on communication. Test against the model structure, parallel strategy, and actual request distribution rather than simply adding up static capacity.

    5. CPU Memory, Storage, and System Configuration

    Even when the model ultimately runs on GPUs, host memory should not be overlooked. Model loading, weight conversion, shard reads, cache management, and failure recovery can all consume substantial CPU memory.

    Plan for at least the following.

    1. CPU memory

    The 8-bit weights are about 671 GiB and the 4-bit weights about 336 GiB. To avoid constant swapping during loading, host memory should not be sized to the weight capacity alone. Leave additional room for the operating system, runtime, file cache, and the conversion process.

    If weights must be converted in format, merged from shards, or checked for integrity at startup, configure host memory at 1.2 to 1.5 times the weight capacity, depending on the loading method and framework implementation.

    2. Local storage

    Model weight files are usually stored in shards, and actual usage also includes:

    • original weight files;
    • quantized weight files;
    • temporary conversion files;
    • checksum and configuration files;
    • rollback copies of multiple versions.

    So do not buy disks sized for a single copy of the model. Reserve at least two to three times the weight capacity, and prefer high-throughput, low-latency local solid-state storage to avoid slow model startup and scaling.

    3. Power and cooling

    Multi-card servers draw considerable power under sustained inference, and long-term operation is affected by power redundancy, data-center cooling, airflow design, and ambient temperature. When purchasing, check the system’s rated and peak power, rack power capacity, and cooling limits — not just the number of GPUs.

    6. Context Length Increases VRAM Requirements Further

    The 805.2 GiB and 402.6 GiB figures above are mainly weights plus a rough runtime margin, not the final requirement for every scenario.

    Inference also produces a KV cache that stores already-processed context. The longer the context and the more concurrent requests, the larger the KV cache footprint. In long-document Q&A, code analysis, multi-turn dialogue, and batch inference, the KV cache can become a significant additional consumer of VRAM.

    So a real deployment should define:

    • maximum input length;
    • maximum output length;
    • number of concurrent requests served;
    • whether long context is allowed per request;
    • whether continuous batching is enabled;
    • whether the cache is quantized or tiered across storage.

    For single-user, short-context, low-concurrency testing, the theoretical capacity is a reasonable starting point. For stable multi-user service, add more VRAM headroom and determine the concurrency ceiling through load testing.

    A more reliable implementation path has five steps.

    Step 1: Determine the model form. Decide between 8-bit and 4-bit quantization, and confirm weight file size, quantization method, and target context length.

    Step 2: Calculate static capacity. Estimate weight capacity from parameter count and precision, then reserve extra space for runtime, communication, and KV cache.

    Step 3: Design the parallel strategy. Based on per-card VRAM, cards per machine, and node networking, choose single-node multi-card, cross-node parallel, or hybrid parallel.

    Step 4: Run a small-scale validation. Start with a small batch and short context to confirm the model loads correctly, then increase context length and concurrency gradually.

    Step 5: Run stability load tests. Focus on peak VRAM, token generation speed, time to first token, inter-node communication usage, request failure rate, and VRAM fragmentation after extended operation.

    8. Conclusion: Choosing a Configuration

    If the goal is strictly 8-bit inference of the full 671B model, capacity requires about 805 GiB of VRAM. For 80 GiB, 48 GiB, and 24 GiB cards, the theoretical minimums are about 11, 17, and 34 cards, but engineering deployments normally add redundancy, so initial planning is better framed as two, three, and five 8-card nodes respectively.

    With 4-bit quantization accepted, capacity drops to about 403 GiB, with theoretical minimums of about 6, 9, and 17 cards. For 80 GiB-class cards, one 8-card node may satisfy basic inference by capacity; for 48 GiB and 24 GiB cards, two or three 8-card nodes are typically required.

    The final configuration cannot be decided by parameter count alone. Precision, context, concurrency, model parallel strategy, inter-card interconnect, node network, CPU memory, storage, and cooling must all be considered. The most conservative approach is to estimate with the capacity formula, reserve an additional 20% to 30% for communication, caching, and business peaks, and validate performance with real load tests. A 671B-class local deployment is only truly complete when it satisfies all four conditions: it fits, it runs stably, the speed is acceptable, and it is maintainable long term.