A Complete Technical Breakdown of Ultra-Scale MoE Models
This article breaks down the architecture and engineering practices behind an ultra-scale sparse Mixture-of-Experts (MoE) model with roughly 744B total parameters and about 40B activated per inference. It explains why total and activated parameters must be evaluated separately, the engineering implications of MoE routing, the role of mid-training in the data mix, how to interpret benchmark scores, and how to plan memory and compute for deployment.
1. Why Total Parameters and Activated Parameters Must Be Viewed Separately
The first concept to establish when reading any ultra-scale model technical report is that parameter count is no longer a single number. Take the model covered here as an example: about 744B total parameters, roughly 40B activated per inference, 256 experts, and 80 layers. These numbers indicate a sparse Mixture-of-Experts (MoE) architecture, where model capacity is decoupled from the compute used in a single forward pass.
This decoupling has two direct consequences. First, memory usage is determined by the total parameter count, because all expert weights must stay resident. Second, compute and latency are closer to the activated parameter count. Many teams look only at activated parameters during evaluation and then get blocked by memory at deployment time, which is the most common planning mistake.
Compared with the previous generation (355B total, 32B activated), this generation doubles the total parameters and increases activated parameters by about 25%. The training corpus grows from 23T tokens to 28.5T tokens (about 27T for pre-training and about 1.5T for mid-training). The scaling advances capacity, compute, and data together rather than stacking a single dimension.
2. Engineering Implications of the MoE Architecture
At the core of MoE is a routing network that selects a few experts to participate in computation for each token. Three things matter most in engineering:
- Routing balance: If a large number of tokens concentrate on a few experts, load skew appears and training throughput drops. A common approach is to add an auxiliary load-balancing loss and a capacity limit.
- Communication overhead: When experts are placed on different devices, tokens must be rearranged across devices, and collective communication can become the bottleneck.
- Inference cache: Keeping all expert weights resident means the memory budget must be estimated from the total parameter count.
The routing logic can be abstracted schematically as:
# Pseudocode: a general idea of routing and weighted aggregation onlylogits = router(x) # [tokens, num_experts]topk_idx, topk_w = topk_softmax(logits, k=2)y = 0for slot in range(k):expert_out = experts[topk_idx[:, slot]](x)y = y + topk_w[:, slot].unsqueeze(-1) * expert_out
3. Training Data Mix and the Role of Mid-Training
Distinguishing pre-training from mid-training within the 28.5T tokens reflects a mature practice: the main corpus provides breadth and language modeling ability, while the smaller, higher-quality, more domain-focused mid-training stage strengthens reasoning, code, and instruction following. Data mixing, deduplication, and quality filtering strategies often affect final performance more than simply increasing the token count.
4. How to Interpret Benchmark Scores Correctly
A third-party independent evaluation aggregate index gives a score of 50 and ranks first among open-source models. The value of such information lies in horizontal comparability, but three cautions apply. First, an aggregate index is a weighted combination of multiple benchmarks, and changing the weights changes the ranking. Second, scores are strongly tied to a specific task distribution and should be re-validated against your own scenarios. Third, the inference configuration (precision, context length, decoding parameters) should be recorded alongside the score, or reproducibility is poor.
A recommended evaluation workflow: fix a set of real business samples, define four metric categories (accuracy, format compliance rate, latency, and unit cost), and compare horizontally under the same hardware and the same decoding configuration.
5. Deployment and Compute Planning
When deploying this kind of model in your own environment or on the cloud, a general capability combination can be referenced: use a container platform to host inference services and elastic scaling, object storage to hold weights and datasets, and logging plus monitoring and alerting to track throughput, time to first token, and memory usage.
A rough lower bound can be used to judge feasibility for memory estimation:
Weight memory ≈ total parameters × bytes per parameterExample: 744B × 2 bytes ≈ 1.5 TB (excluding KV Cache and framework overhead)
If a single device’s capacity is insufficient, a combination of tensor parallelism, expert parallelism, and pipeline parallelism is needed, with space reserved for the KV Cache. The longer the context and the higher the concurrency, the larger the KV Cache share.
6. Conclusion
The core message of this technical report can be condensed into one sentence: sparsification lets a model gain larger capacity at a controllable inference cost. Practical advice for developers: look at both total and activated parameters during evaluation, focus on routing balance and data mix on the training side, fix the configuration for reproducible comparisons on the evaluation side, and budget memory from the total parameter count on the deployment side. Baidu AI Cloud’s general cloud products can serve as one infrastructure option for hosting such workloads.
