Deep Dive into an Open-Source LLM Technical Report: Architecture, MoE Specs, and Deployment Notes

    This article breaks down a recent open-source large model technical report, focusing on how the gap between open-source and closed-source models is narrowing. It covers the model's MoE specifications (roughly 744B total parameters, 40B activated per token, 256 experts, 80 layers) and the shift to a multi-stage data pipeline with mid-training. Three architectural changes are explained in practical terms: compressed Multi-head Latent Attention (MLA) with grouped optimizer handling, Multi-Token Prediction, and sparse attention. The article closes with engineering guidance for deployment, fine-tuning, evaluation, and cost modeling, plus a note on running such models on Baidu AI Cloud.

    Overall Takeaway: The Open-Source and Closed-Source Gap Is Closing Fast

    A recent open-source LLM technical report has sparked discussion, and its core conclusion fits in one sentence: leading closed-source models still hold a slight edge in overall capability, but the open-source camp has narrowed that gap to a fairly limited range. This is echoed across several third-party public leaderboards. On a composite intelligence index, the open-source model crossed the 50-point mark for the first time and ranked first among open-source models; on the text and code sub-leaderboards of a human-preference arena-style evaluation, it also leads the open-source field and sits in the same tier as top overseas closed-source flagship models.

    One caveat matters: leaderboard scores are only a projection of capability, not the whole picture. For developers and enterprise users, the more valuable part of this report is that it discloses a large amount of reproducible engineering detail, including parameter scale, data mixture, attention mechanism changes, and training stability handling. These details determine whether a model can actually be deployed, whether it can be fine-tuned reliably, and whether cost can be controlled in long-context scenarios.

    Fundamentals: Parameter Scale, Activated Parameters, and Data Mixture

    The model series continues with a Mixture of Experts (MoE) architecture. The key idea behind MoE is decoupling total parameter count from per-inference compute: the model holds a huge parameter pool, but each token is routed to only a small number of experts for computation.

    The core specifications disclosed in the report are:

    • Total parameters of roughly 744B, with about 40B activated per token, 256 experts, and 80 network layers;
    • The previous generation had roughly 355B total parameters and 32B activated, meaning total parameters doubled while activated parameters rose by about 25%;
    • The pre-training corpus grew from roughly 23T tokens to roughly 28.5T tokens, with about 27T in the main pre-training stage and about 1.5T in mid-training.

    There are three engineering implications here worth noting.

    First, total parameters set the ceiling on “knowledge capacity,” while activated parameters determine “inference cost and latency.” 40B activated means the per-token matrix multiplication scale is still in the medium range, and with expert parallelism it can achieve high throughput on multi-GPU clusters. But it also means memory footprint is dominated by total parameters, so the deployment bar is not low.

    Second, continuing to increase the number of experts while making each expert “narrower” is a common evolution path for sparse models. Finer-grained experts create a larger routing combination space and allow more thorough specialization; the cost is that routing load balancing becomes harder, and it is easy for a few experts to be overloaded while others sit idle.

    Third, listing mid-training separately at 1.5T tokens shows the data strategy has moved from a “single pre-training stage” to a multi-stage pipeline of “pre-training plus mid-training annealing/domain reinforcement.” Mid-training typically handles long-context extension, code and math capability improvement, and high-quality corpus annealing, and it is a key step for current open-source models to close the gap with closed-source ones.

    Architecture Change 1: Compressed Latent Attention and Optimizer Splitting

    The first change disclosed in the report is a combined approach at the attention and optimizer level: compressed Multi-head Latent Attention (commonly referred to as MLA) paired with a parameter-group splitting strategy for a matrix-style optimizer (Muon-like).

    The principle of compressed latent attention is not complicated. Standard multi-head attention needs to cache the Key and Value of every layer, and cache size grows linearly with the number of layers, heads, and sequence length. In long-context inference, memory bandwidth often becomes the bottleneck before compute does. Latent attention projects K/V into a low-dimensional latent space, caches only that low-dimensional representation, and projects it back up when needed, significantly compressing the cache size.

    Schematically, the logical difference looks like this:

    1. # Standard multi-head attention: cache full K/V
    2. k = x @ W_k # [B, T, H, D]
    3. v = x @ W_v # [B, T, H, D]
    4. cache = (k, v) # cache size ∝ layers × H × D × T
    5. # Latent attention: cache low-dimensional latent vectors
    6. c = x @ W_down # [B, T, d], d << H * D
    7. k = c @ W_up_k
    8. v = c @ W_up_v
    9. cache = c # cache size drops sharply

    The problem the team found during training was this: when low-dimensional compression and a matrix-style optimizer are used together, different parameter matrices have inconsistent sensitivity to optimizer state. If handled uniformly, loss spikes and abnormal gradient norms tend to appear early in training. The direction given in the report is “splitting”: group optimizer state by parameter type, and use different update and scaling strategies for the low-dimensional compression matrices in attention versus the remaining matrices, which restores smoothness to the training curve.

    The transferable lesson for engineering practice is that any structural change introducing low-rank compression or parameter sharing alters the effective scale distribution of parameters. At that point the optimizer cannot be one-size-fits-all; grouping and learning-rate scaling must be adjusted accordingly.

    Architecture Change 2: Multi-Token Prediction

    The second change is Multi-Token Prediction. Standard autoregressive training predicts only the next token at each position, while multi-token prediction lets the model predict the next n tokens in parallel at the same position.

    It brings two kinds of benefits. First, the training signal is denser, forcing the model to learn longer-range dependency structures, which is especially effective for highly structured tasks like code and math. Second, it naturally fits speculative-decoding-style inference acceleration: the extra prediction heads can serve directly as a draft model, reducing the number of autoregressive steps.

    In implementation, lightweight prediction heads usually need to be inserted at multiple depth positions in the backbone, with the loss weighted:

    1. # Pseudocode: multi-token prediction training objective
    2. loss = 0.0
    3. for i, head in enumerate(pred_heads):
    4. logits = head(hidden_states)
    5. loss += weight[i] * cross_entropy(logits, future_tokens[i])

    The tradeoff to watch is that prediction heads add training memory and implementation complexity, and whether they are enabled during inference, and how many layers are enabled, needs stress testing against a specific latency budget. The default assumption that “more is always better” does not hold.

    Architecture Change 3: Sparse Attention

    The third change is a sparsifiable attention mechanism (a DSA-style approach). The idea is to dynamically select a small number of the most relevant key positions for each query to participate in computation, reducing attention complexity from quadratic growth with sequence length to roughly linear.

    This type of mechanism is complementary to the latent attention described earlier: latent attention compresses “the representation dimension of each key,” while sparse attention reduces “the number of keys participating in computation.” Stacking the two lowers both memory and compute pressure in long-context scenarios. Two points deserve close attention in engineering. One is that the sparse selection itself has overhead and irregular memory access, so operator-level optimization is required to realize the theoretical gains. The other is that sparse patterns may miss low-frequency but critical information, so a small amount of global/window attention is usually kept as a fallback.

    Engineering Recommendations

    • Deployment: total parameter scale sets the memory floor. A combination of multi-machine, multi-GPU tensor parallelism and expert parallelism is recommended, along with quantization, cache reuse, and continuous batching to improve throughput. Always run long-context stress tests with real business data before going live.
    • Fine-tuning: sparse structures are more sensitive to learning rate and optimizer grouping. Start with a small learning rate and short runs to validate, then scale up gradually; domain-data annealing in the style of mid-training is often more effective than simply piling on more data.
    • Evaluation: do not look at a single composite score alone. Observe sub-leaderboards for code, math, long text, and instruction following, and run A/B tests on your own business datasets.
    • Cost: model “activated parameters + cache strategy + batch scheduling” together to arrive at a true per-token cost.

    Overall, the biggest takeaway from this report is not any single score but the methodology: through a combination of sparsification, low-rank compression, multi-step prediction, and a multi-stage data recipe, open-source models are systematically approaching the capability boundary of closed-source flagships. If an enterprise wants to deploy such open-source models on Baidu AI Cloud, it can rely on general capabilities such as container platforms, object storage, logging services, and monitoring and alerting to build deployment, data pipelines, and observability, turning architectural advantages into stable business returns.