Deploying Trillion-Parameter MoE Models On-Premises: A Three-Tier Cost and Capacity Guide
This guide breaks down the practical economics of self-hosting a trillion-parameter Mixture-of-Experts (MoE) model, using a publicly described 2.8-trillion-parameter architecture as the working example. It defines three deployment tiers — CPU-based validation, single-user low-latency serving, and 10-user FP8 concurrent serving — and derives every number from first principles: weight footprint (roughly 1.6–1.7 TB at 4-bit), per-token read volume, MLA KV-cache sizing, interconnect requirements, and bandwidth-limited decode throughput. A copy-ready Python estimator, a reference serving configuration, budget tables with 3-year TCO, and a reproducible benchmarking and acceptance plan turn these estimates into commitments once the weights are released.
1. Getting started: how to choose a tier, how to estimate, and what to validate
As of this writing, a MoE model with roughly 2.8 trillion total parameters has not released its full weights or a technical report; the official team has only announced an upcoming release date. This article does not chase parameter-count hype. Instead, it breaks the deployment problem into three questions that can actually be answered:
- Which tier should I choose? Are you only validating output quality, do you need smooth output for a single user, or do you need multiple concurrent users with full FP8?
- How do I estimate? How do you calculate VRAM, bandwidth, KV cache, per-token read volume, and TCO?
- What do I validate? Once the weights are public, which metrics tell you whether a given tier actually meets the bar?
One principle runs through the entire article: nail down everything that can be calculated, and leave headroom for what cannot. Apart from the architecture and the activated parameter count, every speed, VRAM, and configuration number here is an engineering estimate derived from public information. Once the weights are released, verify each item with benchmarks.
1.1 Three tiers and the headline conclusions
| Tier | Goal | Recommended configuration shape | Main bottleneck | Hardware budget (order of magnitude) |
|---|---|---|---|---|
| Tier 1 | Get it running, speed irrelevant | One large-memory server with ~2 TB of RAM, CPU inference, optionally a few accelerators for hybrid offloading | Memory capacity and memory bandwidth | RMB 100K–200K |
| Tier 2 | Single user, ≥25 tps output | 16 high-bandwidth VRAM accelerators in one machine, tensor parallelism + expert parallelism inside a single high-speed interconnect domain | Per-card, per-layer fixed overhead; expert routing communication; GEMV efficiency | ~RMB 1.5M |
| Tier 3 | 10 concurrent users, ≥25 tps each, no lower than FP8 | 32 accelerators forming one high-bandwidth interconnect domain, continuous batching | FP8 weight footprint, aggregate bandwidth, KV capacity, long-context attention | RMB 4M–5M |
This table answers “how much will it cost.” The rest of the article answers three things: where each number comes from, when it stops holding, and how to verify it.
1.2 Model profile: understand what you are deploying
The publicly available architecture information gives four key facts:
- Scale: 2.8 trillion total parameters, MoE architecture.
- Routing: 896 experts, 16 activated per token, an expert activation ratio of 16/896 ≈ 1.79%.
- Structure: a backbone built from KDA and Attention Residuals, including a gated MLA component.
- Quantization: quantization-aware training from the SFT stage onward — 4-bit weights with 8-bit activations.
These four points determine three deployment difficulties.
The weights do not fit. MoE VRAM consumption is dictated by all experts. Routing saves compute, not storage.
Communication is heavy. 896 experts are spread across multiple cards, so for every token at every MoE layer, activations must be sent to the card hosting the target expert and gathered back after computation.
There is no size reference point. Viable hardware shapes range from pure CPU to interconnect domains of ten or more high-bandwidth cards, so selection depends heavily on the target tier.
Here is the arithmetic behind the first difficulty:
- MoE layer output depends only on each token’s hidden state.
- If a single expert holds E parameters, then “1 expert vs. 16 experts” makes essentially no difference to the activations that must be cached.
- Deeper inputs also come only from the previous layer’s hidden state, independent of how many experts were activated.
Activated expert count therefore affects compute and communication, but creates no additional VRAM demand. This article uses one consistent convention: size VRAM from total parameters; size bandwidth and compute from the activated subset.
2. First principles: how to estimate VRAM, bandwidth, and compute
2.1 Weight footprint: 1.4 TB is only the floor for raw data
2.8 trillion parameters stored at 4-bit gives raw data of:
2.8×10¹² × 4 bit ÷ 8 = 1.4×10¹² B = 1400 GB
The real storage requirement adds three more layers.
Block-level scale factors. 4-bit weights are grouped 32 elements at a time, each with one 8-bit scale factor, so the average bit width per weight becomes 4 + 8/32 = 4.25 bit:
2.8×10¹² × 4.25 ÷ 8 ≈ 1487.5 GB
Non-4-bit tensors and runtime overhead. Embedding layers, normalization parameters, residual branches, unquantized tensors, metadata, alignment padding, communication buffers, and temporary activations together warrant a 12% allowance:
1487.5 × 1.12 ≈ 1666 GB
Capacity accounting. Storage vendors define GB as 10⁹; VRAM is measured in GiB (2³⁰). 1666 GB is roughly 1552 GiB. After conversion it lands close to, but not exactly on, an integer multiple of any card’s nominal capacity — which makes “add up the nameplate capacities until they just cover it” an unreliable capacity-planning method.
Conclusion: a 4-bit full-precision deployment needs about 1.6–1.7 TB of weight storage. This is the shared starting point for all three tiers.
2.2 Activated parameters: 16/896 is an expert-count ratio, not a parameter ratio
The 1.79% activation ratio covers expert count only, which easily leads people to conclude that “each token needs roughly 50B parameters of compute.” To stay safe in budgeting, this article assumes top-16 routing selects 16 distinct experts, i.e. K = 16. If the actual implementation allows repeated routing, hot-expert merging, or load skew that pushes the measured distinct-expert count below 16, you can substitute a measured K_eff once the weights are released; but during procurement and capacity planning, start with K = 16 to leave headroom.
Let the shared parameters (attention, residual branches, embeddings, etc. — touched by every token) total S. Then per-token read volume is:
D_token = (S + K×E) × B
where B is bytes per element: about 0.531 for 4-bit with scale factors, 1 for FP8.
With P = 2.8×10¹², shared_frac = 0.05, E = 2.77×10⁹, K = 16:
- Shared parameters S ≈ 0.05 × P = 140×10⁹
- Activated expert parameters K×E = 16 × 2.77×10⁹ = 44.32×10⁹
- At 4-bit, per-token read ≈ (140+44.32)×10⁹ × 0.531 ÷ 10⁹ ≈ 98 GB
- At FP8, per-token read ≈ (140+44.32)×10⁹ ÷ 10⁹ ≈ 184 GB
Note that 184 GB is the un-amortized FP8 per-token read. Under batched inference, the shared parameters S can be read once per batch rather than once per token, so average per-token reads drop. Tier 3 covers this separately.
2.3 KV cache: MLA shrinks capacity, but read cost still grows with context
MLA caches only the compressed low-rank latent vector plus a few positional-encoding dimensions, not full K and V. Define:
- Number of layers L;
- Cached dimension per token per layer d_c;
- KV element width b_kv — 8 bit, i.e. 1 byte, at FP8;
- Context length ℓ.
Then:
- KV bytes per token: M_kv = L × d_c × b_kv ÷ 8
- One sequence of context length ℓ: M_seq = ℓ × M_kv
- Bandwidth floor for reading historical KV during decode: t_kv ≈ ℓ × L × d_c × b_kv ÷ (8 × ρ)
where ρ is the effective element-to-element bandwidth during decode. After tensor-parallel sharding, with per-card bandwidth ρ_card and tensor parallelism degree N, this can be approximated as:
t_kv ≈ ℓ × L × d_c × b_kv ÷ (8 × N × ρ_card)
Using aggregate bandwidth ρ_agg, it is equivalent to ℓ × M_kv ÷ ρ_agg.
Illustrative numbers (d_c = 72, b_kv = 8, L = 96):
- M_kv ≈ 96 × 72 = 6912 B/token ≈ 6.9 KB/token
- 4K context: about 28 MB per sequence
- 128K context: about 0.88 GB per sequence
- 1M context: about 6.9 GB per sequence
Estimated read times at ρ = 1 TB/s and 2 TB/s:
| Context | KV per sequence | Read floor at 1 TB/s | Read floor at 2 TB/s |
|---|---|---|---|
| 4K | ~28 MB | ~0.03 ms | ~0.015 ms |
| 128K | ~0.88 GB | ~0.88 ms | ~0.44 ms |
| 1M | ~6.9 GB | ~6.9 ms | ~3.5 ms |
Three engineering implications:
- Saving VRAM does not save bandwidth. MLA compresses KV capacity dramatically, but every token still has to traverse the entire KV history for attention. The longer the context, the larger attention’s share of memory traffic.
- Long-context acceptance testing is mandatory — 128K or even 1M. Testing only short 4K contexts tells you nothing about the real decode bottleneck.
- Shared latents can be reused slightly. System prompts can stay resident in cache, but user messages rarely hit. A block size of 128–256 tokens is a reasonable balance between hit rate and VRAM fragmentation.
2.4 Communication: microseconds inside a node, tens of microseconds across nodes
Under expert parallelism, every token at every MoE layer goes through “dispatch → compute → gather.” Inside a node, this can rely on high-speed card-to-card interconnect and a unified memory address space, with a single dispatch typically costing on the order of 10 μs or less. Once experts span beyond the high-bandwidth interconnect domain, a single hop enters the tens-of-microseconds range, with congestion and queuing added on top.
This creates hard constraints:
- Single-stream decode: if per-layer communication overhead is about 0.1 ms, multiplying by L layers gives the communication floor for one token. You need per-layer total overhead down around 0.05 ms for comfortable headroom.
- High concurrency: a single dispatch is roughly b×T×H bytes, where b is batch size, T is distinct experts per token, and H is the hidden dimension. With b=64, T=16, H=7168, in bf16 that is about 14.7 MB — at which point the bottleneck shifts from latency to bandwidth.
All of this ultimately lands on hardware. Before ordering, benchmark decode speed on cards of the same generation and capacity with matching card-to-card interconnect specs, and feed that measured number into the formulas below. It is far more reliable than any theoretical peak.
2.5 The one-page estimator
Variables and units, first:
| Variable | Meaning | Example value |
|---|---|---|
| P | Total parameter count | 2.8e12 |
| L | Number of layers | 96 |
| H | Hidden dimension | 7168 |
| d_c | KV cache dimension per token per layer | 72 |
| E | Parameters per expert | 2.77e9 |
| K_eff | Distinct experts per token (budget with 16) | 16 |
| bits | Average weight bit width (4.25 for 4-bit with scale) | 4.25 |
| kv_bytes | Bytes per KV element (1 for FP8) | 1 |
| card_bw_tbs | Measured per-card decode bandwidth, TB/s | 3.35 |
# Estimation basis: GB = 10^9 bytes, GiB = 2^30 bytes; replace card_bw_tbs with a measured valueSPEC = dict(P=2.8e12, L=96, H=7168, d_c=72,E=2.77e9, K_eff=16, shared_frac=0.05,bits=4.25, kv_bytes=1) # kv_bytes: FP8 = 1def plan(spec=SPEC, batch=1, ctx=4096, card_gib=192, n_card=16):w_gb = spec["P"] * spec["bits"] / 8 / 1e9 * 1.12b_tok = (spec["shared_frac"] * spec["P"] + spec["K_eff"] * spec["E"]) \* spec["bits"] / 8 / 1e9kv_gb = spec["L"] * spec["d_c"] * spec["kv_bytes"] / 1e9act_gb = batch * (b_tok + ctx * kv_gb)cap_gb = n_card * card_gib * (2**30 / 1e9)bw_eff = card_bw_tbs(n_card) * 0.3 # effective decode bandwidth, 30% rule of thumbtps_bw = bw_eff * 1000 / (b_tok + ctx * kv_gb)print(f"weights {w_gb:.0f}GB | act+KV {act_gb:.0f}GB | total {w_gb+act_gb:.0f}GB "f"/ VRAM {cap_gb:.0f}GB | bandwidth ceiling ~{tps_bw:.1f} tps")return w_gb + act_gb, tps_bw# placeholderdef card_bw_tbs(n): return n * 3.35plan() # sample output: weights 1666GB | act+KV 98GB | total 1764GB / VRAM 3298GB | bandwidth ceiling ~164 tps
To repeat: the tps_bw in this example is a bandwidth ceiling, not a measured single-stream speed. Real single-stream speed must also account for per-card, per-layer fixed overhead, expert routing communication, attention kernels, and scheduling overhead.
3. Feasibility boundaries of the three tiers
3.1 Tier 1: good enough to run, the price is speed
The core constraint is memory capacity. 4-bit weights are about 1.5 TB, while mainstream single-machine GPU memory tops out at a few hundred GB — only a large-memory server can hold them. Configuration points:
- A dual-socket server with all memory channels populated, providing 2–2.5 TB of usable RAM;
- NVMe used only for weight storage, not for real-time inference;
- Compute on CPU, or CPU plus a small number of accelerators in hybrid mode.
Speed ceiling, roughly calculated:
- Per-token read D_token ≈ 98 GB;
- A 2 TB-class memory subsystem delivers roughly 100–250 GB/s of effective bandwidth;
- Single stream: about 1–2.6 tps.
This suits quality validation and offline evaluation, where interactive experience does not matter. The cost is that long conversations are essentially impossible: prefill for a 10K-token context reads all experts sequentially per token, taking hours.
Three ways to speed it up, each with a tradeoff:
- Switch to a narrower format: VRAM pressure drops, quality drops with it — which conflicts with a “full precision” requirement;
- Sparsification: load only the currently needed experts at the inference-framework level, pushing memory demand toward D_token, but expert swap-in/swap-out introduces significant latency jitter. The benefit is obvious when memory is abundant and shrinks sharply as you approach saturation;
- Hybrid execution: CPU handles only the expert portion while attention and other shared compute run on accelerators. This improves speed, but PCIe transfer becomes the new bottleneck, and data must pass through pinned memory and be moved via DMA.
Whether hybrid execution actually helps depends on whether “expert read time” or “PCIe transfer time” dominates — and PCIe effective bandwidth is typically on the order of one tenth of memory bandwidth. Before going live, benchmark both modes side by side. Do not choose on intuition.
Cost breakdown:
| Item | Order-of-magnitude note |
|---|---|
| Whole-machine purchase | RMB 100K–150K, with 2 TB-class memory the dominant cost |
| Power | ~2 kW for the machine; at roughly RMB 10K per kW per year for datacenter space, about RMB 20K/year |
| 3-year TCO | About RMB 150K–200K, or under RMB 10 per machine-hour |
If the requirement is only occasional quality checks, renting a large-memory cloud instance on demand is usually more flexible.
3.2 Tier 2: 25 tps for a single user
Start with the bandwidth ceiling for 4-bit decode. Let the accelerator aggregate HBM bandwidth be B_HBM and the effective decode efficiency be η. Then the bandwidth ceiling is:
tps ≤ η × B_HBM ÷ D_token
Plugging in D_token ≈ 98 GB:
| Configuration | B_HBM | Effective bandwidth at η=0.2 | Effective bandwidth at η=0.3 | Bandwidth ceiling |
|---|---|---|---|---|
| 8-card class | ~27 TB/s | 5.4 TB/s | 8.1 TB/s | 55–83 tps |
| 16-card class | ~54 TB/s | 10.8 TB/s | 16.1 TB/s | 110–164 tps |
| 32-card class | ~107 TB/s | 21.4 TB/s | 32.1 TB/s | 218–328 tps |
But single-stream decode is not bandwidth alone. 25 tps means a budget of just 40 ms per token. Per-token time is approximately:
t_token ≈ D_token ÷ (η × B_HBM) + L × t_layer
where t_layer is the sum of fixed overhead, communication, and GEMV time for a single MoE layer.
For 16 cards:
- At η=0.3, D_token÷(ηB) ≈ 98 GB ÷ 16.1 TB/s ≈ 6.1 ms;
- If t_layer = 0.30 ms, then L × t_layer = 28.8 ms, totaling about 34.9 ms — a theoretical ceiling of about 28.6 tps;
- If t_layer = 0.35 ms, the total is about 39.7 ms — about 25.2 tps;
- If t_layer = 0.40 ms, the total is about 44.5 ms — about 22.5 tps.
So 16 cards need per-layer total overhead pushed under roughly 0.35 ms to hold 25 tps steadily. If measured per-layer overhead exceeds 0.4 ms, adding cards will not necessarily improve things linearly, because more cards spread each token across more of them and fixed overhead goes up rather than down.
VRAM sets the configuration floor:
- 1.6–1.7 TB of weights;
- Single-stream activations plus KV are about 0.1 TB at a 4K context, more at long contexts;
- 16 cards at 192 GB each is about 3.3 TB, enough to cover the weights with runtime headroom.
Parallelism and interconnect:
- Tensor parallelism: shard attention projections and shared parameters;
- Expert parallelism: distribute the 896 experts evenly across the 16 cards per layer;
- Pipeline parallelism: at single machine, single stream, and low concurrency, it easily produces bubbles, and inter-stage communication boundaries add scheduling complexity — use it cautiously; consider it only with enough microbatches and stable load;
- Interconnect requirements: all TP and EP communication should stay inside one high-bandwidth interconnect domain, where any card can reach any other card in one hop with high bandwidth and low latency. Cross-node links should use a lossless network with matched bandwidth to carry data-parallel traffic.
Sample key configuration:
world_size: 16kv_cache_dtype: fp8max_model_len: 32768tensor_parallel_size: 8expert_parallel_size: 16pipeline_parallel_size: 1enable_chunked_prefill: falsemax_num_seqs: 1speculative:enabled: falseall_reduce_backend: high_bwidth_intra_nodemetrics: [tpot_p50, tpot_p99, ttft_p95]
| Item | Tier 1 | Tier 2 | Tier 3 |
|---|---|---|---|
| Per-token read | ≈98 GB | ≈98 GB | ~46 GB after FP8 amortization at batch=64 |
| KV (128K per sequence) | ≈0.88 GB | ≈0.88 GB | 10× ≈ 8.8 GB |
| Weight quantization | 4-bit | 4-bit | Mostly FP8 |
| Accelerator VRAM | Optional | 16 × 192 GB | 32 × 192 GB |
| Card-to-card interconnect | Not needed | Full interconnect inside a high-bandwidth domain | Full interconnect inside a high-bandwidth domain |
| Bottleneck | Memory capacity | Per-card, per-layer overhead | Aggregate bandwidth + attention |
Cost:
- One-time purchase: about RMB 1.5M;
- Whole-machine power: about 9 kW, roughly RMB 90K/year in electricity;
- 3-year TCO: about RMB 1.9M–2.1M;
- About RMB 70–80 per machine-hour.
3.3 Tier 3: 10 concurrent users, 25 tps each, no lower than FP8
The conclusion first: what matters in this tier is not the concurrency count but FP8 and the throughput accounting.
VRAM. FP8 weights are about 2.8 TB; with 10%–15% overhead that is roughly 3.1–3.2 TB. Thirty-two 192 GB-class cards provide about 6 TB, so utilization is around 55%. With batch activations and KV added, aim to keep peaks under 85%.
Recomputing bandwidth and throughput. Thirty-two cards give about 107 TB/s aggregate; at a decode efficiency of 0.3 that is roughly 32 TB/s effective. In FP8:
- Shared parameters S ≈ 140 GB, read once per batch;
- Per-token expert parameters K×E ≈ 44.3 GB;
- Average per-token read = S/batch + K×E + context KV.
With batch=64 and a 4K context:
- S/batch = 140/64 ≈ 2.2 GB;
- Context KV ≈ 28 MB, negligible;
- Average per-token read ≈ 2.2 + 44.3 + 0.03 ≈ 46.5 GB;
- Whole-machine aggregate throughput ≈ 32,000 GB/s ÷ 46.5 GB/token ≈ 688 tps;
- About 69 tps per user across 10 users.
At batch=100, average per-token read ≈ 1.4 + 44.3 = 45.7 GB, for aggregate throughput around 700 tps. If decode efficiency drops to 0.25, effective bandwidth is about 26.8 TB/s and aggregate throughput about 577 tps — roughly 58 tps per user across 10 users. To reliably meet 10×25 = 250 tps, the required effective bandwidth is about 250 × 46.5 = 11.6 TB/s, only about 11% of the 32-card peak. Therefore, as long as decode efficiency stays above 11%, 10 concurrent users at 25 tps each is achievable bandwidth-wise under FP8; what actually needs defending is p99 latency, long context, and expert load skew.
Long-context correction. At a 128K context, one user’s KV is about 0.88 GB, so 10 concurrent users need about 8.8 GB; at batch=64, if all contexts are 128K, each step reads about 56 GB of KV for the whole machine, which works out to about 0.88 GB added per token — still less than the expert parameter reads, but it raises attention kernel overhead noticeably. At a 1M context, per-token reads grow by about 6.9 GB, which must be stress-tested separately.
Prefill estimate. Each token needs roughly 2×(S+K×E) ≈ 368 GFLOP, plus attention and communication losses. If 32-card bf16 effective compute is 0.5–1.5 PFLOPS, a 4K prompt takes on the order of seconds and a 128K prompt on the order of minutes. In practice, add expert-parallel synchronization, quantize/dequantize operations, scheduling, and chunked-prefill overhead.
Two levers for long context:
- Prefix caching: traffic sharing the same system prompt can hit completely;
- MLA latent reuse: this requires aligned paging boundaries and strict prefix matching. Once differing content appears mid-sequence, the entire cache chain is invalidated.
Interconnect and lossless networking.
- Inference traffic: all TP and EP communication should complete within card-to-card high-speed interconnect; cross-node paths need matched bandwidth and lossless queues;
- Load balancing across replicas: use least-connections, or policies based on queue depth and KV utilization, so long requests do not pile up and push p99 higher.
Resource isolation. At a 64-concurrency scale, use containers to bind and isolate GPUs, NUMA, NICs, and storage so instances do not contend with each other; also wire in log collection and monitoring/alerting, with thresholds on TTFT, TPOT p99, and KV utilization.
Cost and procurement assumptions. Tier 3 hardware, estimated on these assumptions:
- 32 accelerators at roughly RMB 50K–60K per card;
- High-bandwidth networking, switches, lossless queues, storage, and management nodes: about RMB 1M–1.5M;
- Installation and tuning, racks, and power distribution upgrades: about RMB 300K–500K;
- Electricity at roughly RMB 10K per kW per year; about 22 kW for the whole machine, so about RMB 220K/year;
- Operations staff, spares, and expansion risk are not fully included in the 3-year TCO, so the real budget should be higher.
| Item | Tier 2 | Tier 3 |
|---|---|---|
| Hardware makeup | 16-card whole machine + high-speed interconnect | 32-card high-bandwidth interconnect domain + storage + lossless network + management nodes |
| One-time purchase | ~RMB 1.5M | RMB 4M–5M |
| Whole-machine power | ~9 kW | ~22 kW |
| Datacenter annual cost | ~RMB 90K | ~RMB 220K |
| 3-year TCO, excluding ops headcount | ~RMB 1.9M–2.1M | ~RMB 4.8M–5.4M |
| Cost per machine-hour, 7×24 | ~RMB 70–80 | ~RMB 180–205 |
Utilization sensitivity. Self-hosted cost is amortized as “whole-machine lifetime cost × 7×24 ÷ actual service hours,” so the more idle time, the higher the unit cost. Using a RMB 5M 3-year TCO:
| Monthly service hours | 3-year total service hours | Self-hosted cost per hour | Recommendation |
|---|---|---|---|
| 180 h | 6,480 h | ~RMB 770 | Prefer renting |
| 360 h | 12,960 h | ~RMB 385 | Compare against renting |
| 540 h | 19,440 h | ~RMB 257 | Compare against renting |
| 720 h | 25,920 h | ~RMB 193 | Continuous service favors self-hosting |
This is a static comparison, and it still does not count ops headcount, expansion lead time, or depreciation risk from technology turnover on the self-hosted side. Even after utilization decides build-vs-rent, one thing does not change: validate the “long context + concurrency” acceptance criteria before opening the service, otherwise the cards you bought may sit idle for a large share of their life.
4. From estimates to acceptance: turning numbers into reproducible tests
Acceptance test cases. Both tiers, item by item:
| Metric | Tier 2 | Tier 3 |
|---|---|---|
| Interactive latency | TTFT p95 ≤ 3 s; TPOT p95 ≤ 40 ms, covering 4K/32K/128K | TTFT p95 ≤ 3 s; TPOT p95 ≤ 40 ms, p99 ≤ 50 ms |
| Whole-machine throughput | Single stream ≥25 tps, with no marked drop as context grows | Sustained ≥250 tps at 10 concurrent users, FP8, quality compared against the non-quantized version |
| VRAM | Peak usage ≤80% | Peak usage ≤85%, with no fragmentation growth during long soak tests |
| Stability | 72 h repeated runs, zero errors | 72 h repeated runs, zero errors |
| Scalability | — | Still meets TPOT p99 ≤ 50 ms at 32 concurrent users, with linear extrapolation |
Two common load-testing mistakes:
- Testing only short 4K contexts: this hides attention and KV read costs at long context;
- Looking only at averages: when p99 fails, the user experience is determined by the worst batch of requests.
Sample commands:
# Tier 2: run one round each at 4K/32K/128K and watch how TPOT changes with contextbenchmark_serving --model <model-name> --host 127.0.0.1 --port 8000 \--dataset-name random --random-input-len 4096 --random-output-len 512 \--num-prompts 64 --max-concurrency 1 --percentile-metrics ttft,tpot,itl,e2el# Tier 3: 10-concurrency baseline, then step up to 32 concurrent usersbenchmark_serving --model <model-name> --host 127.0.0.1 --port 8000 \--dataset-name random --random-input-len 32768 --random-output-len 512 \--num-prompts 512 --max-concurrency 10 --percentile-metrics ttft,tpot,itl,e2el
# Example: compare TTFT/TPOT curves across concurrency levels and context lengths for the same modeldef sweep(base_url, model, concurrencies=(1, 10, 32), ctxs=(4096, 32768, 128000)):rows = []for ctx in ctxs:for c in concurrencies:r = bench(base_url, model, input_len=ctx, output_len=512, concurrency=c)rows.append(dict(ctx=ctx, c=c, ttft_p95=r.ttft_p95,tpot_p95=r.tpot_p95, tput=r.output_tps))return rows# placeholderdef bench(base_url, model, input_len, output_len, concurrency): ...
Three conditions, all simultaneously true, tell you whether a tier meets the requirement:
- VRAM usage computed from that tier’s quantization and context stays under 80%–85% at peak;
- TTFT p95 and TPOT p95 (or p99) hit their targets;
- A 72-hour soak test produces no errors and no memory growth.
5. Common pitfalls to self-check
- Estimating VRAM from the expert activation ratio: size VRAM from total parameters; the activation ratio affects only compute and communication.
- Treating 1.79% as a parameter ratio: 1.79% is an expert-count ratio; during budgeting, compute parameter reads with top-16, i.e. K = 16.
- Looking only at GPU nameplate numbers: storage GB and memory GiB use different conventions, and non-4-bit tensors, alignment, and runtime overhead add another 10%–15%.
- Believing “low activation ratio means fast”: in single-stream decode, unactivated cards barely read weights at all; it is per-card, per-layer fixed overhead multiplied by L layers that sets the speed ceiling.
- Acceptance testing with short contexts: MLA reduces KV capacity but does not eliminate attention bandwidth; at long context, attention read cost grows as ℓ × L × d_c × b_kv ÷ ρ.
- Ignoring expert load skew: the card hosting a few hot experts exhausts bandwidth first and becomes the weak link in the chain; long soak tests should watch p99 and per-card bandwidth utilization spread.
- Treating a draft model as standard equipment: a draft expert multiplies per-step expert reads; decide with an A/B measurement rather than by default.
- Watching only the GPUs: inter-batch token communication already reaches the tens-of-MB range, so cross-node bandwidth and congestion control affect p99 just as much.
- Ignoring the security boundary: a service without authentication by default must not be exposed to the public internet; add authentication, rate limiting, logging and monitoring alerts, and disable debug ports.
6. Conclusion: the verification checklist once weights are released
- Confirm the number of layers, hidden dimension, expert count, distinct experts per token K_l, KV latent dimension, and quantization granularity;
- Confirm the share and precision of non-4-bit tensors;
- Record the reproduction environment: inference framework version, CUDA/driver version, quantization tool version, benchmark script version;
- Replace the illustrative values here with the hardware vendor’s stated VRAM, aggregate bandwidth, interconnect topology, and typical power draw;
- Run one 72-hour soak test per tier, recording TTFT, TPOT, whole-machine throughput, and per-card bandwidth utilization;
- Compare quantized and non-quantized versions for quality and confirm the accuracy loss falls within what the business can accept.
Summary: the local deployment cost of a trillion-parameter MoE model does not depend on “can it run” but on how fast it runs and how many people use it. Size VRAM from total parameters, bandwidth from activated parameters, and speed from the slowest card — three principles that run through all three tiers:
- RMB 100K–200K buys you validation capability;
- ~RMB 2M buys you a smooth single-user experience;
- ~RMB 5M buys you full FP8 service for 10 concurrent users.
Once the weights are open, run the estimator and acceptance criteria above item by item, and “estimate” becomes something you can commit to.
