Local Deployment and Cost Estimation for Ultra-Scale MoE Models: A Three-Tier Guide
This guide walks through the hardware and cost realities of deploying ultra-large-scale Mixture-of-Experts (MoE) models locally, using a 2.8-trillion-parameter architecture as a reference case whose weights are not yet public. It first separates MoE's two cost ledgers—capacity (total parameters) and compute/bandwidth (activated parameters)—then maps three requirement tiers, each a different order of magnitude in cost: fitting the weights into addressable memory at single-digit token/s, reaching 25 token/s for one user, and serving 10 concurrent users at 25 token/s each at native 4-bit accuracy. For each tier it covers memory sizing, bandwidth math, accelerator and interconnect choices, and a build-versus-managed-inference break-even analysis, closing with six practical deployment lessons. All figures are order-of-magnitude estimates meant to be verified against benchmarks.
1. The bottom line first: three tiers, three orders of magnitude in cost
Before the weights of an ultra-large-scale MoE (Mixture-of-Experts) model are released, any local deployment plan can only be built on architecture parameters and public information. Take a recently discussed 2.8-trillion-parameter MoE architecture as an example: until the weights and technical details are officially published, all the memory, bandwidth, hardware, and price figures below are estimates. The orders of magnitude are usable, but exact values must be verified against benchmarks item by item.
The gap between the three tiers does not grow linearly—it spans orders of magnitude:
| Tier | Core goal | Bottleneck | Typical form | One-time cost (order of magnitude, estimate only) | Feasibility |
|---|---|---|---|---|---|
| L1 | Fit the weights into addressable storage and produce output, single-digit token/s | Memory capacity, memory bandwidth | Large-memory dual-socket server + 1–2 consumer GPUs | Under RMB 100,000 | Usable for single-user validation and offline batch |
| L2 | Single-user output ≥ 25 token/s | Weight residency location, cold-expert transfer bandwidth | 8–16 80GB-class accelerators + 1.5–2TB memory, single machine or single rack | A few million RMB, or switch to on-demand rental | Single-user interactive use basically workable |
| L3 | 10 concurrent users, ≥ 25 token/s each, accuracy no lower than the weights’ native 4-bit | Aggregate bandwidth, inter-GPU interconnect, KV capacity and scheduling | 32–64 accelerators forming a single high-speed interconnect domain (a super-node) | Tens of millions of RMB | Small-scale production usability |
It is worth emphasizing that the cost growth from L2 to L3 approaches an order of magnitude, while concurrency only improves about 10x, and unit throughput cost actually drops. This is the real dividing line for “does local deployment make sense”—utilization, not absolute performance.
2. First principles of cost estimation: MoE’s two ledgers must be calculated separately
The key to understanding MoE deployment cost is not to conflate “memory footprint” with “compute consumption.” For dense models the two are proportional; for MoE they are fully decoupled.
- The capacity ledger is calculated on total parameters. All experts must reside in addressable storage, because routing cannot predict which experts the next token will hit. For a 2.8-trillion-parameter model, even if each token activates only a small fraction, the lower bound of the memory/VRAM footprint is set by total parameters.
- The compute ledger is calculated on activated parameters. Of 896 experts, each token activates 16, so the expert activation ratio is about 1.79%. Note this is a “ratio of expert count,” not strictly equivalent to the parameter activation ratio—the parameter activation ratio is usually slightly higher (the shared attention portion participates fully for every token).
- The bandwidth ledger is calculated on the actual bytes moved per token. This is the real performance ceiling in the decode phase.
2.1 VRAM floor: 1.49 TB is a starting point, not the finish line
The model used quantization-aware training (QAT) at the post-training quantization stage; the native format is 4-bit weights with 8-bit activations. Under block-floating-point conventions, every 32 4-bit elements carry one 8-bit scale factor:
Raw data floor = 2.8e12 × 4 bit ÷ 8 ≈ 1400 GBWith per-group scale = 2.8e12 × (4 + 8/32) bit ÷ 8 ≈ 1487.5 GB
1.49 TB is just the weights themselves. A real deployment also adds:
- Sensitive tensors not folded into 4-bit (embeddings, output layer, normalization, gating/routing, etc.), usually 1%–5% of the total;
- Framework metadata, tensor alignment, and memory-pool fragmentation—measured at 5%+ in practice;
- Runtime working space (activations, temporary buffers, communication buffers);
- KV cache, proportional to concurrency × context length.
For reference, a 671B-class MoE model has about 685 GB of 8-bit weights, about 335 GB after 4-bit quantization, and adding activations and working space brings the total close to 400 GB—just fitting into the 640GB VRAM across 8 80GB accelerators. The target model is more than four times that size; 640GB on a single node cannot even hold the weights—this is the first hard gate for “full-blooded local deployment.”
2.2 The communication economics behind the official recommendation
The official recommendation is to use a super-node of 64+ accelerators. The reason is not compute—it is all-to-all communication. For MoE, after each token is routed, its activations must be moved to the card hosting the target expert for computation, then moved back—once per layer, accumulating over dozens of layers.
An order-of-magnitude comparison makes the point: single-card high-bandwidth memory read bandwidth is on the order of TB/s, while crossing physical machines over standard Ethernet, effective bandwidth is usually only tens of Gb/s—GB/s to low-tens of GB/s—a gap of two to three orders of magnitude. Although the activation data moved per token is not large, it is synchronous and blocking—all cards must wait for the slowest transfer to finish before entering the next layer. Communication latency directly eats into compute rather than stacking with it.
This yields the first design principle: where the weights are stored sets the performance ceiling; the size of the interconnect domain determines whether that ceiling can be approached.
3. Tier 1: just get it running, keep the budget under RMB 100,000
3.1 Approach: offload the bulky, sparsely-activated parts to CPU memory
The sole goal of this tier is to “fit into 1.49+ TB of addressable storage,” so CPU+GPU heterogeneous inference is the most direct path:
- The expert-independent parts of each layer (the attention/linear-attention backbone, normalization, routing) are compute-intensive but small in size—keep them in GPU high-bandwidth memory;
- The 896 sparse experts take up the bulk of storage but activate only 16 each time—offload them all to CPU memory, carried by a large-memory server.
This kind of approach already has mature implementations in some high-performance open-source inference frameworks: a public case is a dual-socket server-class CPU paired with a single consumer 24GB GPU, running the 4-bit quantized version of a 671B-class model (~377 GB), with prefill reaching 200+ token/s and decode around 14 token/s—but that number comes with expert-selection-policy caveats and is not standard full decode, so when citing it you must read it together with its premises.
3.2 How to size memory
Weight body ≈ 1490 GBSensitive tensors + metadata ≈ 50–150 GBRuntime workspace + KV (single user, 4K context) ≈ 10–30 GB------------------------------------------------Physical memory floor ≈ 1.6 TBRecommended (with 20% headroom) ≈ 2 TB, i.e. 16–24 64GB/128GB DIMMs
You must also watch memory channel count and NUMA topology: on a dual-socket platform, populate all 24 DIMMs and enable NUMA interleaving or do strict NUMA binding; otherwise cross-socket access will significantly drag down effective bandwidth. Also reserve space for huge pages and memory-mapped weights, avoiding shallow caches that trigger paging.
3.3 Speed ceiling: a formula you can compute by hand
In decode, generating each token requires reading the “all-participating” weights of that layer once. Under a heterogeneous setup there are two traffic streams:
Bytes read per token= shared part resident on GPU (read in full)+ CPU-side total expert bytes × expert activation ratio (only the hit part)decode ceiling tok/s ≈ effective memory bandwidth × bandwidth utilization ÷ bytes read per token
Plugging in magnitudes: the CPU side carries ~1.4 TB of expert weights, a 1.79% hit ratio, ~25 GB/token. With server memory bandwidth at 200–600 GB/s and 50%–70% utilization, that supports ~6–17 token/s. The GPU only handles the small, every-token-read shared portion, whose bandwidth consumer-grade VRAM can cover.
The conclusion is clear: this tier’s output speed ceiling is determined by memory bandwidth and is almost unrelated to CPU core count. To double the speed, the only effective means are increasing memory channels (switching to a higher-spec memory platform), raising bandwidth utilization (operator fusion, fewer intermediate copies), or migrating high-frequency experts to the GPU—but the latter needs VRAM, and VRAM is exactly what this tier lacks most. So the realistic expectation for this tier is: single-digit to low-teens token/s, latency in the hundreds of milliseconds, suitable only for interactive “can produce output” validation scenarios.
4. Tier 2: 25 token/s for a single user, and the bottleneck changes
Raising the target 3–5x while cost rises more than 10x, because the bottleneck switches from “memory capacity” to “weight residency location and transfer bandwidth.”
4.1 Why you cannot just add more memory sticks
To sustain 25 token/s decode, by the formula above the CPU side must continuously provide ~630 GB/s of effective bandwidth—already beyond the theoretical peak of current mainstream dual-socket server memory, let alone 50%–70% measured utilization. And 25 token/s × ~25 GB of expert weight reads is a sustained load of 600+ GB/s, which no DDR platform can stably support.
The only way out is: move a high-enough proportion of expert weights into high-bandwidth VRAM, leaving the CPU to handle only cold experts. VRAM needs to cover:
- The shared backbone (read every token—biggest benefit from VRAM);
- The highest-frequency experts (hot experts);
- Runtime workspace and KV cache.
With 1.49 TB of weights and 8× 80GB accelerators (640GB), VRAM covers about 40% of the weights; pushing the cold-expert ratio below 60% brings CPU-side bandwidth demand back to the ~400 GB/s range, which a platform with 8–12 memory channels can satisfy. This is where the “8–16 80GB-class accelerators + 1.5–2TB memory, within a single rack” configuration comes from.
4.2 On “quantizing to a lower bit-width”
Some will ask: would quantizing to 2-bit save half the money? For native 4-bit weights that already went through QAT in the post-training quantization stage, further lowering bit-width is second-order quantization: it requires dequantize-then-requantize, with uncontrollable accuracy loss, and the dequantization operator adds extra bandwidth and latency. The result: speed may not improve, but quality drops first. A more pragmatic approach is to fix the quantization level as a hard constraint (e.g., weights 4-bit, KV cache 8-bit or 4-bit, activations 8-bit) and make architecture adjustments under that constraint, rather than trying to hit budget by lowering bit-width.
4.3 Heterogeneous vs pure GPU tradeoff
| Dimension | CPU+GPU heterogeneous offload | Pure GPU full residency |
|---|---|---|
| To reach 25 token/s | 8–16 80GB cards + large memory | 24+ 80GB cards |
| Key bottleneck | Cold-expert transfer bandwidth, NUMA and scheduling overhead | Inter-card interconnect bandwidth, cross-node communication |
| Prerequisites | Sufficient memory channels, sensible expert tiering | NVLink-class interconnect within one machine, or a super-node |
| Cost magnitude | A few million RMB | Higher, and latency degrades markedly when spanning machines |
A counterintuitive but important inference: when the weights must be distributed across multiple physical nodes, the bottleneck shifts from memory bandwidth to interconnect bandwidth, and the synchronous blocking of all-to-all replaces decode as the main cost. So L2 should prefer single-machine or single-rack solutions, keeping the communication domain within the machine, rather than simply stacking more machines.
5. Tier 3: 10 concurrent, 25 token/s each, accuracy no lower than the weights’ native 4-bit
The goal of this tier changes: from “single-user latency” to “aggregate throughput + stability”—no longer a configuration question but a systems-engineering one.
5.1 Decomposing the throughput requirement
Total throughput = concurrency × per-user output speed = 10 × 25 = 250 token/s (decode only)Aggregate weight-read bandwidth = 250 token/s × bytes read per token≈ 250 × 25 GB ≈ 6.3 TB/s (sustained)
Meanwhile, concurrent requests’ prefill phase can hit 100+ GFLOP/token, competing with decode for the same batch of accelerators. If the prefill and decode resource pools are not isolated or split via chunked prefill, per-user 25 token/s gets punched through by prefill jitter, showing up as latency spikes rather than a drop in average speed. This kind of “average meets target, P99 does not” problem is exactly the most common failure mode at this tier.
5.2 Capacity planning: four cost buckets
- Weights: 1.49 TB;
- Sensitive tensors, metadata, alignment fragmentation: 5%–10%;
- KV cache: 10 concurrent, 32K context each; if the attention uses latent low-rank compression, cache size drops significantly, but you still must compute precisely by “concurrency × context × cache bytes per token” and reserve for 1.5x peak;
- Scheduling and communication buffers: reserve 10% headroom.
The typical conclusion is that you need 32–64 80GB-class accelerators forming a single high-speed interconnect domain (e.g., 4–8 8-card machines, NVLink-class interconnect inside each machine, high-speed network between them), which exactly explains the origin of the official “64+ super-node” recommendation.
5.3 Cost and budget composition (magnitude estimate, not a quote)
- Accelerators: at 2025–2026 market rates, a single 80GB-class high-bandwidth training card costs RMB 150,000–300,000; 32 cards means RMB 5–10 million, and 64 cards doubles that;
- Whole machines, NICs, optical modules, switches, parallel file storage, racks and power retrofits: add another RMB 2–5 million;
- Three years of software and labor (inference-engine adaptation, expert load balancing, load testing and tuning): RMB 500,000–1.5 million.
Total one-time investment is on the order of tens of millions of RMB, which explains why the official recommendation is a “64+ super-node”—it is itself the natural product of that cost tier.
5.4 Build vs managed inference: look at one metric only
Let the one-time investment be C, annual O&M (power/bandwidth/labor) D, annual effective tokens V = total throughput × utilization × 31.5M; self-built cost per token = (C/3 + D) / V. Set it equal to the commercial pay-as-you-go unit price and you can solve for the break-even utilization—in practice this value usually lands in the 50%–80% range. Below it, self-building is not economical; above it, self-building has a cost advantage. So L3’s decision premise is not “can we fit the model” but “is there stable high-concurrency business to fill it.”
6. Six general lessons for deployment
- Verify accuracy before optimizing. The weights’ native quantization level sets the accuracy ceiling. Any attempt to “lower the bit-width another notch” should first run a fixed validation set before comparing optimization gains.
- MoE routing is a load-balancing problem. Uneven expert distribution leaves some accelerators idle and drops overall throughput; you need a load-aware expert placement strategy that keeps replicas of hot experts across multiple accelerators.
- Communication domain beats compute. Prefer keeping communication within a single machine; before scaling across machines, load-test the actual all-to-all bandwidth and latency, then decide the topology.
- Decode speed only respects memory bandwidth. In heterogeneous setups, CPU core count and frequency have limited impact on decode; blindly piling on CPUs is wasted investment.
- Size KV capacity by concurrency, not user count. Long-context capability needs 1.5x headroom, or peak hours will see queuing rather than graceful degradation.
- Validate with P99, not averages. Load testing must cover three scenarios: cold start, prefix hits, and long outputs.
7. Closing thoughts
Local deployment of ultra-large-scale MoE is essentially a capacity-and-bandwidth engineering problem of “fitting TB-scale weights into addressable storage and feeding each token on time,” not purely a compute problem. The reason the three tiers map to three orders of magnitude in cost is that the bottleneck moves up layer by layer—memory capacity → memory/VRAM bandwidth → inter-card interconnect and scheduling—and the breakthrough method at each tier is completely different.
If you are at the “build or not” decision stage, a pragmatic path is: first complete accuracy and feasibility validation in a low-cost environment (e.g., an on-demand general-purpose GPU compute instance), then run a break-even calculation combining three-year self-build TCO with the managed-inference unit price, and only then decide whether to buy cards or keep using an API. What truly determines success here has never been “can we fit 1.5 TB,” but whether your business can sustainably produce utilization high enough.
