Local Deployment of a 2.8T-Parameter MoE Model: GPU Counts and Costs Across Three Service Tiers
This article estimates the hardware required to run a 2.8-trillion-parameter Mixture-of-Experts (MoE) model on-premises, broken into three service tiers: simply loading the model, usable single-user inference at 25 tokens/s, and 10-way concurrent serving. It walks through weight storage, KV cache sizing, the separation of storage and compute in MoE, bandwidth-bound decode speed, communication latency constraints, and per-tier GPU counts with example cost figures. It closes with a six-item validation checklist to complete before purchasing, plus notes on assumptions and risks.
1. Define Three Service Tiers First, Then Count GPUs
Deployment cost depends on the required quality of service. For the same model, the hardware needed to merely produce output versus supporting multiple concurrent users with fast responses can differ by an order of magnitude. This article defines three tiers:
- Tier 1: It runs. The model loads and emits tokens one by one; speed is not a requirement.
- Tier 2: Usable for one user. A single user’s output speed reaches 25 tokens/s.
- Tier 3: Small-scale concurrency. With 10 concurrent requests, each stream still sustains at least 25 tokens/s, and quantization precision is no lower than a 4-bit floating-point format.
The order of calculation is: pick a tier, count the GPUs, then estimate cost. Throughout this article, 1 GB equals 10⁹ bytes, matching how vendors specify memory capacity. The hardware baseline is the A100 80GB, with 80 GB of memory per GPU and a theoretical memory bandwidth rounded to 2,000 GB/s.
2. The Storage Floor: Weights Must Fit Entirely
The weight footprint is estimated as:
Weight size ≈ total parameters × bits per parameter ÷ 8
Take 2.8 trillion parameters as the example. With 4-bit quantization where every 32 elements share one 8-bit scale factor, each parameter occupies 4.25 bits on average:
2.8×10¹² × 4.25 ÷ 8 ≈ 1,487.5 GB
Scale factors, unquantized layers (such as embedding and normalization layers), metadata, and memory alignment all add overhead. This article reserves a 15% margin, bringing the total weight footprint to roughly 1,710.6 GB.
For comparison, an 8-GPU machine provides 640 GB in total — not enough to hold the 8-bit weights of a 670B-class model (~685 GB), let alone a trillion-parameter model.
Each GPU also needs room for the activation workspace. This article assumes 3 GB reserved per GPU as a starting value; the actual peak must be measured per the validation checklist. Usable memory per GPU is therefore 80 − 3 = 77 GB.
The capacity floor is:
Minimum GPU count ≥ (weight size + KV cache) ÷ usable memory per GPU
With 10 concurrent requests and a context of 8,192 tokens: (1,710.6 + 20.1) ÷ 77 ≈ 22.5, which rounds up to 23 GPUs. This number only means the model fits — it says nothing about speed.
3. KV Cache and Activation Workspace
The KV cache stores attention states of generated tokens and grows with concurrency and context length. For a standard grouped-query attention (GQA) architecture:
KV cache bytes = 2 × layers × KV heads × head dimension × context length × concurrency × bytes per element
Assume 60 layers, 8 KV heads, head dimension 128, context length 8,192, 10 concurrent requests, and KV stored in bf16 (2 bytes per element):
2 × 60 × 8 × 128 × 8,192 × 10 × 2 ≈ 20.1 GB
Storing KV in FP8 halves this to about 10.1 GB. At a context length of 32,768, the bf16 KV cache for 10 concurrent requests is about 80.5 GB. If the model uses a compressed attention structure such as MLA, replace the KV-head count and head dimension in the formula with the compressed latent-vector dimension — otherwise the estimate will be significantly too large.
4. MoE: Storage and Compute Are Counted Separately
A sparse Mixture-of-Experts model has many experts per layer, but each token is routed to only a few of them. Storage and compute must therefore be evaluated separately:
- Storage is counted by total parameters. All experts must reside in GPU memory, even though most are idle most of the time.
- Compute is counted by activated parameters. Each token only passes through its selected experts plus the shared modules.
The activation ratio also has two distinct meanings:
- Expert activation ratio counts only the experts selected at the routing level. If each layer has 256 routed experts and each token selects 8, the expert activation ratio is 8 ÷ 256 ≈ 3.1%.
- Parameter activation ratio counts all parameters actually involved in computation. If about 94B parameters participate per token out of 2,800B total, the parameter activation ratio is 94 ÷ 2,800 ≈ 3.4%.
The two figures differ because attention modules and embedding layers are not experts, yet they still participate in computation.
This article also needs the size of a single expert. Assume that of the 94B activated parameters, about 7B are shared, and the remaining 87B come from 60 layers × 8 experts = 480 experts. Each expert is then about 181M parameters. A low activation ratio means low compute — it does not mean low memory demand.
5. Single-Stream Decoding: Bandwidth Sets the Speed Ceiling
During decoding, generating each token requires reading the weights that token uses. In most cases this step is memory-bandwidth-bound. The theoretical upper bound for single-stream decoding speed is:
Single-stream decode ceiling ≈ effective bandwidth ÷ weight bytes read per token
Each token reads about 50 GB of weights: 94×10⁹ × 4.25 ÷ 8 ≈ 50 GB. The activated parameters here include the shared modules. KV cache reads are small and are not counted in this article.
Effective bandwidth equals theoretical bandwidth multiplied by an efficiency factor. This article assumes 60% efficiency, i.e., 1,200 GB/s of effective bandwidth per GPU. This efficiency is an assumption and must be replaced with measured values.
The three parallelism strategies produce different results:
| Parallelism | Per-step read time (single stream) | Single-stream speed | Main constraint |
|---|---|---|---|
| Pipeline parallelism (PP) | 50 ÷ 1,200 ≈ 41.7 ms | ~24 tokens/s | GPUs work sequentially; speed stays near single-GPU level, adding GPUs does not help |
| Expert parallelism (EP) or tensor parallelism (TP) | ~1.3 ms with 32 GPUs | Determined by communication latency | Every layer requires cross-GPU communication |
No matter how many GPUs are added, PP keeps single-stream speed near the single-GPU level and cannot reach 25 tokens/s. To meet Tier 2, EP or TP must be used so multiple GPUs read the weights for the same token simultaneously.
6. Read Volume and Communication Overhead Under Concurrency
With 10 concurrent requests, each token still selects 8 experts, but the 10 tokens together touch more distinct experts. Assuming uniform routing, each layer reads about 256 × (1 − (255/256)⁸⁰) ≈ 68.8 distinct experts. Real routing is usually skewed, so fewer experts get read — this estimate is conservative.
Per-step read volume:
60 layers × 68.8 experts × 181M parameters × 4.25 bits ÷ 8 ≈ 397 GB, plus ~4 GB for shared modules, totaling ~400 GB.
With 32 GPUs, aggregate effective bandwidth is 32 × 1,200 = 38,400 GB/s, so per-step read time is about 400 ÷ 38,400 ≈ 10.4 ms.
Total step time must also include communication. Each layer has two collective operations (one dispatch, one combine), giving 60 × 2 = 120 collectives per step. If each collective has latency c:
Per-step time ≈ read time + 120 × c
Single-stream speed = 1,000 ÷ per-step time (in ms)
This lets us derive the communication-latency ceiling. Tier 2 requires per-step time ≤ 40 ms: 1.3 + 120c ≤ 40, so c ≤ 0.32 ms. Tier 3 requires 10.4 + 120c ≤ 40, so c ≤ 0.25 ms. The table below assumes 32 GPUs:
| Per-collective latency c | Tier 2: single-stream speed | Tier 3: per-stream speed at 10-way concurrency |
|---|---|---|
| 0.1 ms | ~75 tokens/s | ~45 tokens/s |
| 0.2 ms | ~40 tokens/s | ~29 tokens/s |
| 0.3 ms | ~27 tokens/s | ~22 tokens/s |
| 0.4 ms | ~20 tokens/s | ~17 tokens/s |
This table assumes both tiers see the same communication latency. In practice, 10-way concurrency transfers more data per collective, so latency may be higher. Communication latency must be measured on the target network; these numbers only indicate direction.
EP also imposes a GPU-count constraint: 256 experts divided evenly across 32 GPUs gives exactly 8 experts per GPU. With 24 GPUs the division is uneven, so this article uses 32 GPUs for both Tier 2 and Tier 3.
7. GPU Counts and Costs by Tier
The table below summarizes the three configurations. All prices are example assumptions; substitute real quotes when purchasing.
| Tier | GPUs | Nodes | Parallelism | Network | Weight footprint per GPU |
|---|---|---|---|---|---|
| 1: It runs | 24 | 3 | PP | Standard Ethernet | ~71.3 GB |
| 2: Single user | 32 | 4 | EP | Low-latency RDMA | ~53.5 GB |
| 3: Small concurrency | 32 | 4 | EP | Low-latency RDMA | ~53.5 GB, ~57 GB with KV cache |
Tier 1’s 24 GPUs come from rounding the 23-GPU floor up to 3 nodes at 8 GPUs each. For Tier 3 on 32 GPUs, memory usage is 1,710.6 + 80.5 (32k-context KV) = 1,791.1 GB against a usable capacity of 32 × 77 = 2,464 GB — about 73% utilization, leaving headroom for longer contexts.
Cost assumptions:
- GPU: RMB 100,000 each.
- Node host (chassis, CPU, RAM, NVMe, power supplies): RMB 250,000.
- Networking per node: RMB 50,000 for standard Ethernet; RMB 150,000 for low-latency RDMA (including NICs and a share of switch cost).
- Full-load power per node: 6 kW; average utilization 60%; PUE 1.3; electricity at RMB 0.8/kWh.
Under these assumptions, annual electricity per node is about 6 × 0.6 × 8,760 × 1.3 × 0.8 ≈ RMB 33,000.
Total hardware price:
Total hardware = nodes × (GPUs per node × GPU price + host price + per-node network price)
| Tier | Total hardware | Annual electricity | 3-year TCO (hardware + power) |
|---|---|---|---|
| 1: It runs | 3 × (80 + 25 + 5) = RMB 3.30M | ~RMB 98K | ~RMB 3.59M |
| 2: Single user | 4 × (80 + 25 + 15) = RMB 4.80M | ~RMB 131K | ~RMB 5.19M |
| 3: Small concurrency | 4 × (80 + 25 + 15) = RMB 4.80M | ~RMB 131K | ~RMB 5.19M |
Tiers 2 and 3 use identical hardware; the difference is that Tier 3 imposes a stricter latency requirement (c ≤ 0.25 ms versus c ≤ 0.32 ms for Tier 2). If the network cannot meet Tier 3’s requirement, you must add nodes or lower the concurrency target.
Costs exclude data-center construction, cooling and UPS, core switches, software licenses, operations staff, spare parts, and taxes. These vary widely by region and procurement model and must be estimated separately.
If you purchase a newer GPU generation, the formulas remain the same — replace the memory capacity and bandwidth values and recompute GPU counts and unit prices.
8. Six Validations Before Purchasing
Every figure above is an estimate. Before placing an order, replace the assumptions with measurements from these six tests. Each has a pass criterion; if it fails, adjust the plan first.
- Measured peak memory. Run at 32k context with 10-way concurrency and record peak memory on every GPU. Pass: peak stays within 90% of usable per-GPU memory (~69 GB), with no OOM during a 24-hour stress test.
- Long-context KV stress test. Run at 8k and 32k contexts with 10-way concurrency and compare actual KV usage against the formula. Pass: deviation within 5%. Larger deviations mean the attention architecture does not match the formula’s assumptions.
- Measured effective bandwidth. Use profiling tools to measure actual memory read throughput per GPU during decoding, replacing the 60% efficiency assumption. Pass: after recomputing with measured values, Tier 2 single-stream speed is still at least 25 tokens/s; otherwise adjust GPU count or parallelism.
- Measured communication latency and parallel efficiency. Measure per-collective latency c and full-step time at 1-way and 10-way concurrency. Pass: c ≤ 0.32 ms for Tier 2, c ≤ 0.25 ms for Tier 3, and per-stream speed at 10-way concurrency stays at or above 25 tokens/s.
- Quantization quality evaluation. On your own business evaluation set, compare the 4-bit quantized model against the BF16 baseline. Pass: key metrics degrade by no more than an agreed threshold (e.g., 2 percentage points), confirmed with stakeholders in advance. Also record the actual expert activation distribution to check for routing skew.
- Redundancy, power, and failure drills. Measure whole-system power at full load and confirm at least 20% headroom in power delivery capacity. Simulate a single-node failure and record the time to degrade or fail over the service. Pass: the failure drill succeeds, and spare-part lead times are written into the contract.
9. Risks and Assumptions
- Many assumptions. Bandwidth efficiency, communication latency, scale-factor overhead, activation workspace, and unit costs are all assumed values. This article provides order-of-magnitude judgment, not a performance guarantee.
- Routing distribution affects results. Expert read volume is estimated under uniform routing. Real routing may be skewed, reducing read volume — or slowing the system if certain experts become hot spots.
- Quantization format changes the numbers. Different block sizes or scale formats change bits per parameter, so weight size, GPU count, and read volume must all be recomputed.
- The software stack affects measurements. The inference framework, communication library, and driver versions all change latency and throughput. Conclusions should be based on measurements on the target software versions.
- Hardware generations change the conclusions. This article uses the A100 as the baseline. Newer GPUs change memory, bandwidth, and pricing — recompute with these formulas rather than reusing the numbers in the tables.
