Deep Dive into a Large-Scale MoE Model Technical Report: Architecture, Training, and Deployment

    This article breaks down a large-scale Mixture-of-Experts (MoE) model technical report, covering its 744B total parameters with 40B activated per inference, 28.5T training tokens, and three key architectural changes: multiplicative low-rank attention (MLA) paired with a head-split Muon optimizer, multi-token prediction (MTP), and sparse attention (DSA). It also outlines practical guidance for resource planning, service architecture, inference optimization, and evaluation, showing how sparse scaling and structural tuning close the gap with closed-source models.

    1. Background: The Open- and Closed-Source Capability Gap Is Closing Fast

    A public statement from an industry evaluation organization is worth noting: a closed-source flagship model is still regarded as the “most intelligent” option, but its lead over the top-ranked open-source model has narrowed significantly. Around the same time, an investment firm described a new-generation model from a Chinese team as “the best open-source model.”

    The informative part of that statement is not the word “best” but the trend judgment of a “closing gap.” For developers and enterprises making technology selections, this leads to a practical conclusion: in most general and vertical scenarios, open-weight models that can be self-deployed are now a realistic alternative to closed-source APIs. The key selection variables have shifted from “can we use it” to “deployment cost, inference throughput, and compliance control.”

    On public leaderboards, the model scores 50 on a composite intelligence index evaluation, ranking first among open-source models. It also ranks first among open-source models in two arena-style human-preference evaluations (general text and code), placing it in the same tier as the leading overseas closed-source models. A caveat: leaderboard scores only reflect relative position under a specific question distribution, so production adoption still requires secondary validation on your own business datasets.

    2. Fundamentals: Parameter Scale and Data Mix

    The model uses a Mixture-of-Experts (MoE) architecture. The core idea is to activate only a subset of parameters during inference, trading total capacity for quality and sparse activation for cost. Key figures:

    • 744B total parameters, 40B activated per inference, 256 experts, 80 layers;
    • The previous generation had 355B total and 32B activated; this generation doubles total capacity and increases activation by about 25%;
    • Pre-training corpus grows from 23T tokens to 28.5T tokens, with roughly 27T for pre-training and 1.5T for mid-training.

    Two engineering implications stand out. First, doubling total parameters while only modestly increasing activated parameters means the scaling happens mainly in “knowledge capacity” rather than “compute per token,” deliberately holding down unit inference cost. Second, carving out 1.5T tokens for mid-training usually corresponds to high-quality corpus annealing, long-context, and reasoning-capability strengthening stages, a common source of quality jumps.

    3. Architecture Change 1: Joint Adaptation of Attention and Optimizer

    The model uses multiplicative low-rank attention (MLA), the same family as mainstream low-rank compression schemes, reducing memory footprint by compressing the key-value cache dimension, which is more advantageous than traditional multi-head approaches for long-text scenarios.

    However, the team found a counterintuitive result during training: combining an orthogonalization-style optimizer designed for matrix parameters (Muon) with MLA actually underperformed a structurally simpler grouped-query attention (GQA, 8 groups) baseline. The root cause is typically that an optimizer’s update geometry is strongly tied to the shape and scale of parameter blocks, while MLA’s low-rank compression changes the semantics and condition number of the projection matrices, making whole-block orthogonalization no longer the optimal update direction.

    The team’s fix is “head splitting” (Muon Split): instead of applying uniform orthogonalization to the whole projection matrix, orthogonalize each attention head separately. Illustrative logic:

    1. # Pseudocode: whole-block orthogonalization vs. head-split orthogonalization
    2. def muon_update(grad, lr):
    3. return lr * orthogonalize(grad) # uniform orthogonalization
    4. def muon_update_split(grad, lr, num_heads):
    5. heads = grad.view(num_heads, -1) # split by attention head
    6. upd = [orthogonalize(h) for h in heads] # orthogonalize each head independently
    7. return lr * torch.cat(upd).view_as(grad)

    Engineering takeaway: when a model structure and an optimizer do not get along, check parameter block granularity first rather than rushing to swap the optimizer or fall back to a clunkier structure.

    4. Architecture Change 2: Multi-Token Prediction

    Multi-token prediction (MTP) has the model predict tokens at multiple future positions at once during training, providing a denser supervision signal for representation learning. During inference, its prediction heads can be reused for self-speculative decoding, where the model drafts and then verifies its own output, reducing decoding steps.

    Three implementation points: first, decouple training and inference, where MTP heads only provide an auxiliary loss during training and are optionally enabled at inference; second, the draft acceptance rate sets the upper bound on gains, and a low acceptance rate can add overhead instead, so it must be measured against your business distribution; third, it interacts with batching strategy, with more obvious gains in small-batch, low-latency scenarios.

    5. Architecture Change 3: Sparse Attention

    The third change is sparse attention (DSA) for long contexts. The principle is to keep global information reachable while letting each query interact with only a subset of key-values, compressing attention complexity from quadratic to near-linear. Common approaches include block-wise local windows, importance-score-based selection, and hierarchical summarization.

    The cost is higher implementation complexity and operator adaptation effort: sparse patterns often cannot directly reuse general dense operators, requiring custom kernels and numerical stability across various sequence lengths and batch sizes. Evaluation should look at both long-text recall tasks and first-token latency, avoiding optimization of a single metric.

    6. Deployment Recommendations

    1. Start with resource accounting: 744B weights require multiple GPUs and nodes even at low precision, the 40B activation determines the compute budget, and memory and bandwidth usually become bottlenecks before compute.
    2. Assemble the service layer from general capabilities: a container platform hosts inference instances, object storage holds weights and datasets, a message queue smooths request peaks, and logging plus monitoring and alerting cover throughput, latency, and error rates.
    3. Prioritize inference optimization by payoff: quantization and operator fusion first, then self-speculative decoding, then tuning sparse attention parameters.
    4. Make evaluation regression routine: treat general leaderboards as a reference baseline, use business datasets as an admission gate, and fix versions and random seeds to ensure comparability.

    7. Conclusion

    The core methodology of this technical report is not mysterious: use sparse scaling for quality, use structural tweaks to adapt the optimizer, use multi-token prediction to improve sample efficiency, and use sparse attention to make long contexts feasible. For development teams, the reusable part is the iteration rhythm of “locate the bottleneck first, make the minimal change, then validate with data.” To train and serve this class of model, you can build an elastic platform on general capabilities such as containers, storage, logging, and monitoring from Baidu AI Cloud, keeping your focus on the model and the business itself.