Hardware Requirements for Running a Full 671B MoE Model Locally

    This article explains what a “full” 671B sparse MoE deployment actually means, how to estimate VRAM and system memory requirements, and how GPU, CPU, hybrid MoE, and cloud options compare. It covers Q8 and Q4 resource sizing, GPU server-count estimates by VRAM capacity, CPU inference limits, fine-tuning overhead, a low-cost MoE hybrid inference route, and practical selection advice for different deployment goals.

    1. What Does “Full” Actually Mean?

    Before discussing hardware configurations, we need to align on one concept: running a model “full” usually means loading a complete sparse Mixture-of-Experts (MoE) model with 671 billion total parameters at 8-bit (Q8) precision, rather than running a lower-bit compressed version. The parameter count determines the absolute size of the model weights, and the precision bit width determines how many bytes each parameter occupies. Together, they define the minimum hardware threshold.

    The special characteristic of the MoE architecture is that although the total parameter count is very large, only a small subset of expert networks is activated during the forward computation for each token. This point becomes critical later when discussing low-cost inference routes.

    2. General Estimation Method for VRAM and System Memory

    There is a widely used conservative estimation formula in the industry:

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

    Where:

    • M is the required memory/VRAM in GiB;
    • P is the model parameter count in units of 1B, here taken as 671;
    • Q is the precision bit width (8 for Q8, 4 for Q4);
    • The coefficient 1.2 covers extra overhead such as model replicas, KV cache, and context buffers.

    The result can be calculated directly with this pseudocode:

    1. P = 671 # Parameter count: 671B
    2. for Q in [8, 4]:
    3. M = (P * 4) / (32 / Q) * 1.2
    4. print(f"Resources required at Q{Q} precision: about {M:.1f} GiB")

    The calculated results are:

    • Q8 (8-bit) precision: about 805 GiB;
    • Q4 (4-bit) precision: about 403 GiB.

    This number is the basis for all subsequent hardware selection discussions. It is worth noting that 805 GiB already exceeds the memory capacity of most common single servers and far exceeds the VRAM limit of a single GPU or even a single server. Ordinary dual-socket servers often need 1–2 TB of RAM just to cover it, so multi-GPU, multi-node, or hybrid approaches are naturally required.

    3. GPU Inference Route: Estimating Server Count by VRAM Capacity

    The core constraint of the GPU route is “total VRAM ≥ model requirement + redundancy.” A rough estimate can be made across three tiers: data-center GPUs with large VRAM (80GB class), professional inference cards (48GB class), and consumer flagship cards (24GB class):

    Precision and redundancy 80GB per GPU 48GB per GPU 24GB per GPU
    Q8 (with redundancy) 2 × 8-GPU servers 3 × 8-GPU servers 5 × 8-GPU servers
    Q8 (without redundancy) 1 × 8-GPU + 1 × 4-GPU 2 × 8-GPU + 1 × 4-GPU 4 × 8-GPU + 1 × 4-GPU
    Q4 1 × 6-GPU 1 × 8-GPU + 1 × 2-GPU 3 × 8-GPU

    Several key conclusions:

    1. Large-VRAM cards do not necessarily have the highest cost per unit of VRAM. The per-card compute of 48GB-class professional inference cards is often comparable to consumer flagship cards, while the full-machine price is far lower than a multi-node cluster built from 80GB-class data-center cards. If the goal is pure inference and not extreme throughput, an 8-GPU server built with 48GB cards is often the most balanced choice in terms of cost performance.
    2. Communication bandwidth determines the ceiling. If the goal is not only inference but also large-scale parallel computing tasks such as pretraining and iterative tuning, inter-GPU interconnect bandwidth will become the bottleneck. Consumer-grade cards and ordinary PCIe professional cards lack high-bandwidth inter-GPU interconnect capabilities, and multi-node scaling efficiency will drop significantly. In this case, it is necessary to return to data-center GPU platforms with high-bandwidth interconnect.
    3. Price magnitude reference: an 8-GPU server with 48GB cards is typically in the range of several hundred thousand RMB, while multi-node solutions with 80GB data-center cards generally exceed one million RMB. The budget difference is very large.

    4. CPU Inference Route: Lower Barrier, Very Limited Experience

    The requirement for a pure CPU route is a dual-socket server-grade CPU platform with current-generation server processors, paired with more than 1 TB of memory. A single machine can hold the main body of the Q8 weights.

    However, two hard limitations must be clearly understood:

    • Memory bandwidth bottleneck. Large-model inference is a typical memory-access-intensive task. Each generated token requires moving all activated weights from memory once. CPU memory bandwidth is more than an order of magnitude lower than GPU VRAM bandwidth, resulting in extremely slow generation speed and leaving little redundant compute headroom.
    • Training is completely impractical. If you expect to use a CPU platform for fine-tuning or even training, the combined limits of compute and bandwidth make it basically impractical.

    Therefore, the pure CPU machine route is only suitable for offline batch-processing scenarios that are completely insensitive to response speed.

    5. VRAM Amplification for Fine-Tuning Requirements

    If the requirement expands from “inference” to “specialized training,” resource estimates need to be reconsidered:

    • Parameter-efficient fine-tuning such as LoRA: there are very few additional trainable parameters, and VRAM requirements are basically on the same order as inference. This is the most economical fine-tuning path.
    • Full-parameter fine-tuning: weights, gradients, and first-order/second-order optimizer states must be stored simultaneously, and VRAM requirements usually reach 6–10 times those of inference. Based on this estimate, Q8 full-parameter fine-tuning would require multiple TB of VRAM and can only be achieved through ultra-large-scale multi-node clusters.

    Therefore, for most local deployment users, the pragmatic choice is: use the standard route for inference, and use LoRA-style methods for fine-tuning to control resource scale.

    6. MoE Hybrid Inference: A Breakthrough for Low-Cost Routes

    By leveraging the MoE characteristic that “only a small number of experts are activated per token,” a hybrid scheduling approach can be used: load the experts urgently needed for current computation into GPU VRAM, while keeping the remaining massive expert weights in system memory and swapping them in on demand. This greatly reduces VRAM usage, and inference can be completed with “one professional GPU + large-capacity system memory + a relatively strong multi-core CPU.”

    A typical configuration for this route is: dual-socket current-generation server-grade CPU + 1 TB memory + one large-VRAM professional card. Compared with multi-node GPU clusters that often cost millions of RMB, the cost can drop by an order of magnitude. This is very suitable for scenarios that only require inference deployment and do not involve fine-tuning. The tradeoff is that expert swapping in and out introduces some latency fluctuation, and the inference framework needs targeted optimization for MoE scheduling.

    7. Cloud Alternatives and Selection Advice

    If the one-time investment and operations cost of building your own infrastructure are unacceptable, you can also consider using cloud GPU compute. Mainstream cloud platforms offer GPU cloud hosts, container compute services, and model serving platforms, usually with pay-as-you-go billing and elastic scaling. You can first validate inference performance with a small-scale cluster, and then decide whether to rent long-term or purchase equipment. Combined with cloud object storage for weight files, monitoring and alerting, and logging services, deployment and operations workload can be minimized.

    Selection decision advice:

    • Inference only and limited budget: prioritize evaluating the MoE hybrid inference route; a single machine with one GPU and large memory is enough to start;
    • High-throughput production-grade inference: an 8-GPU single server with 48GB-class inference cards is the cost-performance sweet spot;
    • Training or large-scale iteration requirements: data-center-grade GPUs and high-bandwidth interconnect are mandatory, and a million-RMB-level investment must be accepted;
    • Fully offline and speed-insensitive: a CPU + large-memory single machine can serve as a fallback option.

    In one sentence: deploying a full 671B model is essentially about finding a balance among VRAM, memory, bandwidth, and cost under the hard constraint of “total resources ≥ 805 GiB (Q8).” First clarify your precision requirements and whether fine-tuning is involved, then choose the route accordingly so that the budget is spent where it matters most.