Local Deployment of Trillion-Parameter MoE Models: Memory, All-to-All Communication, and Cost Estimates

    This guide helps engineers and technical leads estimate what it takes to deploy a 2.8-trillion-parameter MoE model locally. It explains why total parameters set the memory floor, how 4-bit and MXFP4 quantization change weight size, when a supernode matters for All-to-All communication, what hardware cost includes, and which factors to check before considering a cloud option.

    This article is for engineers and technical leads evaluating local deployment of trillion-parameter MoE models. “2.8 trillion” refers to total parameters, and all memory, communication, and cost estimates use that figure. Unless noted otherwise, GB uses decimal units (1 GB = 10^9 bytes). Memory figures cover model weights only. They exclude the KV cache, runtime workspace, and routing metadata.

    Do Total Parameters Set the Memory Floor and Active Parameters Set the Compute Cost?

    Many people assume that sparse activation reduces memory in proportion to the active parameters. This is the most common misconception. Consider a model with 2.8 trillion total parameters, 896 experts, and 16 experts activated per token. The activation ratio is about 1.79% (16 ÷ 896). This ratio affects only how many parameters take part in computation for each token, which determines the compute cost. Memory, however, must hold the weights of all experts, because the router may select any group of experts during inference.

    This conclusion has boundary conditions. In expert parallelism, the 896 experts are split across multiple cards, and each card stores only some of them. Per-card memory is therefore lower than the full weight size. The total memory across the cluster must still be at least the full expert weights, plus replicas, KV cache, and workspace.

    Parameter offloading moves part of the weights to CPU memory and transfers them to GPUs on demand, which lowers GPU memory use. However, the transfer bandwidth is far lower than GPU memory bandwidth, so latency rises noticeably. Offloading is therefore unsuitable for online services that are sensitive to time to first token. Running multiple replicas to increase throughput multiplies the total memory requirement.

    How Much Memory Do Weights Need After 4-bit Quantization?

    Industry practice often compresses weights with microscaling floating-point formats. Take MXFP4 as an example. Each weight element uses 4 bits. Under the OCP MX specification, every 32 elements share one 8-bit scale factor. The average storage per weight is therefore 4 + 8 ÷ 32 = 4.25 bits.

    The theoretical floor for pure 4-bit weights is 2.8T × 4 bits ÷ 8 = 1400 GB. With scale factors included, the figure is 2.8T × 4.25 bits ÷ 8 ≈ 1487.5 GB.

    Both numbers cover only the weights. A real deployment also includes the following overhead:

    • Tensors that are not quantized to 4 bits, such as layers kept at higher precision;
    • Routing metadata and indexes;
    • Memory alignment and fragmentation;
    • Runtime workspace;
    • KV cache, which grows with context length and concurrency.

    With this overhead, total memory needs will be well above 1487.5 GB. The exact figure must be measured with the target inference framework and the actual context length.

    The benefit of MXFP4 also depends on hardware and kernel support. Some newer accelerators natively support MX formats for computation. Without that support, the inference framework must dequantize weights to FP8 or BF16 before computing. This changes both the memory footprint and the throughput conclusions. Evaluators should confirm the actual compute path on the target platform.

    Weight Memory and Card Count by Format

    The table below uses 80 GB accelerator cards as the unit and counts only weights. The “minimum card count” is the theoretical lower bound without KV cache or workspace. Actual deployments need more cards.

    Model and format Weight memory (approx.) Minimum 80 GB cards (weights only) Notes
    671B, FP8 (including about 14B multi-token prediction parameters) 685 GB 9 Figure from the source; excludes activation space
    671B, AWQ 4-bit About 335 GB of weights, plus about 37 GB of activation space 5 (weights plus activations about 400 GB) Eight 80 GB cards (640 GB) can hold it
    2.8T, FP8 2800 GB 35 Assumes 1 byte per parameter
    2.8T, 4-bit theoretical floor 1400 GB 18 Excludes all overhead
    2.8T, MXFP4 1487.5 GB 19 Excludes KV cache, workspace, and routing metadata

    As the table shows, even with 4-bit quantization, the weights of a 2.8T model need about 19 cards with 80 GB each. A single 8-card server cannot hold the weights of this model. However, the card count does not directly point to 64 cards.

    Is a 64-Card Cluster Required?

    64 cards are not a general requirement. In terms of memory, a 2.8T model at 4-bit needs about 19 to 20 cards with 80 GB each. With some headroom, most deployments need only a few dozen cards to cover the weights and a basic KV cache. The figure of 64 comes mainly from the design of the communication domain. Experts must be distributed within an interconnect domain that is large enough and has sufficient bandwidth, so All-to-All traffic does not cross low-speed links.

    Whether a supernode is needed should therefore depend on the following conditions, not on card count:

    • Whether a single interconnect domain covers the full expert-parallel group;
    • Whether the measured All-to-All bandwidth and latency within the domain meet the target latency;
    • Whether the topology is uniform, and whether there are bottlenecks across switches or racks;
    • How large the failure domain is, and whether a single card or switch failure affects the whole domain;
    • Whether the inference framework supports MoE communication kernels for the interconnect in use.

    Why All-to-All Communication Becomes a Bottleneck

    In distributed MoE inference, the gating network first selects 16 experts for each token. The token’s activations are sent through All-to-All communication to the cards that host those experts. After the computation finishes, a second All-to-All sends the results back. Both transfers carry the same amount of data. The communication volume per layer and per token can therefore be estimated roughly as:

    hidden dimension × bytes per element × number of activated experts × 2

    With 16 activated experts, each token is sent to up to 16 different locations. If the interconnect bandwidth is insufficient, data transfer takes longer than computation, and the accelerators sit idle. This is why a cluster with ample compute can still deliver low throughput.

    The formula above is an idealized estimate. In practice, experts on the same card can be deduplicated. Stacking multiple layers amplifies the traffic. Load imbalance can also make a few cards into hotspots.

    Checks Before and After Deployment

    Use the following checklist before and after deployment:

    1. Measure the actual All-to-All bandwidth with a bandwidth test tool and compare it with the rated value;
    2. Count how often each expert is selected, and check for load imbalance;
    3. Increase the batch size step by step, and observe how throughput and latency change;
    4. Check the topology mapping, and confirm that expert-parallel groups do not cross low-speed links;
    5. Monitor network congestion indicators, such as packet loss and retransmission counts.

    How to Estimate Hardware Cost

    Hardware cost has several components. Counting only GPU purchases seriously underestimates the total. A complete on-premises cluster typically includes accelerator cards, servers and CPUs, large-capacity memory, high-speed storage, network switching equipment, data center power and cooling, operations staff, spare parts, and depreciation.

    A rough estimate can start with the hardware: the number of cards multiplied by the unit price, plus the cost of servers and network equipment. Other items should be added based on the actual data center conditions. Prices vary considerably with procurement channel, region, and timing, so rough estimates have limited reliability. Supplier quotes are a better basis. This article does not use the range of several million to over ten million yuan, because its basis is not stated.

    What to Evaluate in a Cloud Option

    Some cloud providers offer large-scale compute clusters with high-speed interconnects. These options can reduce upfront hardware purchases and cluster