Trillion-Parameter MoE Local Deployment: VRAM, Quantization, and Cost Estimation

    This article explains how to estimate VRAM and cost requirements for deploying trillion-parameter MoE models locally. Using a 2.8-trillion-parameter MoE example, it clarifies why expert activation rate does not reduce weight memory requirements, calculates the approximate size of 4-bit weights with scaling factors, discusses KV cache and runtime overhead, and evaluates whether an 8-GPU 640GB node can support a 670B-class model. It also covers interconnect constraints, a minimum cost formula, GPU-count estimation, and factors to consider when choosing between on-premises infrastructure and cloud deployment.

    Introduction: Estimate VRAM Before Discussing Compute

    When a model crosses into the trillion-parameter range, the first local-deployment question is often not whether compute is sufficient, but whether the model fits in memory.

    For local deployment of trillion-parameter MoE models, common questions include:

    • How much VRAM is required?
    • How large are the weights after 4-bit quantization?
    • Is an 8-GPU, 640GB configuration enough?

    These questions directly affect hardware procurement, cluster design, and budgeting.

    It should be noted that the VRAM, GPU-count, bandwidth, and cost judgments in this article are engineering estimates based on publicly available architectural information, not official benchmark measurements. After official weights are released, real benchmarking will still be needed to verify throughput, latency, peak VRAM usage, and stability.

    1. Where Is the VRAM Threshold for Trillion-Parameter MoE?

    Take a MoE architecture with about 2.8 trillion total parameters as an example: 896 experts, with only 16 activated per token, giving an expert activation rate of about 1.79%.

    A key point that is often misunderstood is that expert activation rate does not equal parameter activation rate, and it certainly does not equal the VRAM usage ratio.

    Expert activation mainly affects compute consumption. For each token, only a subset of expert weights participates in the forward pass, so the floating-point operations per token are much lower than for a dense model of the same size.

    However, VRAM usage must be calculated from total parameters. During inference, the system cannot know which experts the next token will route to, so all expert weights must be preloaded into VRAM or a memory pool. At runtime, activations are moved to the devices hosting the selected experts based on routing results.

    Therefore, MoE saves compute through sparse activation, but it does not save weight storage. When evaluating local deployment, the product of total parameters and bytes per parameter should be treated as the VRAM floor for weights. This floor does not include activations, KV cache, framework overhead, or communication buffers.

    2. How Large Is the Model After 4-Bit Quantization?

    Mainstream deployment approaches typically use quantization-aware training so that the model can adapt to lower-bit weights during later training stages. A typical configuration uses 4-bit weights with 8-bit activations.

    The theoretical lower bound of raw 4-bit weights can be estimated as:

    2.8 trillion parameters × 4 bit ÷ 8 ≈ 1400 GB

    However, 4-bit quantization is usually not pure 4-bit storage. To maintain accuracy, every 32 4-bit elements often have a shared scaling factor, usually counted as 8 bits. With this overhead, the average size per weight element becomes about 4.25 bits.

    The weight VRAM floor can be estimated as:

    2.8 trillion × 4.25 bit ÷ 8 ≈ 1487.5 GB

    In other words, the theoretical lower bound for weights alone approaches 1.5 TB.

    This does not include several parts that must be considered in real deployment:

    • Tensors not included in 4-bit quantization, such as some normalization layers, embedding layers, or special structures;
    • Framework metadata, tensor alignment padding, and memory-pool management overhead;
    • Runtime working memory, including activation buffers, communication buffers, and temporary tensors;
    • KV cache, which grows linearly with context length and concurrency;
    • Additional buffers caused by multi-GPU communication and expert routing.

    KV cache can be estimated with a simplified formula:

    KV cache ≈ layers × KV heads × head dimension × context length × concurrency × 2 × bytes per element

    The factor of 2 accounts for storing both Key and Value tensors. With FP16, each element is about 2 bytes; with FP8, each element is about 1 byte. In long-context, high-concurrency scenarios, KV cache may exceed the size of the weights themselves.

    For engineering planning, it is usually necessary to reserve an additional 30% to 50%, or more, on top of the theoretical weight VRAM floor.

    3. Comparing with a 670B Open-Source Model: Is 8 GPUs with 640GB Enough?

    As a reference point, consider an open-source sparse MoE model with about 670B parameters, including an approximately 14B multi-token prediction head.

    Model scale Precision or quantization scheme Weight VRAM estimate Activation and total deployment VRAM estimate Applicable scenario and limitations
    About 670B FP8 About 670GB to 700GB Activations and KV cache counted separately Suitable for scenarios with a larger VRAM pool that require relatively high inference efficiency
    About 670B 4-bit About 335GB to 356GB Activations about 30GB to 40GB; total deployment VRAM about 370GB to 400GB Can fit into an 8-GPU, 80GB-per-GPU, 640GB node only under specific conditions: low concurrency, short context, and no framework redundancy

    For the roughly 670B model, the 4-bit approach can fit into a node with eight 80GB accelerators and 640GB total VRAM under specific low-concurrency, short-context, no-framework-redundancy conditions.

    However, production deployment cannot rely only on this theoretical value. It must also reserve space for KV cache, runtime working memory, communication buffers, and framework redundancy.

    If this case is scaled to a 2.8-trillion-parameter model, total parameters are about 4.2 times larger, so the weight VRAM floor is typically also on the order of several times, roughly around 4x.

    This means the deployment floor for a 2.8-trillion-parameter MoE is significantly higher than that of a 670B-class model. An 8-GPU, 80GB-per-GPU node alone is usually insufficient. Full deployment requires not only a larger VRAM pool, but also high-speed interconnect domains, multi-node communication capabilities, and a more mature distributed inference framework.

    4. Why High-Speed Interconnect Is a Hard Constraint

    Besides total VRAM, communication is a second constraint that is easy to overlook.

    Large-scale MoE inference is highly sensitive to all-to-all communication bandwidth. When 896 experts are distributed across dozens of accelerators, each token must have its activations moved to the GPU hosting the selected expert for computation and then moved back to continue subsequent computation after routing.

    This happens repeatedly for every token at every layer.

    If experts are distributed across GPUs and inter-GPU traffic uses ordinary data-center networking, communication latency can directly erode compute throughput. Accelerators may spend most of their time waiting for data, preventing throughput from increasing.

    Therefore, this type of model usually requires a supernode composed of tens of accelerators, such as a high-speed interconnect domain of 32 GPUs, 64 GPUs, or more.

    Through private inter-GPU interconnect buses or high-bandwidth, low-latency networks, expert routing and activation movement should be kept within the same high-speed domain as much as possible to reduce cross-domain communication.

    A simple rule is: when experts span nodes and the all-to-all communication ratio is high, prioritize a high-speed interconnect domain rather than simply adding more GPUs.

    VRAM determines whether a model can run, while interconnect bandwidth determines how fast it runs. The latter often becomes the larger long-term cost.

    5. Minimum Cost Estimation: Formulas and GPU Count

    For local deployment of very large MoE models, a minimum cost estimate can be expressed as:

    Total deployment VRAM ≈ weight VRAM + activation VRAM + KV cache + framework working memory

    Required GPU count ≈ ceil(total deployment VRAM ÷ usable VRAM per GPU)

    Usable VRAM per GPU is not simply the nominal VRAM multiplied by the number of GPUs. It must account for the operating system, inference framework, communication buffers, expert-routing buffers, and fault-tolerance redundancy. In engineering practice, usable VRAM per GPU is usually discounted.

    For a 2.8-trillion-parameter model, the 4-bit weight VRAM floor is about 1487.5 GB. If about 35% overhead is reserved, total deployment VRAM reaches about 2000 GB.

    Assuming usable VRAM per GPU is estimated at 70 GB, the required GPU count is about:

    2000GB ÷ 70GB ≈ 28.6 GPUs, rounded up to about 29 GPUs

    If the context is longer, concurrency is higher, or framework overhead is larger, the GPU count will rise further.

    Conversely, if weights can be compressed further or the model architecture has special optimizations, the GPU count may decrease, but this still requires benchmark verification.

    Also, more GPUs are not always better. The interconnect domain limits the number of GPUs that can scale effectively. If newly added GPUs cannot join the same high-speed interconnect domain, all-to-all communication may become a bottleneck, and adding GPUs may not improve throughput.

    The cost of locally deploying a very large MoE model is mainly composed of four parts:

    1. Accelerators and complete servers: The VRAM floor determines the minimum number of GPUs needed and is the most rigid expense;
    2. High-speed interconnect and networking: Internal interconnect and cross-node low-latency networking required to support all-to-all communication;
    3. Power and cooling: Long-term operation of dozens of high-power accelerators creates ongoing electricity and cooling costs;
    4. Engineering and operations: Distributed inference framework tuning, routing balance, KV cache management, and fault recovery all require engineering effort.

    6. Self-Building vs. Cloud: Five Comparison Dimensions

    If data must remain fully within a controlled environment and the workload is stable over the long term, a self-built high-speed interconnect cluster offers more control.

    However, if demand is still being validated, or the business has clear peaks and valleys, cloud elasticity may be more suitable.

    The comparison can be made across five dimensions:

    • Initial investment: Self-building requires upfront procurement of accelerators, network equipment, and data-center resources; cloud use is on-demand and requires lower upfront investment.
    • Utilization: Long-term high-load workloads are better suited to self-built infrastructure; short-term or fluctuating workloads are more suitable for the cloud.
    • Scaling elasticity: The cloud makes it easier to scale temporarily; self-built scaling requires procurement, delivery, and network integration cycles.
    • Operations staffing: Self-built deployments require a dedicated team to maintain distributed inference, networking, and fault recovery; the cloud can reduce operational pressure through managed services.
    • Data compliance: If data cannot leave a controlled environment, self-building is safer; if data can be moved to the cloud, general cloud capabilities such as GPU instances, container platforms, object storage, and monitoring/alerting can be used.

    Common mistakes mainly include:

    • Looking only at expert activation rate and assuming that only a small portion of VRAM is needed;
    • Ignoring KV cache, especially in long-context and high-concurrency scenarios;
    • Counting only weights while ignoring activations, framework overhead, and communication buffers;
    • Treating the theoretical 4-bit value as the actual peak and underestimating real VRAM requirements;
    • Adding GPUs without evaluating whether the high-speed interconnect domain is sufficient.

    In summary, local deployment of a trillion-parameter MoE model is ultimately a combined problem of “VRAM floor × interconnect bandwidth × long-term operating cost.”

    Clarifying these three cost items first, and then deciding whether to self-build or use cloud elasticity, helps avoid the common mistake of buying GPUs but finding that the model still cannot run efficiently.