Local Deployment of a 2.8T-Parameter MoE Model: GPU Memory and Cost Planning
This article explains how to plan GPU memory and cost for local deployment of a 2.8-trillion-parameter MoE model with 896 experts and 16 activated experts per token. It separates weight capacity from activation-driven compute, estimates a 4-bit weight lower bound of about 1.49 TB, enumerates system memory overheads, GPU count ranges, cost formulas, and deployment optimizations. Readers can use the capacity model and cost framework to evaluate on-premises versus cloud options.
Local Deployment of a 2.8T-Parameter MoE Model: GPU Memory and Cost Planning
The core question for local deployment of a 2.8-trillion-parameter MoE large model is not whether the model files can be downloaded. It is whether weights, activations, caches, and communication buffers can be reliably hosted by the available hardware. In particular, when the model uses 896 experts and activates only 16 experts per token, many people assume that GPU memory can be reduced proportionally based on the activation ratio. That is not the case. MoE weight memory is generally planned according to total parameters. The activation ratio mainly affects compute consumption, routing communication, and batching efficiency; it does not remove all expert weights from GPU memory.
The following sections cover the GPU memory lower bound, system memory composition, hardware scale, cost formulas, and optimization strategies.
1. Clarify First: Expert Activation Ratio Is Not Parameter Activation Ratio
This class of model has about 2.8 trillion total parameters and uses a MoE architecture with 896 experts. Each token routes to 16 experts, giving an expert activation ratio of about 16/896 ≈ 1.79%. This number is often misread as meaning that only 1.79% of GPU memory is needed. In reality:
- All expert weights must remain resident and stored. During inference, routing dynamically selects 16 experts, but the selected experts are not fixed. Therefore, the weights of all 896 experts must be quickly accessible. GPU memory or high-speed storage must hold all experts; otherwise, routing changes will cause severe swap-in and swap-out.
- Backbone parameters participate for every token. This type of architecture usually includes components such as incremental Delta attention, attention residual connections, and gated latent attention. These shared parameters are not sparsely activated according to the expert ratio.
- The expert activation ratio only affects compute and communication. Activating 16 experts per token means that compute volume, All-to-All communication volume, and routing load-balancing pressure are related to the number of activated experts. However, weight capacity is still determined by total parameters and the quantization format.
Therefore, the first principle of deployment capacity planning is: MoE weight GPU memory is sized by total parameters, compute and bandwidth are sized by the activated path, KV cache is sized by context and concurrency, and communication buffers are sized by expert parallelism.
2. Weight Lower Bound After 4-Bit Quantization: About 1.49 TB Is Only the Starting Point
Assume this class of model introduces quantization-aware training during supervised fine-tuning, uses a 4-bit microscaling floating-point format for weights, and uses an 8-bit microscaling floating-point format for activations. First, consider the raw data lower bound:
2.8 trillion parameters × 4 bit ÷ 8 ÷ 10^9= 2.8e12 × 4 ÷ 8 ÷ 1e9= 1400 GB
That is, the theoretical lower bound for pure 4-bit weights is about 1400 GB. However, the microscaling format does not mean every element is exactly 4 bits. If every 32 4-bit elements carry one 8-bit scale, the average storage per weight element is:
4 bit + 8 bit / 32 = 4.25 bit
Based on this:
2.8e12 × 4.25 ÷ 8 ÷ 1e9≈ 1487.5 GB
So the weight elements plus scales are about 1487.5 GB. This number still excludes non-4-bit tensors, metadata, tensor alignment, runtime workspace, communication buffers, and KV cache. In engineering practice, 1487.5 GB cannot be treated as the final GPU memory requirement. It is only the “weight lower bound.”
A pseudocode estimate can be written as:
def weight_gb(total_params, bits_per_elem):return total_params * bits_per_elem / 8 / 1e9print(weight_gb(2.8e12, 4.0)) # about 1400 GBprint(weight_gb(2.8e12, 4.25)) # about 1487.5 GB
3. System GPU Memory Is More Than Weights: At Least Six Types of Overhead
For actual deployment, GPU memory requirements should be split into the following parts:
Total GPU memory requirement =all expert weights+ non-quantized tensors+ activation workspace+ KV cache+ expert-parallel communication buffers+ framework runtime and memory fragmentation
- All expert weights: on the order of about 1.49 TB, the largest component.
- Non-quantized tensors: embedding layers, normalization, routing gates, and some attention components may not all be 4-bit and require separate reservation.
- Activation workspace: batching, long sequences, and routing dispatch generate temporary activations. The activation ratio affects this part and compute, but it does not replace expert weights.
- KV cache: long context and high concurrency significantly amplify this part. A simplified formula can be used:
Here, 2 represents the K and V copies. When sequence length increases from 4K to 32K, KV cache may grow nearly linearly.KV bytes ≈ 2 × layers × KV heads × head dimension × sequence length × batch size × bytes per element
- Communication buffers: MoE expert parallelism requires All-to-All routing. Cross-GPU and cross-node communication requires buffers and temporary collective-communication space.
- Runtime and fragmentation: memory allocators, graph capture, alignment, and fragmentation introduce additional headroom. In engineering practice, 20% to 50% headroom is usually needed, and the requirement is higher for long context and high concurrency.
4. How Many GPUs Are Needed: Calculate Weights First, Then System Headroom
Using 80GB-class data center GPUs, the theoretical GPU count for hosting only 1487.5 GB of weights is:
1487.5 ÷ 80 ≈ 18.6
That means at least 19 80GB GPUs are needed to “just” fit the weights, before accounting for activations, KV cache, communication buffers, and fragmentation. Practical planning usually requires more than 20 GPUs. Considering multi-node interconnect, fault tolerance, long context, and concurrency, 24 to 32 GPUs or more are often needed. Capacity increases further with higher precision, longer context, or larger batches.
For comparison, a 671B-class MoE model in FP8 format has about 685 GB of main parameters plus additional prediction parameters. With 4-bit weight quantization, it has about 335 GB of weights plus 37 GB of activations, totaling about 400 GB, and can run on 8 80GB-class GPUs with 640 GB total GPU memory. This comparison shows that a 671B-class model can be planned around a single 8-GPU 80GB node, while the weight lower bound of a 2.8T-class MoE is already close to 1.5 TB, inevitably requiring multi-node high-speed interconnect.
5. What Will It Cost: Use Formulas, Not Guesswork
Local deployment costs can be divided into capital expenditure and operating expenditure. A general estimation formula is:
N_gpu = ceil(system GPU memory requirement ÷ usable memory per GPU)Procurement TCO ≈ N_gpu × cost per GPU+ servers, motherboards, and power supplies+ high-speed network and switches+ storage and backup+ power × PUE × electricity price × operating hours+ operations staffing and spare parts
For cloud rental, the estimate is closer to:
Rental cost ≈ N_gpu × hourly price per GPU × operating hours+ network and storage fees+ operations and scheduling costs
Because prices vary widely by region, rental term, and interconnect configuration, a fixed number cannot be given. A more reasonable approach is to first determine the system GPU memory requirement, then apply local GPU purchase prices or rental unit prices. For a 2.8-trillion-parameter MoE model, the main cost is usually not ordinary storage. It is GPU memory capacity, high-speed inter-GPU and inter-node interconnect, power and cooling, and KV cache headroom reserved for long context.
When organizing cloud deployment, general-purpose container platforms, object storage, and monitoring and alerting capabilities can support scheduling, artifact storage, and runtime observability. However, it should be clear that these general capabilities do not change the core cost structure of GPU memory and interconnect. Capacity planning should still return to weights, KV cache, and communication buffers.
6. Deployment Optimization: Spend GPU Memory Where It Matters
- Prioritize expert parallelism: partition along the expert dimension across multiple GPUs and nodes, with load-balanced routing to avoid hot experts slowing down the whole system.
- Combine tensor parallelism and pipeline parallelism: split attention and expert computation within a layer, and control communication domains across nodes.
- Use quantization-aware training and mixed precision: 4-bit microscaling for weights, 8-bit microscaling for activations, and higher precision for non-sensitive tensors.
- Manage KV cache: paged management, prefix caching, on-demand quantization, and concurrency limiting are especially critical for long-context scenarios.
- Leave capacity headroom: do not purchase based on the theoretical lower bound. Reserve headroom for runtime, fragmentation, and failover.
- Monitor routing and memory fragmentation: continuously observe expert hit rates, communication waits, KV growth, and GPU memory allocation failures.
Conclusion
The local deployment barrier for a 2.8-trillion-parameter MoE model first appears in the 4-bit weight lower bound of about 1.49 TB. After adding non-quantized tensors, activations, KV cache, communication buffers, and runtime headroom, system GPU memory usually needs to be planned at the 2 TB level or even higher. Using 80GB-class GPUs, the weights alone require about 19 GPUs, while practical multi-node deployment often requires 24 to 32 GPUs or more. To estimate cost, use a formula such as “GPU count × unit price × duration + network, storage, power, and operations,” rather than looking only at model file size. For most teams, the safer path is to first build a capacity model, validate quantization, and stress-test expert parallelism before deciding between on-premises procurement and cloud rental.
