Large-Scale Open-Source MoE Models: Architecture, Data, Evaluation, and Deployment
This article examines the technical design of large-scale open-source Mixture-of-Experts (MoE) models, covering why sparse activation decouples model capacity from inference cost, how to interpret total versus active parameters, pretraining data expansion from 23T to 28.5T tokens, evaluation methodology and common pitfalls, and engineering trade-offs in inference deployment such as expert parallelism, load balancing, quantization, and KV cache management. It also outlines what these models mean for developers and enterprises.
Large-Scale Open-Source MoE Models: Architecture, Data, Evaluation, and Deployment
In recent years, the open-source model ecosystem has continued to move toward sparse architectures with very large total parameter counts and controlled active parameter counts. Using the latest generation of open-source Mixture-of-Experts (MoE) models as a reference point, this article reviews the technical logic and practical considerations across four dimensions: architecture design, data strategy, evaluation methodology, and engineering deployment.
1. Why MoE: The Core Value of Sparse Activation
Traditional dense models must load and compute all parameters during inference, so cost grows linearly with model scale. The core idea of MoE is that total model capacity can be very large while each forward pass activates only a small subset of experts.
The benefits appear at three levels:
- Decoupling capacity from cost: Total parameters determine knowledge capacity, while active parameters determine the computation per inference pass (FLOPs). This allows a model to “remember more” without increasing inference overhead proportionally.
- Improved training efficiency: Each token updates only the experts selected by the router. Under the same compute budget, it becomes possible to train a larger total parameter scale.
- Specialization: Different experts can learn representations for different domains or patterns, and the router automatically sends inputs to the most suitable experts.
A typical MoE Transformer layer looks like this:
Input tokens│├─► Router / gating network│ Compute matching scores between tokens and experts│ Select Top-K experts (e.g., K=8)│├─► Shared expert (always active)│ Handles general knowledge computation│├─► Expert FFN #1 ... #N (N can reach hundreds)│ Only selected experts participate in computation│└─► Weighted merge of outputs
2. Key Architecture Parameters: Reading Total and Active Parameters
The latest generation of open-source models commonly reports two parameter counts: total parameters and active parameters per inference pass. For example, a model with hundreds of billions of total parameters may activate only about 40B parameters per inference pass; the number of experts can reach 256, stacked across roughly 80 layers.
Several points are important when interpreting these numbers:
- Active parameters are not the same as memory footprint. During inference, all expert weights still need to reside in memory or be partitioned across multiple GPUs. Sparse activation reduces computation, not weight storage requirements.
- Expert granularity and expert count involve trade-offs. More experts mean fewer parameters per expert and potentially greater specialization, but routing and communication overhead increase, and load imbalance becomes more likely.
- Layer count and expert count jointly determine sparsity. Sparsity = 1 − active parameters / total parameters. If total parameters double while active parameters increase only slightly, the model is gaining more knowledge capacity at a lower marginal compute cost.
Compared with the previous generation, which had about 355B total parameters and about 32B active parameters, the new generation roughly doubles total parameters while increasing active parameters only from 32B to 40B. This illustrates the scaling path of sparse architectures: capacity grows faster than inference cost.
3. Pretraining Data: The Logic Behind Scaling from 23T to 28.5T Tokens
Data defines the ceiling of model capability. The latest generation of open-source models increases the pretraining corpus from about 23T tokens to 28.5T tokens and explicitly divides it into stages:
- Pretraining stage (about 27T tokens): Large-scale, multilingual, multi-domain general-purpose corpora intended to build broad world knowledge and reasoning ability.
- Mid-training stage (about 1.5T tokens): High-quality, task-targeted data added after general pretraining to strengthen code, mathematics, long-context handling, instruction following, and related areas. This stage bridges “general capability” and “usable capability.”
Best practices for data scaling include:
- Quality over quantity: Deduplication, toxicity filtering, educational-value scoring, and executable-code validation matter more than simply adding more data.
- Curriculum-style mixing: Increasing the sampling weight of high-quality data in later training stages can help the model converge better on key capabilities.
- Multi-stage division of labor: Separating “learning knowledge” from “learning skills” prevents high-quality data from being diluted by massive general-purpose data.
4. Evaluation: How to Measure Open-Source Model Capability Objectively
When evaluating large models, it is useful to distinguish three types of signals:
- Composite intelligence index: Widely used composite evaluation indices aggregate performance across multiple dimensions with weighted scores. In the evaluation described here, an open-source model reached about 50 on such an index and topped the open-source leaderboard for the first time, indicating that the overall gap between open-source and leading closed-source models has narrowed to the same tier.
- Human-preference battle leaderboards: Leaderboards based on anonymous double-blind pairwise voting, such as text dialogue and code-generation arenas, better reflect real user experience. The open-source model ranked first among open-source models in both text and code tracks and is in the same tier as leading overseas closed-source models.
- Static benchmarks: Fixed datasets such as MMLU, GSM8K, and HumanEval are easy to reproduce but carry contamination risk. They should be treated as references rather than the sole basis for conclusions.
A rigorous evaluation workflow should include fixed random seeds and sampling parameters, reported confidence intervals, newer test versions to avoid contamination, and both human-preference and static-benchmark results. Example evaluation configuration:
eval_config = {"temperature": 0.0, # Remove sampling randomness"top_p": 1.0,"seeds": [0, 1, 2, 3, 4], # Multi-seed evaluation"metrics": ["accuracy", "pass@1", "elo"],"contamination_check": True, # Data contamination detection}
5. Engineering Deployment: Performance and Cost Trade-Offs in Inference
Deploying MoE models differs noticeably from deploying dense models. The main considerations are:
5.1 Memory and Parallelism Strategies
- Expert parallelism: Distribute experts across multiple GPUs, with the router using All-to-All communication to send tokens to the GPUs hosting the corresponding experts.
- Combined tensor parallelism and expert parallelism: Using tensor parallelism for attention modules and expert parallelism for FFN experts is a common high-throughput approach.
5.2 Load Balancing
Uneven routing can overload some experts while leaving others idle, wasting compute and reducing throughput. During training, load-balancing auxiliary losses are commonly added, such as expert capacity constraints and auxiliary loss terms. During inference, dynamic expert capacity adjustment can help alleviate imbalance.
5.3 Quantization and Memory Optimization
- Low-bit weight quantization: Expert weights account for the majority of MoE parameters, so INT8/INT4 quantization can significantly reduce memory usage.
- KV cache management: In long-context scenarios, KV cache grows quickly. Grouped-query attention (GQA) or KV quantization can help control overhead.
- Batch scheduling: MoE inference is often limited by communication rather than computation. Increasing batch size can improve the compute-to-communication ratio and therefore overall throughput.
6. Practical Significance of Open-Source Models
When open-source models reach the same tier as leading closed-source models on authoritative evaluations, it means the following for developers and enterprises:
- Self-hosted deployment: Data can remain within the internal network, helping meet compliance requirements.
- Fine-tuning and customization: Domain adaptation can be built on open-source weights, with full control over the training pipeline.
- Controllable cost: Sparse activation lowers inference cost, and quantization plus parallelism strategies can further optimize it.
- Transparent ecosystem: Auditable and reproducible systems make it easier to build a long-term evolving technology stack.
Conclusion
From roughly 355B total / 32B active parameters to hundreds of billions total / 40B active parameters, and from 23T to 28.5T tokens, this generation of open-source MoE models demonstrates the maturity of a technical path built on “sparse architecture + high-quality data scaling + systematic evaluation.” For developers, understanding the difference between total and active parameters, routing and load-balancing mechanisms, and the communication bottlenecks of inference deployment is a prerequisite for using these models effectively. The gap between open-source and closed-source models is narrowing, and engineering capability will determine who can truly unlock the value of these models.
