Deploying Trillion-Parameter MoE Models Locally: Hardware and Cost
This article breaks down the hardware and cost considerations for locally deploying a 2.8-trillion-parameter mixture-of-experts (MoE) model. It explains why trillion-scale MoE deployment is primarily a memory and interconnect challenge, estimates the memory floor after 4-bit quantization, examines the role of high-bandwidth supernodes, and compares three practical deployment options: full supernode deployment, heterogeneous CPU/GPU offloading, and on-demand cloud compute.
Introduction: From “Can It Run?” to “Can It Fit and Move?”
When a model reaches around 2.8 trillion parameters, the nature of local deployment changes. It is no longer just a question of whether the hardware has enough compute to run the model. It becomes a question of whether the weights can be stored and moved efficiently enough: can the model fit in memory, and can the system sustain the required data movement?
For very large-scale MoE deployments, public large-scale MoE proposals often recommend using a high-bandwidth supernode with 64 or more accelerators. This article uses a reference architecture of 2.8 trillion total parameters, 896 experts, and 16 active experts per token to examine the memory floor, quantization overhead, interconnect requirements, and deployment cost.
Note: except for publicly stated architecture details, the speed, memory, and hardware figures below are estimates based on public information. Once official weights are released, these estimates should be validated through benchmarking.
1. How Much Data Must Be Stored for 2.8 Trillion Parameters?
The key characteristic of an MoE model is sparse activation. In the reference model, there are 896 experts, but each token is routed to only 16 experts, giving an expert activation ratio of roughly:
16 / 896 ≈ 1.79%
This is a point that is easy to confuse, so it is important to separate two different concepts:
- Expert activation ratio, about 1.79% affects compute usage: for each token, only the forward computation of 16 experts is executed.
- Parameter storage ratio affects memory usage: for deployment purposes, this is effectively 100%.
Even though only 16 experts are computed for each token, the system must still place all 896 experts’ weights into addressable storage in advance, then fetch the relevant experts on demand according to routing results. In other words, MoE deployment memory is determined by the total parameter count, while the activation ratio mainly reduces compute cost, not the memory storage lower bound.
At the architectural level, this type of model may also use attention variants such as Delta-style incremental attention mechanisms, Gated MLA, and attention residual connections. These designs are mainly intended to compress the KV cache and improve long-context efficiency. They primarily reduce runtime cache usage and do not change the storage lower bound for model weights.
2. Quantization: How Low Can the Memory Floor Go?
Models like this are often trained with quantization-aware training, or QAT, from the SFT stage. A typical configuration is 4-bit microscaling floating-point weights, MXFP4, paired with 8-bit microscaling activations, MXFP8.
A simple lower-bound estimate for weight storage is:
def estimate_weight_gb(total_params_t, bits_per_weight):"""Estimate weight storage usage in GB (decimal)."""params = total_params_t * 1e12 # total parametersbytes_needed = params * bits_per_weight / 8return bytes_needed / 1e9print(estimate_weight_gb(2.8, 4)) # ~1400 GB: theoretical 4-bit lower boundprint(estimate_weight_gb(2.8, 4.25)) # ~1487.5 GB: includes 8-bit scales
The important detail is scale overhead. In microscaling formats such as MXFP4, every 32 4-bit elements are accompanied by one 8-bit scaling factor. On average, this works out to about 4.25 bits per weight element, so:
- Bare 4-bit theoretical lower bound: about 1400 GB
- Including scale overhead: 2.8T × 4.25 ÷ 8 ≈ 1487.5 GB
This still does not include:
- tensors that remain at higher than 4-bit precision, such as some layers or embedding layers;
- metadata;
- memory alignment overhead;
- runtime workspace;
- KV cache.
Therefore, the often-cited figure of about 1500 GB is only the starting point for weight storage.
For comparison, an open-source MoE model with roughly 670 billion parameters requires about 685 GB in FP8 when including main parameters and multi-token prediction auxiliary parameters. Even with activation-aware 4-bit quantization, it still requires roughly 335 GB of weights + 37 GB of activations, or about 400 GB in total, to run on a set of 8 flagship data-center GPUs, each with about 80 GB of memory, for a total of 640 GB.
The 2.8-trillion-parameter model discussed here is more than 4 times larger. As a result, the storage lower bound for a full deployment is pushed close to 1500 GB.
3. Why Supernodes and High-Speed Interconnects Are Necessary
The 896 experts are spread across multiple GPUs. After routing, each token’s activations must first be sent to the GPU hosting the target expert, computed, and then sent back. This creates the all-to-all communication pattern that is characteristic of MoE inference.
The problem is that large-scale MoE inference is extremely sensitive to all-to-all communication bandwidth. When inter-GPU bandwidth is insufficient, tokens moving between experts spend a large amount of time waiting. Communication latency directly consumes compute capability: the GPUs spend more time waiting for data than performing useful computation.
The core idea behind supernode architectures is to use high-bandwidth interconnects to enlarge the communication domain, so that frequent token movement can stay within a single interconnected domain as much as possible.
The goal is clear: put nearly 1500 GB of weights into a uniformly addressable storage pool and keep the model generating tokens continuously, rather than letting network round trips become the bottleneck.
4. Heterogeneous Inference: CPU Memory for Storage, GPU for Compute
If the goal is simply to get the model running, even at only a few tokens per second, GPU-CPU heterogeneous offloading is currently the lowest-barrier approach. Representative implementations come from open-source heterogeneous inference frameworks. Their division of labor fits MoE structure well:
- Shared attention components, in this architecture Delta-style incremental attention plus Gated MLA, are compute-intensive and remain on the GPU.
- The 896 sparse experts account for most of the storage, but only 16 are activated per token. They can be offloaded to a large-memory server CPU.
# Pseudo-code for heterogeneous offloadingfor layer in layers:h = gpu_attention_forward(layer.attention, h) # compute-heavy: GPUexpert_ids = router(h, top_k=16) # select 16 experts# All 896 expert weights reside in CPU memory; only selected experts are loadedh = cpu_experts_forward(layer.experts[expert_ids], h)
As a reference point, such frameworks have reported that, on a configuration with a dual-socket server-class CPU plus one high-end consumer GPU, running a 4-bit quantized version of a roughly 670-billion-parameter MoE model of about 377 GB achieved approximately 200+ tokens/s for prefill and about 14 tokens/s for decode. These results may also come with constraints such as expert selection policies.
The tradeoff is straightforward:
- Advantages: low hardware cost and low entry barrier; a high-end workstation-class machine may be enough for validation.
- Disadvantages: throughput and latency are far below a full GPU cluster; this is not suitable for high-concurrency production environments.
5. Cost: Three Deployment Paths and Order-of-Magnitude Estimates
The core question is: how much does it cost? The following figures are rough order-of-magnitude estimates only. Actual prices vary significantly by region, time, and supplier. They are intended for decision-making reference and do not constitute a quotation.
Route A: Full-Scale Deployment, Production-Grade
This route requires:
- a supernode with 64 or more data-center-class GPUs;
- high-speed interconnects;
- large-capacity host memory;
- power delivery and cooling infrastructure.
Hardware procurement alone is typically in the tens of millions of RMB range. When adding facilities, electricity, and operations, the total cost of ownership is even higher.
This route is suitable for large-scale inference where throughput, latency, and SLA requirements are strict.
Route B: Heterogeneous Offloading, Validation-Grade
This route typically requires:
- a dual-socket server-class CPU;
- large memory, usually 1–2 TB;
- one high-end GPU.
The rough cost is in the range of RMB 100,000 to RMB 1,000,000.
This route is suitable for algorithm validation, result reproduction, and offline batch processing. It is not suitable for online high-concurrency serving.
Route C: On-Demand Cloud Rental, Elastic and Low-Maintenance
If a large upfront capital investment is undesirable, general-purpose cloud compute can be used on demand, such as GPU cloud servers or containerized inference services. Public cloud platforms, such as Baidu AI Cloud, offer general-purpose GPU compute products; exact specifications and pricing should be checked against the official documentation.
This model is pay-as-you-go and elastic. It is especially suitable for the early stage after new weights are released, when teams want to validate the model before deciding whether to build their own infrastructure.
Main Cost Drivers
Regardless of the route chosen, the main cost drivers are:
- the number of GPUs and memory per GPU;
- inter-GPU interconnect bandwidth;
- host memory capacity;
- long-term power, cooling, and operational costs.
6. Practical Decision Checklist
- If the goal is production-grade online service with high throughput and stable latency, choose the supernode route, Route A, and plan a budget in the tens of millions of RMB range.
- If the goal is result reproduction, offline experimentation, or working with limited resources, choose heterogeneous offloading, Route B, which can start with a workstation-class machine.
- If requirements are uncertain and you want to validate before committing, prioritize on-demand cloud rental, Route C, converting capital expenditure into operational expenditure.
- Regardless of the route, after official weights are released, validate with unified benchmarks such as prefill/decode throughput, peak memory usage, and end-to-end latency. Do not directly rely on estimated numbers.
In one sentence: local deployment of a trillion-parameter MoE model is fundamentally a problem of storage capacity plus interconnect bandwidth. Once you decide whether you need full production deployment or first-stage validation, you can choose the most cost-effective option among supernodes, heterogeneous offloading, and on-demand cloud rental.
