Open-Source LLM Architecture and Training Practices: A Full Breakdown
This article breaks down a recently released technical report on an open-source flagship model, covering its MoE fundamentals, key architectural changes (MLA with Muon Split, multi-token prediction, and sparse attention), and its fully asynchronous agentic reinforcement learning framework. Developers will find practical guidance on model selection metrics, long-context evaluation, optimizer and architecture alignment, asynchronous RL pipelines, and observability.
1. Background: The Capability Gap Between Open and Closed Source Is Closing Fast
A recent weekly report from an industry evaluation group contained a notable judgment: a closed-source flagship model is still regarded as the “most intelligent” option, but the gap between it and the best open-source model right behind it has narrowed significantly. An analysis from an investment firm likewise described an open-source flagship model as “the best open-source model currently available.”
The engineering implication matters far more than the marketing one. For the vast majority of enterprise tasks—retrieval-augmented question answering, code assistance, structured extraction, and multi-turn tool calling—the capability ceiling of open-weight models has crossed the usability threshold. The central selection question has shifted from “is it smart enough” to “cost per token, context length, feasibility of private deployment, inference throughput, and controllability.”
On the 22nd, the model released a complete technical report of roughly 40 pages. Four technical points drew the most discussion: the leap in long-text efficiency from a sparse attention mechanism, a fully asynchronous agentic reinforcement learning training framework, a self-developed reinforcement learning training infrastructure, and the parameter scale and activation ratio design of the mixture-of-experts architecture. This article unfolds layer by layer in the order of fundamentals, architectural changes, training methods, and engineering implementation.
2. Model Fundamentals: Parameter Scale, Activation Ratio, and Benchmark Position
Start with the basics. The model uses a mixture-of-experts (MoE) architecture with 744B total parameters and 40B activated per inference, configured with 256 experts and 80 layers. Compared with the previous generation, total parameters increased from 355B to 744B and activated parameters from 32B to 40B; the pre-training corpus grew from 23T tokens to 28.5T tokens, with about 27T in the pre-training stage and about 1.5T in the mid-training stage.
These numbers only make sense when read together:
- Total parameters determine knowledge capacity; activated parameters determine inference cost. The 744B/40B ratio is about 18.6:1, a sparse route of “large capacity, low activation.” The benefit is that inference FLOPs and memory bandwidth pressure are close to those of a 40B dense model; the cost is that memory capacity requirements are still estimated at the total-parameter scale, placing higher demands on multi-GPU parallelism and expert placement strategies.
- Data scale grew more slowly than parameter scale. Parameters doubled while tokens grew only about 24%, indicating the team focused on data quality and the training recipe (including mid-training) rather than simply piling up corpus. This has been a common trend in top-tier model training over the past two years.
- Benchmark position. The model scored 50 on a composite intelligence index evaluation, ranking first among open-source models; it also ranked first among open-source models in blind-test rankings on text and code arenas, on par overall with leading overseas closed-source models.
The direct takeaway for developers: when evaluating an open-source model, do not look only at total parameters or a single leaderboard score. Instead, treat “activated parameters + context efficiency + tool-calling stability” as a set of joint metrics.
3. Architectural Change 1: The Coordination Problem Between MLA and Optimizer Grouping
The attention mechanism uses multi-head latent attention (MLA), which shares the same origin as existing low-rank KV compression schemes in the industry. The core idea is to project Key/Value into a low-dimensional latent space and cache only the latent vectors during inference, greatly compressing the memory footprint of the KV cache and offering an obvious decoding speed advantage in long-text scenarios.
However, the team found a counterintuitive phenomenon during training: when using a Muon-style orthogonalization optimizer with MLA, the results could not catch up with the structurally simpler grouped-query attention (GQA, 8 groups) scheme.
The solution is called Muon Split: instead of applying orthogonalization uniformly to the entire projection matrix, orthogonalize each attention head separately. The motivation can be understood this way—orthogonalization is an operation that makes the singular value distribution of a weight matrix more uniform. When processing the whole block, different heads share the same spectral constraints, and scale differences between heads are forcibly flattened, which instead breaks the original information distribution of the MLA latent space. After splitting by head, each head retains an independent spectral structure, making optimization more stable.
Illustrative pseudocode:
# Conventional approach: orthogonalize the whole projection matrix uniformlyW = muon_orthogonalize(W_all) # W_all: [d_model, n_head * d_head]# Per-head approach: orthogonalize each attention head independentlyW_heads = W_all.view(d_model, n_head, d_head)for h in range(n_head):W_heads[:, h, :] = muon_orthogonalize(W_heads[:, h, :])W = W_heads.reshape(d_model, n_head * d_head)
Engineering lesson: when switching optimizers, always check whether the parameter grouping granularity aligns with the attention structure; otherwise you may suffer the double loss of “more expensive training and worse results.”
4. Architectural Change 2: Multi-Token Prediction
The second change is multi-token prediction. Conventional autoregressive training predicts only the next token at each step, whereas multi-token prediction has the model predict the next n tokens simultaneously at each position.
It brings three types of benefits:
- Denser training signal. The same forward computation produces multiple supervision targets, improving sample efficiency.
- More “far-sighted” representations. Being forced to model longer-range dependencies benefits planning and code tasks.
- Faster inference. If the multi-token prediction heads are retained, self-speculative decoding can be done at inference time, verifying multiple candidate tokens with a single forward pass.
Implementation note: multi-token prediction heads are usually enabled only during training and can be discarded at inference to keep the single-token decoding path simple; if used for speculative decoding, the acceptance rate and draft quality need additional evaluation.
5. Architectural Change 3: Long-Text Efficiency From Sparse Attention
The third change is sparse attention (DSA). The most discussed data point in the report is that about 20B tokens of sparse attention training can match the results of a conventional dense attention scheme trained on about 943.7B tokens—a difference of nearly 47x in training volume.
The principle is not mysterious: attention computation grows quadratically with sequence length, yet in real text the attention weights of the vast majority of token pairs are close to 0. Sparse attention uses a learnable routing/selection mechanism to compute only a small number of key tokens for each query, reducing complexity from O(n²) to nearly O(n·k).
The engineering value shows up mainly in three places:
- Controllable long-context cost. Memory and latency for contexts above 32K no longer deteriorate linearly.
- Manageable KV cache. Combined with the low-rank compression of MLA, cache usage drops further.
- Improved training efficiency. The same compute budget can feed more tokens or longer samples.
Illustrative implementation skeleton:
def sparse_attention(q, k, v, topk):# q: [B, H, L, D]; compute selection scoresscores = (q @ k.transpose(-1, -2)) / (q.size(-1) ** 0.5)idx = scores.topk(k=topk, dim=-1).indices # keep topk keys per queryk_sel = gather(k, idx); v_sel = gather(v, idx)attn = softmax(q @ k_sel.transpose(-1, -2))return attn @ v_sel
6. Training Method: A Fully Asynchronous Agentic Reinforcement Learning Framework
The third focus disclosed in the report is the agentic reinforcement learning training framework, whose key design is being fully asynchronous: sampling (inference generation) and training (gradient updates) are decoupled and run at independent rates, no longer requiring a synchronous barrier of “finish generating a batch, then update all at once.”
The problem with a synchronous pipeline is the long tail: one agent trajectory may contain dozens of rounds of tool calls with huge length variance, so fast workers must wait for the slowest one and GPU utilization is dragged down by the tail. After going asynchronous:
- The sampling side continuously produces experience and the training side continuously consumes it, significantly improving resource utilization;
- Policy staleness control must be introduced (such as importance sampling correction, discounting of old-policy samples, and periodic weight synchronization), otherwise off-policy deviation will break convergence;
- Experience deduplication and prioritized sampling are needed to avoid highly repetitive trajectories dominating the gradient.
A simplified asynchronous loop:
# Sampling and training processes run in parallel, decoupled via an experience queuewhile training:batch = replay.sample(batch_size) # may come from a policy several versions oldratio = pi_new(a|s) / pi_old(a|s)loss = -min(ratio * adv, clip(ratio, 1-e, 1+e) * adv)loss.backward(); optimizer.step()if step % sync_every == 0:broadcast_weights(to_samplers) # periodic sync to control staleness
The accompanying self-developed training infrastructure mainly solves three things: heterogeneous resource orchestration (mixed deployment of inference and training cards), failure self-healing (checkpoint resumption for long tasks), and observability of large-scale logs and metrics. In a general cloud environment, these capabilities typically correspond to a combination of general-purpose categories such as container platforms, object storage, message queues, logging services, and monitoring and alerting.
7. Implementation Advice for Developers
- Look at joint metrics for selection: view activated parameters, context efficiency, and tool-calling success rate together, not just the leaderboard.
- Validate sparse attention gains for long text first: use your own corpus to test first-token latency and throughput at the 32K/128K tiers.
- Align the optimizer with the architecture before self-training: parameter grouping granularity and orthogonalization scope must match the attention design.
- Go asynchronous for agentic RL: synchronous pipelines waste substantial compute in long-trajectory scenarios.
- Observability first: instrument the full training and inference pipeline, and use logging services and monitoring alerts to locate the long tail.
Overall, the value of this technical report lies not in any single breakthrough but in combining a sparse architecture, efficient attention, dense training signals, and asynchronous reinforcement learning into a reproducible engineering paradigm. That is precisely the underlying reason open-source models are rapidly approaching closed-source flagships in capability.
