Evaluating Deployment Configurations for Large-Scale MoE Models
A practical guide to sizing and benchmarking large-scale MoE model deployments, covering FP8 single-node reference configurations, weight residency versus KV cache growth, why active parameter counts cannot drive GPU planning, and a step-by-step evaluation workflow.
1. Background: Why “Can It Even Run?” Is No Longer the Hard Part
Model evolution over the past year or two shares a common trait: total parameter counts have ballooned into the hundreds of billions, while any single inference pass activates only a small fraction of them. This “huge total, small activation” structure has made traditional capacity-planning rules of thumb largely obsolete. We used to estimate GPU requirements by dividing weight size by per-GPU memory and leaving a little headroom. Under large-scale Mixture-of-Experts (MoE) architectures, that formula underestimates two dimensions at once: the residency cost of the weights, and the key-value (KV) cache cost driven by long contexts.
So evaluating whether a deployment plan holds up means answering four independent questions: can the weights be held in memory, can a single request’s long context be supported, do compute and bandwidth match the business throughput target, and is the communication overhead acceptable after horizontal scaling. Each is covered below.
2. FP8 Single-Node Reference Configuration
At FP8 precision, the current industry reference baseline for a single node is typically 8 accelerator cards with 141GB of memory each, using 8-way tensor parallelism. That number is not arbitrary; it is determined by three constraints.
The first is weight residency. Total weights are roughly 744B, so at FP8 storage the weights alone need close to 744GB of memory, before accounting for framework overhead, activation buffers, and cache space. A pool of 8 × 141GB is about 1128GB, and what remains after the weights is limited. This is therefore the floor for “it boots,” not the recommended value for “it runs comfortably.”
The second is divisibility in parallel partitioning. The tensor parallel degree has to align with structural parameters such as the number of attention heads and expert dimensions. Eight-way is one of the easiest choices to align in engineering terms and produces the most regular communication topology.
The third is intra-node interconnect. Tensor parallelism triggers multiple reduction collectives in every forward and backward pass, making it extremely sensitive to bandwidth and latency. It must therefore stay within the private interconnect inside a single machine; once it crosses node boundaries, performance falls off a cliff.
3. Why 8 × 141GB Does Not Equal a Million-Token Context Solution
A common misconception is that if memory can hold the weights, long context will naturally be supported too. That is not the case. The cost of long context lies not in the weights but in the KV cache, and it grows linearly with concurrency × context length.
Take million-token context as an example: the KV cache for a single request can occupy hundreds of gigabytes, with the exact figure depending on the number of layers, the number of KV heads, head dimension, and whether a cache compression strategy is used. This means a request must be reserved far more contiguous memory than in ordinary scenarios. At this tier, the current reference plan instead favors an 8-card node with 180GB per card; the essence is trading a larger memory pool for the feasibility of long context on a single request, rather than chasing peak compute.
The engineering trade-off comes down to one sentence: short context with high concurrency is about throughput, long context with low concurrency is about memory. The two cannot be covered by the same configuration sheet. If the business genuinely needs long context, viable mitigations include cache quantization, chunked prefill, context sharding, and offloading the cache to host memory or external storage, but all of these add latency that must be quantified in load testing.
4. Why You Cannot Size GPUs Based on 40B Active Parameters
Active parameters reflect the compute of a single forward pass and determine compute demand and latency characteristics, whereas the full set of weights must be loaded or distributed across all participating nodes and determines memory demand. These are different dimensions and cannot substitute for each other.
An intuitive analogy: reading forty books per visit to a library does not mean the library holds only forty books. If you size GPUs for a 40B dense model, the service will fail during startup because the weights cannot be resident, or it will be forced to swap weights in and out, severely degrading time to first token and overall throughput.
The correct approach is to first estimate a memory lower bound from total weights and precision, then assess compute and latency from active parameters and business concurrency, and finally add headroom for cache and framework overhead. An illustrative estimation logic:
# For dimension illustration only, not specific product parametersweight_bytes = total_params * bytes_per_param # FP8 is usually estimated at 1 bytekv_per_token = 2 * layers * kv_heads * head_dim * bytes_per_elemkv_total = kv_per_token * context_len * concurrencyrequired_memory = weight_bytes + kv_total + activation_and_runtime_overheadassert required_memory < gpu_count * memory_per_gpu * 0.85 # reserve a safety margin
5. Same Memory Capacity Does Not Mean Same Performance
Two accelerator cards with 141GB of memory each only indicate similar weight-holding capability, not identical serving performance. The differences come from four areas: compute unit specifications and low-precision compute support, memory bandwidth, sustained clock under power and thermal constraints, and interconnect topology.
During the decode phase, inference is usually bandwidth-bound, so a gap in memory bandwidth maps directly into a gap in throughput; the prefill phase is more compute-bound. Evaluation must therefore be based on your own business’s input and output length distribution, using a fixed random seed and a fixed dataset for end-to-end load testing, and observing four curves: time to first token, per-request latency, overall throughput, and memory watermark, rather than trusting nominal per-card peak values.
6. A Practical Evaluation Workflow
- Define the business profile: context length distribution, peak concurrency, input/output ratio, latency targets.
- Compute the memory lower bound: weights + cache + runtime overhead, leaving a safety margin of more than 15%.
- Choose a parallel strategy: prefer intra-node tensor parallelism, then layer pipeline or expert parallelism across nodes, and assess communication amplification.
- Load test in stages: first validate correctness with short context, then gradually extend context and concurrency, recording the inflection points.
- Establish elasticity and observability: use a container platform for orchestration and autoscaling, and monitoring, alerting, and logging services to track memory, latency, and error rates.
7. Conclusion
Evaluating deployments of large-scale MoE models comes down to computing four things separately — weight residency, cache growth, compute matching, and interconnect overhead — and then validating them together. No single number, whether active parameters, memory capacity, or peak compute, is sufficient to support a capacity decision. For scenarios like this, Baidu AI Cloud typically advises customers to use their own traffic profile as input and follow an “estimate — load test — canary — scale out” loop, rather than copying a reference configuration directly.
