Deploying a 2.8 Trillion-Parameter MoE Model On-Premises: The Real Cost Breakdown
Self-hosting a 2.8-trillion-parameter Mixture-of-Experts (MoE) model comes down less to whether your hardware can compute it and more to how fast it can move data around. This article breaks down the full cost of local deployment: why the 4-bit weight footprint of a 896-expert model lands near 1.5TB (1650-2000GB in practice), why all-to-all interconnect bandwidth becomes the second hard constraint right after memory, and three deployment routes spanning from a few tens of thousands of yuan for basic heterogeneous inference to tens of millions for a 64+ accelerator supernode. It also includes reusable formulas for memory sizing and operating cost, a worked example, and a tuning checklist covering quantization, hot-expert residency, speculative decoding, PD disaggregation, KV-cache management, and load balancing—plus guidance on when the cloud beats owning your own hardware.
1. First, the math: how much memory do 2.8 trillion parameters actually take?
Sparse activation saves compute, not memory. This architecture is MoE (Mixture-of-Experts): of 896 experts, a router selects 16 for each token, an activation ratio of roughly 1.79%. Note that this is the expert activation ratio, not a strict parameter activation ratio. More importantly, the memory footprint of an MoE deployment is calculated from the total parameter count—the activation ratio only affects compute consumption and memory-access intensity. You must load all 896 experts into addressable storage and then dispatch 16 of them on demand during inference.
The backbone uses a new linear attention design (a gated variant of the delta rule) combined with an attention-residual structure; gated low-rank attention is one of its components. This layer is compute-intensive, and its resource profile is completely different from that of the sparse expert layers.
4-bit weights are really 4.25 bit. The model adopted quantization-aware training from the supervised fine-tuning stage onward. Weights use 4-bit block-quantized floating point and activations use 8-bit. Under the block-quantization scheme, every 32 4-bit elements share a single 8-bit scale factor, so:
2.8e12 × (4 + 8/32) bit ÷ 8 ≈ 1487.5 GB
That 1487.5GB is only the weight body. A realistic budget also has to add:
- Unquantized tensors (word embeddings, normalization layers, gating networks, position-related parameters) usually stay at 8/16-bit. Estimating 1%-2% of the parameter count puts them at roughly 30-70GB;
- Runtime communication buffers, transient activations, and operator workspaces, estimated at 5%-10% of the weights, or about 75-150GB;
- Alignment fragmentation and metadata after tensor-parallel splitting, another 5%-10%;
- KV cache, which grows linearly with context length and concurrency.
The total practical figure lands around 1600GB-2000GB, with weights accounting for more than 70%. As a point of reference: a certain 671-billion-parameter open-source model, with 8-bit weights plus MTP parameters, is about 685GB; after 4-bit quantization its weights drop to about 335GB plus roughly 37GB of activations, for a total near 400GB that fits on 8 high-memory accelerator cards (640GB combined). This model’s weight footprint is 3.5-4.5× larger, which sets the floor for a full deployment.
Writing the budget as a repeatable function is more reliable than memorizing numbers:
def estimate_gb(total_params, bits=4, scale_bits=8, group=32,unquant_ratio=0.015, kv_cache_gb=0.0, overhead=0.10):"""total_params is the total parameter count; returns the memory/VRAM requirement (GB)"""weight = total_params * (bits + scale_bits / group) / 8unquant = total_params * unquant_ratio * 16 / 8runtime = (weight + unquant) * overheadreturn (weight + unquant + runtime + kv_cache_gb) / 1e9# Minimum viable config for short context and low concurrencyprint(estimate_gb(2.8e12, kv_cache_gb=60)) # ~1650 GB
2. The second constraint isn’t memory—it’s interconnect
Large-scale MoE inference is extremely sensitive to all-to-all communication bandwidth. With 896 experts spread across multiple cards, every token has to move its activations to the card hosting its target expert after routing, and then move back once computation finishes. Communication latency eats straight into compute—no matter how powerful your chips are, if they’re stalled on communication, they’re just spinning idle.
This leads to a clear ordering principle for the parallelism strategy: the expert-parallel communication domain must sit inside a single high-speed interconnect domain. Tensor parallelism should be done as intra-card/intra-node splitting first, with cross-node links carrying only pipeline or data parallelism. It also explains why the official guidance recommends a supernode of 64 or more accelerators: use a high-bandwidth interconnect (such as NVLink or an equivalent link) to make the communication domain large enough that expert-routing traffic never crosses out of a single domain. RDMA networks between racks (InfiniBand/RoCE and similar) can solve “does it connect,” but they can’t solve “is it fast enough.”
3. Three deployment routes, three cost tiers
Route A: Good enough to run, speed not a concern
The goal is to fit nearly 1500GB of weights into addressable storage and get the model to emit tokens—even if only single-digit tokens per second. The most direct approach is GPU/CPU heterogeneous inference: the shared attention layers (linear attention + gated low-rank attention) are compute-intensive and stay resident in GPU high-bandwidth VRAM; the sparse expert layers dominate storage but only 16 experts activate per token, so the full set is offloaded into a large-memory server’s RAM and fetched on demand.
The throughput ceiling on this path is set by memory bandwidth, and it’s directly calculable: each token needs to read about 1487.5 × 16/896 ≈ 26.6GB of weights from memory. Over a PCIe link (single-card one-way bandwidth on the order of 32-64GB/s), the ideal lower bound is 0.4-0.8 seconds/token. In practice, multi-card contention and scheduling overhead usually make it slower, landing at 1-5 token/s. Public heterogeneous-inference measurements support this order of magnitude: a dual-socket server CPU paired with one high-end consumer GPU, running the 4-bit version of a 671-billion-parameter model (about 377GB of weights), reaches roughly 14 token/s for decode and 200+ token/s for prefill with expert selection enabled—note that this was measured under constrained expert selection and does not represent the general case.
Configuration recommendation: a dual-socket or larger-memory server (memory ≥ 1.5TB, ideally 2TB) plus a few 24-48GB VRAM cards, with the GPU count matched to the bandwidth of the CPU’s memory channels—adding more brings no benefit. Suitable scenarios: model-structure research, offline batch inference, and very-low-frequency interaction.
Route B: Single or dual node, aiming for usable throughput
The goal here is to fit all the weights into VRAM and escape the memory-bandwidth bottleneck. Run the capacity numbers: 8 cards with 141GB VRAM on one node total 1128GB—not enough; 8 cards with 192GB VRAM total 1536GB, which barely covers the weight body but leaves nothing for KV cache or the runtime workspace, so long contexts will OOM outright. The realistic choice is therefore a dual-node, 8-cards-per-node cluster, combined with a mixed split of tensor parallelism + expert parallelism + pipeline parallelism.
The key cost item at this tier is the inter-node network: high-speed RDMA NICs and switching gear are mandatory, or else cross-node all-to-all will drag throughput back down to Route A levels. The hardware tier lands in the several-million-yuan range and suits in-house inference services that need some degree of concurrency.
Route C: Full-power supernode, aiming for the lowest cost per token
64 or more accelerators within the same high-speed interconnect domain, so expert routing never leaves the domain, and both prefill and decode can fully utilize the compute while supporting long context and large batches. The value of this tier isn’t peak throughput but the amortized cost per token—the larger the batch, the more fully weight reads are reused, and the lower the marginal cost. The price is the full investment in power, cooling, racks, and networking for the whole machine; hardware plus supporting infrastructure typically totals in the tens-of-millions-of-yuan range.
4. Cost model: turning “how much” into a formula
Capital expenditure (CapEx): accelerator cards + servers + memory + high-speed network + storage. At current market prices, accelerator cards account for 60%-75%, networking for 10%-20%, and the rest goes to servers, memory, and storage. With a weight file approaching 1.5TB, storage should reserve 2× or more of that space for version switching and format conversion; a tiered setup of object storage plus local high-speed storage is recommended.
Operating expenditure (OpEx):
Annual electricity = full-system power (kW) × 8760 × electricity price × utilization × PUEAnnual depreciation = total equipment cost ÷ depreciation period (usually 3-5 years)
Taking a 64-card supernode as an example, assume 100kW full-system power, an electricity price of 0.7 yuan/kWh, PUE 1.2, and 60% utilization. Annual electricity runs about 440,000 yuan; assuming a total equipment cost of 12,000,000 yuan depreciated over 3 years, annual depreciation is 4,000,000 yuan. Assuming a steady output of 2000 token/s, annual production is about 37.8 billion tokens, which works out to roughly 12 yuan per million tokens (electricity) and 106 yuan per million tokens (depreciation). These figures only illustrate the method—unit prices vary enormously by region, procurement approach, and contract terms, so always recompute with real quotes.
Where self-hosting and cloud diverge: if your average monthly token output is low, concurrency fluctuates widely, or the model version updates frequently, pay-as-you-go cloud is almost always more economical. Self-hosting only pays off when long-term high utilization + data that cannot leave the internal network + a need for a deeply customized inference stack all hold at the same time. The key deciding metric is whether effective GPU utilization can stay above 60% over the long term.
5. A tuning checklist that decides output per dollar
- Layered quantization: run weights at 4-bit block quantization while keeping sensitive tensors like attention and gating at higher precision. If your framework supports 4-bit weights with 8-bit activations, make sure it’s enabled—it substantially reduces the compute pressure during prefill.
- Keep hot experts resident: expert access distribution is usually long-tailed and uneven. Pinning high-frequency experts in VRAM while placing cold experts in memory/SSD can dramatically cut cross-medium transfers.
- Speculative decoding: use the model’s built-in MTP (multi-token prediction) parameters as a draft, typically yielding a 2-3× speedup range—the best cost-to-benefit move for improving throughput.
- PD disaggregation: prefill is compute-intensive and decode is memory-access-intensive, so deploy them in separate pools with resources configured independently, avoiding contention.
- KV-cache governance: paged management + quantization + prefix reuse. Note that this model uses attention over a compressed latent space, so its KV footprint is far smaller than a comparable-scale standard multi-head attention model—this materially changes your capacity calculation.
- Load balancing: routing and scheduling must prevent a few experts from becoming hot spots, otherwise overall latency is dictated by the slowest card.
6. Conclusion
For local deployment of a 2.8-trillion-parameter MoE model, the cost difference doesn’t come from “can it compute” but from “how fast does data move.” Route A buys single-digit token/s for an investment of tens of thousands to a few hundred thousand yuan, suited to validation; Route B buys usable concurrency for a several-million-yuan investment, provided you complete the high-speed network; Route C buys the lowest unit cost for a tens-of-millions-yuan investment, provided utilization holds up. First pin down the 1650GB hard floor, then the 26.6GB/token transfer floor, and finally plug your own electricity price, card price, and target QPS into the formulas above—at that point this stops being a guessing game and becomes arithmetic.
