A Full Breakdown of a Large-Scale MoE Model Technical Report

    This article walks through a roughly forty-page technical report for an open-source foundation model built on a Mixture-of-Experts (MoE) architecture, focusing on the engineering trade-offs behind its design rather than its benchmark ranking. It covers the separation of total parameters (744B) from activated parameters (40B), 256 experts, 80 layers, and about 28.5T training tokens, then examines three architectural choices: low-rank compressed attention and the granularity mismatch with orthogonalized momentum optimizers, multi-token prediction for denser training signals, and optional sparse attention for long-context cost. It closes with practical guidance on model selection, deployment, fine-tuning, and running workloads on Baidu AI Cloud.

    1. Why a Technical Report Is Worth Reading Page by Page

    The value of a complete technical report lies not in its leaderboard position, but in how clearly it documents the trade-offs among quality, cost, and engineering constraints. An open-source foundation model recently released its full technical documentation, running about forty pages. A third-party evaluation leaderboard accompanying the release shows a composite intelligence index of 50, the highest in the open-source camp and roughly on par with leading overseas closed-source models; it also ranks first among open-source models on two public human-preference arenas. Those numbers are only the entry point. What carries real engineering value is that the report lays out a core tension: 744B total parameters, only 40B activated per inference pass, 256 experts, 80 layers, and a pretraining corpus of roughly 28.5T tokens (about 27T for pretraining and 1.5T for mid-training). Compared with the previous generation’s 355B total parameters, 32B activated parameters, and 23T tokens, this is a route choice of “doubling capacity with only moderate growth in activation.”

    The direct implication for developers: compute cost per token has not risen linearly with model capability, but memory and bandwidth pressure have risen sharply. Understanding this is the prerequisite for every architectural decision that follows.

    2. Fundamentals: Separated Expansion of Capacity and Activation

    The essence of Mixture-of-Experts (MoE) is decoupling parameter capacity from computation. Attention and shared components apply to every token, while the routing network selects only a few experts to participate in computation. Total parameters therefore determine knowledge capacity, and activated parameters determine inference cost.

    1. Total parameters 744B -- determines memory footprint and knowledge capacity
    2. Activated parameters 40B -- determines FLOPs per token
    3. Expert count 256 -- determines routing granularity and load-balancing difficulty
    4. Layer count 80 -- determines representation depth and pipeline partitioning

    This design creates two engineering problems that must be planned for in advance. The first is memory: all expert weights must either stay resident or be swapped in quickly, which requires sufficient aggregate bandwidth on the inference side. The second is load balancing: the finer the experts are split, the more easily a hotspot expert can slow down an entire batch of requests. Training typically needs an auxiliary balancing loss, while inference must account for communication overhead under expert parallelism. In practice, a sizable share of the gains from increased capacity is often consumed by whether routing is even.

    3. Architectural Change One: Low-Rank Compressed Attention vs. Optimizer Orthogonalization Granularity

    The design uses low-rank compressed attention, projecting the key-value cache into a lower-dimensional latent space to shrink the cache. This is the same line of thinking as mainstream long-context cost reduction, and its advantage is a significant drop in cache usage for long sequences. However, the team observed a counterintuitive result during training: when paired with a momentum-based optimizer using block-wise orthogonalization, it underperformed multi-head query attention, a structurally simpler scheme with fewer query groups.

    The root cause is orthogonalization granularity. Applying orthogonalization uniformly across the entire projection matrix mixes different attention heads into the same constraint. Compressed attention squeezes the key-values of multiple heads into a shared latent space, and the semantic scales of individual heads already differ, so a uniform constraint weakens the effective update magnitude of some heads. The team’s fix was to perform orthogonalization per attention head, aligning the constraint with the structure.

    1. # Illustration: switching orthogonalization granularity from "whole block" to "per head"
    2. def muon_update(grad, n_heads, per_head=True):
    3. if not per_head:
    4. return orthogonalize(grad) # single uniform constraint over the block
    5. h = grad.shape[0] // n_heads
    6. parts = [orthogonalize(grad[i*h:(i+1)*h]) # independent constraint per head
    7. for i in range(n_heads)]
    8. return concat(parts)

    The transferable lesson: when the granularity of a model structure and the granularity of an optimizer constraint do not match, suspect a granularity mismatch first, rather than raising the learning rate or extending training.

    4. Architectural Change Two: Denser Training Signal via Multi-Token Prediction

    The second change adds multi-step prediction to the training objective: in addition to the next token, the model also predicts several positions further ahead. This does not change the autoregressive form at inference time, but it forces the model to encode more distant information into hidden states ahead of time, effectively raising the training information density per token. Two engineering points need attention. First, multiple prediction heads increase memory usage and implementation complexity, and must be designed together with the parallelism partitioning strategy. Second, the prediction weights for different distances require tuning, since targets too far out introduce noise.

    5. Architectural Change Three: Sparse Attention and Long-Context Cost

    The third change introduces an optional sparse attention mechanism: a lightweight scoring step first selects the few key-value positions most relevant to the current query, and exact computation is performed only on those positions. This reduces the complexity of long-context attention from quadratic to near-linear, at the cost of possibly missing low-scoring but critical information. It therefore usually needs to be combined with structures such as local windows and global anchors, and evaluated separately on long-document retrieval tasks.

    6. Implementation Guidance: From Benchmark Numbers Back to Business Scenarios

    • Selection: treat the composite intelligence index as a reference for the capability floor, then run a second round of validation on your own business datasets, with emphasis on long-document understanding and code generation.
    • Deployment: evaluate aggregate memory bandwidth and expert-parallel communication first; capacity-oriented models are more bandwidth-hungry than compute-hungry. On the inference side, quantization and cache reuse can help reduce cost.
    • Fine-tuning: models with large capacity and small activation are well suited to parameter-efficient fine-tuning, paired with a general-purpose container platform, logging services, and monitoring and alerting for canary releases and regression checks.
    • Cloud: training and inference can rely on Baidu AI Cloud’s elastic compute, object storage, and container platform for resource orchestration, with monitoring, alerting, and logging services closing the loop on quality observation.

    7. Conclusion

    Three methodological points from this report are the most worth remembering: capacity and activation must be evaluated separately; structural changes and optimizer constraints must be aligned at the same granularity; and any sparsification must be backed by a corresponding long-task evaluation. With these three in hand, the next time you face a technical report, you can quickly judge whether it actually solved an engineering problem or merely optimized a leaderboard score.