Open-Source LLM Architecture Evolution and Engineering Practices: A Full Breakdown
This article breaks down how modern open-source large language models are evolving through sparse Mixture-of-Experts (MoE) designs, and what those architectural choices mean for engineering teams. It explains why total parameters and activated parameters are increasingly decoupled, then examines three key architecture changes—MLA with Muon Split optimization, Multi-Token Prediction, and DSA sparse attention—along with their trade-offs. It also covers practical guidance on memory budgeting, training stability, throughput evaluation, service deployment, and model selection for long-document, code, and structured-extraction workloads.
1. Why Decoupling Total and Activated Parameters Is Becoming the Norm for Ultra-Large Models
A clear trend in the evolution of ultra-large models is that capability no longer comes solely from stacking more parameters. Instead, sparsification separates capacity from computation. The core idea behind Mixture of Experts (MoE) is to activate only a small subset of all parameters during inference, balancing total capacity against the compute required for a single forward pass.
Take the new generation of open-source models discussed here as an example: roughly 744B total parameters, about 40B activated per inference, with 256 experts across 80 layers. Compared with the previous generation (about 355B total and 32B activated), total parameters have doubled, activated parameters have increased by about 25%, and the pretraining corpus has grown from about 23T tokens to about 28.5T tokens (roughly 27T for pretraining and 1.5T for mid-training).
The engineering implications of these numbers are worth unpacking:
- Capacity growth lands mainly in the expert pool, so the per-token compute cost rises relatively modestly, yielding a higher marginal return per unit of compute.
- The activation ratio is about 5.4% (40B/744B), which means memory usage and compute must be evaluated separately: the former is determined by total parameters, the latter by activated parameters.
- The mid-training stage carves out about 1.5T tokens, typically used to align and reinforce high-value distributions such as long context, code, and reasoning—a “second engine” for capability gains.
In public composite evaluation systems, this class of models has reached the 50-point range on a general intelligence index for the first time, ranking first among open-source models. It also leads the open-source field in text and code arena rankings, placing it in the same tier as leading overseas closed-source models. Industry analysts largely agree: the strongest closed-source models still hold a slight edge, but the gap to the best open-source models has been significantly narrowed.
2. A Layer-by-Layer Breakdown of Three Architecture Changes
2.1 MLA + Muon Split: Compress the KV Cache, Split the Optimizer
Multi-latent Attention (MLA) compresses the dimensionality of the KV cache by projecting Key/Value into a low-dimensional latent space. This significantly reduces memory bandwidth pressure in long-text scenarios and improves decoding throughput. It shares the same lineage as existing low-rank KV compression approaches in the industry—a typical trade-off of “spending a little extra re-projection compute for a large cache benefit.”
The training challenge is that after low-rank compression, the shapes of the attention-related parameter matrices differ from conventional structures. If standard momentum updates are reused, the mismatch in parameter scales across different matrices can cause mismatched update step sizes, slowing convergence or triggering loss spikes. The engineering solution is to split optimizer state by matrix role (the Muon Split idea): use matrix-orthogonalization-based updates for 2D “matrix-type” parameters, while keeping adaptive element-wise updates for “non-matrix-type” parameters such as embeddings, biases, and normalization.
Illustrative pseudocode:
# Split optimizer state by parameter rolefor name, p in model.named_parameters():if p.ndim == 2 and is_hidden_matrix(name):muon_state[name] = init_orthogonal_momentum(p) # Matrix-type: orthogonalized updateelse:adamw_state[name] = init_elementwise_moments(p) # Vector-type: element-wise adaptive
The benefits and costs are both clear: convergence is more stable and more aggressive learning rates become usable; the cost is that two sets of optimizer states must be maintained in memory, and implementation complexity increases.
2.2 Multi-Token Prediction: Denser Supervision in Training, Speculative Decoding in Inference
Multi-Token Prediction predicts several future tokens at each position, turning “learn one step at a time” into “learn multiple steps at once.” It delivers two kinds of value:
- During training: higher supervision signal density, better sample efficiency, and more thorough modeling of long-range dependencies.
- During inference: the extra prediction heads can serve as a draft model, working with speculative decoding to improve throughput while keeping the output distribution consistent.
A common misconception worth clarifying: Multi-Token Prediction does not mean the model “naturally outputs multiple correct tokens in parallel.” Its parallel gains depend on draft hit rate and the verification strategy, and the actual speedup is strongly correlated with the task distribution.
2.3 DSA Sparse Attention: Reducing the Quadratic Cost of Long Context to Near-Linear
Sparse attention (referred to as DSA here) uses a two-stage “select-then-aggregate” design so that each query interacts with only a few key history blocks, reducing the complexity of long-sequence attention from quadratic to near-linear. In engineering, it is typically implemented with block-wise processing and approximate Top-K selection. The cost is additional selection overhead and index structures, and the benefits are more pronounced for tasks with strong locality, such as code and structured documents.
3. Engineering Essentials for Training and Inference
- Budget memory in separate accounts: total parameters determine the footprint of weights and optimizer states, activated parameters determine per-token compute, and the KV cache is determined jointly by sequence length and compression dimension—each must be accounted for separately.
- Prioritize stability: sparse structures plus low-rank compression are more sensitive to numerical stability. It is advisable to enable loss-spike monitoring, gradient-norm clipping, and rollback checkpoints.
- Evaluate throughput by scenario: for short requests, look at first-token latency; for long documents, look at decoding throughput and cache hit rate; for code completion, look at P99 under batched concurrency.
- Use general-purpose capabilities for service infrastructure: model weights can be stored in object storage, the request path can connect to a message queue for peak shaving, elastic resources can run on a container platform, and logging services plus monitoring and alerting can close the loop.
4. Selection and Adoption Recommendations
If your workload centers on long-document understanding, code generation, and structured extraction, this class of open-source models—“large capacity + low activation + sparse attention”—offers strong cost-performance. If you rely heavily on ultra-long context, prioritize stress-testing cache behavior and the tail latency of sparse selection. If you pursue the lowest possible cost, evaluate options with a smaller activation scale. The overall judgment: the capability gap between open-source and leading closed-source models is converging, and on the engineering side, tiered caching, speculative decoding, and elastic scheduling often determine final unit cost more than simply switching to a larger model.
