Hardware Requirements for Local Deployment of a Trillion-Parameter MoE Model: A Three-Tier Guide
This article explores the hardware requirements for locally deploying a trillion-parameter Mixture-of-Experts (MoE) model. It verifies key deployment facts, including the distinction between total and activated parameters, memory limits dictated by quantization, and the reliance on interconnects for expert parallelism. The article breaks down the hardware configurations and computational estimates across three performance tiers: basic execution, single-user high-speed inference, and 10-user concurrency. It also provides cost recalculation methods and outlines potential deployment risks.
I. Three Facts to Confirm Before Planning
Before planning, three facts must be clarified, as they dictate every subsequent hardware expense.
Total parameters differ from activated parameters. The model has approximately 2.8 trillion total parameters, comprising 896 experts. Each token activates about 16 experts, an activation ratio of roughly 1.8% (16/896). The activation ratio only reduces the compute and read volume per step, not the storage capacity. During inference, all expert weights must reside in addressable storage; routing only determines which portion is used per step. Therefore, the assumption that “only 1.8% of parameters are used each time, so a single consumer GPU is sufficient” is invalid.
Quantization determines the memory floor. If weights use 4-bit floating-point quantization with an 8-bit scaling factor per 32 elements, the total is approximately 4.25 bits/parameter. The byte calculation for pure weights is:
Weight Bytes = Total Parameters × Bits Per Parameter ÷ 8
Substituting the values: 2.8×10¹² × 4.25 ÷ 8 ≈ 1.49×10¹² bytes, or roughly 1490GB (decimal). This is merely the floor for pure weights. Unquantized tensors, metadata, alignment padding, runtime workspace, and KV Cache will require additional space. The KV Cache estimation formula is:
KV Cache Bytes = 2 × Number of Layers × KV Heads × Head Dimension × Context Length × Bytes Per Element × Concurrency
The number of layers, KV heads, and head dimensions must be read from the model configuration file. As these values were not verified in this article, a specific KV Cache result is not provided.
Expert parallelism relies on interconnects. The 896 experts are distributed across multiple accelerator cards. After routing, each token’s activations must be sent to the card hosting the target expert and returned after computation. This all-to-all communication occurs at every layer. If expert parallelism spans standard PCIe or Ethernet, communication latency could consume the majority of the decoding time. While some suggestions propose using supernodes to expand the range of high-speed interconnects, this article could not verify the original source, version, and release date, treating it only as an empirical reference rather than a definitive conclusion.
II. Overview of Three Hardware Tiers
| Tier | Goal | Key Constraints | Starting Configuration |
|---|---|---|---|
| Tier 1 | Run and output tokens | Weights fit into memory | 1x 24GB to 48GB inference GPU, 2TB DDR5 |
| Tier 2 | Single-user at 25 tokens/s | Expert weights in VRAM, fast cross-card communication | ~24x 80GB-class GPUs |
| Tier 3 | 10 concurrent users | More experts read per step, KV Cache growth | Re-calculate based on Tier 2, typically no less than 24 GPUs |
Conclusion first: Tier 1 can be achieved using relatively affordable CPU memory, but the speed ceiling is low. Tier 2 requires placing expert weights into GPU VRAM. Tier 3 is primarily determined by VRAM capacity and total bandwidth; the higher the concurrency, the more VRAM headroom must be reserved.
III. Tier 1: Minimum Viable Execution
The goal of this tier is to fit the weights into addressable storage and output tokens. Single-digit speeds are acceptable.
A common approach is GPU and CPU heterogeneous inference. Attention and shared layers have fewer parameters and are compute-intensive, so they run on the GPU. The expert layers consume the bulk of storage but use only a few experts per step, allowing them to reside in CPU memory and be fetched based on routing results.
The recommended configuration is as follows:
- 1x 24GB to 48GB inference GPU to host attention and shared layers;
- A dual-socket server, each CPU equipped with 12-channel DDR5, totaling 2TB of memory;
- NVMe SSDs for weight loading and backup swapping.
Why 2TB of memory is recommended: The 1490GB of pure weights already exceeds 1TB, so 1TB of memory cannot keep all weights resident. If only 1TB is configured, missing experts must be read from NVMe SSDs. With a PCIe 4.0 x4 NVMe nominal read speed of about 7GB/s, a single token requires reading approximately 26.6GB of expert weights (based on the 16/896 activation ratio). If all reads miss, reading for a single token takes about 3.8 seconds. The lower the hit rate, the slower the speed.
Bandwidth and speed ceiling: The theoretical bandwidth of a 12-channel DDR5-4800 CPU is 12 × 8 bytes × 4800MT/s ≈ 460.8GB/s. Actual effective bandwidth is typically a fraction of the theoretical value; this article assumes 150GB/s to 300GB/s, which should be replaced with measured results. Under this assumption, the single-user speed ceiling is:
Single-User Speed Ceiling ≈ Effective Bandwidth ÷ Bytes Read Per Token = 150 to 300GB/s ÷ 26.6GB ≈ 5.6 to 11 tokens/s
This is the theoretical limit. CPU computation, scheduling, and data movement will result in lower real-world performance.
IV. Tier 2: Single-User at 25 Tokens/s
A single-user speed of 25 tokens/s means the time per token must be under 40 milliseconds. Reading 26.6GB per token requires an expert weight read bandwidth of approximately 26.6GB × 25 ≈ 665GB/s. The CPU memory bandwidth in Tier 1 falls far short of this, so expert weights must be placed into GPU VRAM.
GPU count estimation: Assuming an 80GB GPU with 90% usable VRAM (72GB), the minimum number of cards for pure weights is:
Minimum Cards = ⌈1490 ÷ 72⌉ = 21
Factoring in KV Cache, communication buffers, and uneven expert partitioning, a 24-card configuration is recommended. Distributing 24x 80GB GPUs across three 8-GPU servers means expert parallelism requires cross-node communication.
Communication latency: Assuming a hidden dimension of 7168 and BF16 format activations (2 bytes per element), the communication volume per layer per token is approximately:
2 × 16 × 7168 × 2 bytes ≈ 458KB
This value is an example and should be replaced based on the model configuration. The communication volume itself is small; the real pressure lies in latency. The communication time for a single token can be expressed as:
Single-Token Comm Time ≈ Number of Layers × 2 × Single All-to-All Latency
The 2 represents one send and one return per layer. The single all-to-all latency must be measured. In the 40ms budget, compute time plus communication time must be less than 40ms, or the speed will not reach 25 tokens/s.
V. Tier 3: 10 Concurrent Users
This article assumes a target speed of 10 tokens/s per user and assumes that routing for different tokens is uncorrelated. Under this assumption, the number of distinct experts used by 10 tokens in the same step can be estimated as:
Distinct Experts Per Layer ≈ 896 × (1 − (1 − 16/896)¹⁰) ≈ 148
A single token uses only 16 experts, but 10 concurrent tokens require about 148 distinct experts. Therefore, the read volume per step is approximately:
Read Volume Per Step ≈ 26.6GB × 148 ÷ 16 ≈ 246GB
The target is 10 steps per second, so the total read bandwidth is about 246GB × 10 ≈ 2.46TB/s. This is an upper limit estimated based on random routing; real routing usually has correlation, so the actual read volume will be slightly lower.
If the Tier 1 CPU handles these reads, with an effective bandwidth of 150 to 300GB/s, the time per step is about 0.82 to 1.64 seconds. The total throughput would be about 6 to 12 tokens/s, yielding only about 0.6 to 1.2 tokens/s per user. Therefore, the Tier 1 solution is unsuitable for 10 concurrent users.
If the Tier 2 GPUs handle these reads, assuming a single-card VRAM bandwidth of 2TB/s, the total theoretical bandwidth for 24 cards is about 48TB/s. 2.46TB/s is only about 5%, meaning bandwidth is generally not the bottleneck. The real constraints are twofold: the VRAM footprint of the KV Cache, and cross-card communication per step.
The VRAM card count re-calculation formula is:
Required VRAM = 1490 + 10 × Single-User KV Cache + Workspace
Cards = ⌈Required VRAM ÷ 72⌉
For example: if the single-user KV Cache is 10GB and the workspace is 100GB, the required VRAM is 1690GB, requiring ⌈23.5⌉ = 24 cards. If the single-user KV Cache is 30GB, the required VRAM is 1890GB, requiring ⌈26.25⌉ = 27 cards. Both values are assumptions and must be replaced with KV Cache calculated from the configuration file.
VI. Cost Recalculation
Overall server pricing is heavily influenced by market conditions, models, batch sizes, and procurement timing. This article does not provide fixed price ranges, only the recalculation methodology.
The total cost calculation formula is:
Total Cost = (Σ Equipment Quantity × Unit Price) × (1 + Tax Rate) + Chassis, Power, Cooling & Rack + Network Equipment + Electricity Cost × Years of Use + Spare Parts
When recalculating, note the following details:
- Whether the unit price includes tax and whether components are new or used;
- The timing of the quote, as hardware prices fluctuate rapidly;
- Electricity costs calculated based on total system power consumption, usage hours, and local electricity rates;
- The cost of Tier 1 DDR5 memory and NVMe usage should be listed separately; the price difference between 2TB and 1TB is not negligible.
Example Tier 1 Equipment List:
| Item | Quantity | Unit Price | Subtotal |
|---|---|---|---|
| Inference GPU (24GB to 48GB) | 1 | Fill per quote | Calculate per formula |
| Dual-socket server board & CPUs | 1 set | Fill per quote | Calculate per formula |
| DDR5 Memory | 2TB | Fill per quote | Calculate per formula |
| NVMe SSDs | 1 or more | Fill per quote | Calculate per formula |
| Chassis, Power, Cooling | 1 set | Fill per quote | Calculate per formula |
The costs for Tier 2 and Tier 3 primarily depend on the number of GPUs, servers, and network equipment. 24x 80GB GPUs distributed across three 8-GPU servers require network equipment costs to be accounted for separately.
VII. Measurement Metrics and Risks
Speed data is only valuable if measurement conditions are documented. During testing, record the following:
- Inference framework name and version, driver and CUDA versions;
- Quantization format, context length, input and output lengths;
- Concurrency, batch size, and whether routing is fixed;
- Number of warmup runs, as well as median and P95 latency.
This article does not specify an inference framework. When selecting one, prioritize frameworks that support expert offloading and expert parallelism, and rely on measured results.
Key risks include:
- CPU memory bandwidth in multi-socket configurations may degrade due to NUMA cross-node access;
- NVMe read/write lifespan is limited; frequent swapping will accelerate wear and significantly increase latency;
- KV Cache grows with context length and concurrency; ultra-long contexts may consume all VRAM beyond the weights;
- Cross-node communication latency fluctuations will directly impact single-user speed;
- Driver, firmware, and framework version changes may alter performance; re-measurement is required after upgrades.
Before the weights are released, it is recommended to first calculate the KV Cache using the configuration file, then measure the single all-to-all latency and CPU effective bandwidth on a small-scale machine before deciding on the procurement scale.
