Open-Source LLM Architecture Evolution and Training Practices: A Complete Breakdown
This article explains how open-source large language models have closed the gap with top closed-source models, and examines the architecture and training choices behind this shift. It covers the MoE fundamentals of total versus activated parameters, data mix and mid-training, three key architectural changes (MLA with Muon Split orthogonalization, multi-token prediction, and sparse attention), and practical guidance on memory budgeting, throughput, fine-tuning, evaluation, and observability, along with common pitfalls to avoid.
1. Why the “Open-Source First Tier” Deserves a Fresh Look
Over the past two years, the gap between open-source models and leading closed-source models has narrowed from a “generation gap” to minor differences within the same tier. Judging whether a model belongs to the first tier usually requires more than a single leaderboard. Three types of evidence should hold at the same time:
- Aggregate capability index: a comparable score that combines knowledge, reasoning, code, and instruction following;
- Human preference arena: rankings based on blind votes from real users, with separate text and code boards being especially informative;
- Capability per unit cost: the actual output a model can deliver under a given memory and throughput budget.
A new generation of open-source models ranks at the top across all three types of evidence. For the first time, an open-weight model has reached the 50-point range on the aggregate intelligence index, and it ranks first among open-source models on both the text and code arenas, putting it in the same tier as the top closed-source models overseas. The significance is not about “surpassing someone,” but that the path of open weights plus an open technical report can now reliably reproduce capabilities close to the frontier. This gives enterprises the option to self-host, fine-tune, and audit their models.
2. Fundamentals: Scale, Activation, and Data Mix
To understand this class of models, start with their cost structure. It uses a Mixture-of-Experts (MoE) architecture: roughly 744B total parameters, about 40B activated per inference, 256 experts, and 80 layers. Compared with the previous generation (355B total, 32B activated), total parameters doubled while activated parameters grew only slightly. This is the core value of MoE: decoupling knowledge capacity from inference compute.
The pre-training corpus grew from 23T tokens to 28.5T tokens, with about 27T used for pre-training and 1.5T for mid-training. The mid-training stage is often overlooked, but it plays the role of “capability shaping”: it applies targeted reinforcement on distributions such as long context, code, and tool calling, trading a relatively small amount of data for clear behavioral improvements.
A practical way to reason about it:
Effective inference cost ≈ activated parameters × forward passes per token + KV cache overheadKnowledge capacity ≈ total parameters × expert routing coverage
This explains why “744B total / 40B activated” can balance quality and throughput: memory is consumed mainly by weights and the KV cache, while compute is consumed mainly by the activated path, so the two can be optimized separately.
3. Three Architectural Changes, One by One
3.1 Multi-Head Latent Attention + Optimizer Group Orthogonalization
On the attention side, the model takes an MLA (Multi-head Latent Attention) approach: it compresses the key-value cache into a low-dimensional latent space and caches only the compressed representation, significantly reducing memory usage and memory bandwidth pressure in long-text scenarios. The engineering benefit is direct: on the same number of cards, it supports longer context and higher concurrency.
But the team hit a real problem during training: when the Muon optimizer was combined with MLA, it could not match the simpler grouped-query attention (GQA-8) approach. The reason is not hard to see: Muon relies on orthogonalized updates of parameter matrices, while MLA’s low-rank compression gives the effective parameters a clear block structure, and orthogonalizing the whole block forcibly “flattens” different semantic subspaces.
The solution is Muon Split: instead of “uniformly orthogonalizing the entire projection matrix,” orthogonalize each attention head separately. A sketch:
# Pseudocode: block orthogonalization vs. per-head split orthogonalizationdef muon_update(W, heads, mode="split"):if mode == "block":return orthogonalize(W) # process the full matrix uniformlyWs = W.view(heads, -1) # reshape into a per-head viewWs = orthogonalize(Ws) # orthogonalize each head independentlyreturn Ws.view_as(W)
This change looks small, but its essence is aligning the optimizer’s geometric assumptions with the model’s parameter structure. The practical lesson: when introducing a new optimizer, check whether it matches the parameter shapes of the attention and feed-forward layers; otherwise you get the counterintuitive result of “more expensive training with worse quality.”
3.2 Multi-Token Prediction
The training objective expands from “predict the next token” to “predict several future tokens at once.” It brings three layers of benefit:
- Denser training signal: a single forward pass provides a longer supervision span and reduces gradient variance;
- Parallelizable inference: multi-position prediction naturally supports speculative decoding, with drafting and verification done within the same model, clearly improving throughput;
- Stronger planning ability: the model is forced to learn longer-range dependencies, which is especially friendly to tasks like code completion and structured output.
Note that multi-token prediction adds output-head overhead during training, so it is typically paired with weight sharing and lightweight prediction heads to avoid runaway memory and compute.
3.3 Sparse Attention
In long context, dense attention computation is the main bottleneck. Sparse attention reduces complexity by “interacting only with selected key positions,” with common strategies including local windows, global anchors, and block-based selection. Its value is not just saving compute; more importantly, it makes long-context training feasible at an acceptable cost; otherwise large-scale long-text reinforcement at 28.5T tokens would be out of the question.
Sparsification inevitably brings accuracy risk, so engineering practice usually keeps a few dense layers or global tokens as an “information backbone,” forming a hybrid structure that is “sparse by default with dense as a fallback.”
4. Engineering Practice: Getting Value from These Models
- Do the memory budget with subtraction first: reserve weights by total parameter count, estimate the KV cache linearly by context length and concurrency; compressed attention can significantly relax this item;
- Prioritize the activated path for throughput: activated parameters determine compute, while batching and speculative decoding determine actual QPS;
- Layer the fine-tuning strategy: full-parameter fine-tuning is costly, so prefer small-scale continued training on targeted data in the style of mid-training, then add parameter-efficient fine-tuning;
- Build your own evaluation: public leaderboards are for initial screening; on the business side you must build a private evaluation set covering three hard scenarios: long documents, repository-level code understanding, and tool calling;
- Fill in observability: only by connecting logging, monitoring and alerting, container platforms, and object storage into a closed loop can you tell whether the issue is uneven routing, low cache hit rate, or a poor decoding strategy.
5. Common Pitfalls
- Looking only at total parameters and not activated parameters, leading to a serious overestimate of the compute budget;
- Running only general leaderboards while ignoring long-context and code sub-boards;
- Blindly swapping optimizers or attention implementations without small-scale controlled experiments;
- Treating sparse attention as pure free gain while ignoring its accuracy impact on certain retrieval-style tasks.
6. Conclusion
The real breakthrough of this generation of open-source models is not a single number, but the coordinated design of architecture, optimizer, and training objective: compressed attention solves memory, group orthogonalization resolves the mismatch between optimizer and structure, multi-token prediction increases signal density and decoding efficiency, and sparse attention pushes long-context cost into a usable range. For enterprises, this means that on cloud platforms such as Baidu AI Cloud, you can run inference services on a container platform, store training and evaluation data in object storage, and ensure stability with monitoring and alerting, turning open weights into controllable, auditable, and continuously improvable productivity.
