Training a Trillion-Parameter MoE Model in China: Hardware Adaptation, Architecture, and Engineering Practices
This article walks through the practical lessons from training a trillion-parameter Mixture-of-Experts (MoE) model under compute supply constraints. It covers why compute planning must be decoupled from algorithm iteration, the three hurdles of adapting large-scale training to domestic accelerators (software stack coverage, thermal and power limits, communication bottlenecks), the benefits and costs of MoE architectures, generative reward models with meta-reward guided voting, self-principle critique tuning (SPCT), and the engineering controls needed for release cadence, compliance, observability, and cloud elasticity.
1. Background: How Compute Constraints Reshape Large Model Development
Competition in ultra-large models has shifted from “parameter count” to “output per unit of compute.” When a team sets out to train a model with a total parameter count in the trillion range, the first obstacle is usually not algorithmic but the certainty of compute supply. Fluctuations in the availability of high-end accelerators can directly change the development schedule: a training plan laid out by quarter may have to be reordered when the usable card type switches.
A well-known public example is the development of a second-generation domestic large model. The first-generation model was trained on roughly 30,000 of a certain restricted class of accelerators, which lowered training cost significantly while improving inference performance. By the second generation, however, tightening supply of that card type in some regions forced the team to migrate the training foundation to domestic accelerator chips, delaying the project by several months. Supply was not the only factor: the model’s performance in multilingual reasoning and code generation fell short of internal expectations, and the domestic chips showed stability issues under prolonged high load. Later, the community inferred the existence of a new model from code commits in an open-source repository, while the team never announced a firm release date.
The lesson for engineering teams is direct: compute planning must be decoupled from algorithm iteration. A workable approach is to split training work into a “portable algorithm experiment layer” and a “tightly coupled low-level operator layer.” The former is described in a unified high-level framework; the latter adapts to different hardware through an abstraction interface. Preparing two or more hardware backends avoids single-point dependency.
2. Hardware Adaptation: Three Hurdles From “It Runs” to “It Runs Reliably”
Running a trillion-parameter model on a domestic acceleration platform usually concentrates difficulty in three areas.
The first is software and hardware stack adaptation. Insufficient operator coverage forces many operations to fall back to generic compute paths, and performance drops sharply. In practice, teams first compare operator lists, fill in or replace implementations of high-frequency operators (matrix multiplication, normalization, attention variants) as a priority, and then handle communication operators.
The second is cooling and power. Long training runs often fail not because of logic errors but because the temperature wall triggers frequency throttling, which slows overall throughput. Airflow and power budgets need to be planned at the rack level, and temperature and power should be included in training monitoring metrics.
The third is the communication bottleneck. Trillion-parameter models generally combine tensor parallelism, pipeline parallelism, and expert parallelism. Once cross-machine communication becomes the bottleneck, adding more cards actually reduces efficiency. Common optimizations include overlapping computation with communication, gradient bucketing, and topology-aware parallel configuration.
An illustrative parallel configuration can be expressed as follows:
# Illustrative only: parallel strategy must be tuned to cluster topology and model structureparallel_config = {"tensor_parallel_size": 8, # prioritize high-bandwidth intra-node interconnect"pipeline_parallel_size": 16, # cross-node pipeline to reduce communication frequency"expert_parallel_size": 64, # split along the expert dimension with routing load balancing"recompute_granularity": "layer",}
Note that these values are structural illustrations only. Real settings must be determined from measured throughput, memory usage, and fault recovery time; there is no universally optimal configuration.
3. Architecture Choices: The Benefits and Costs of MoE
The core idea of the Mixture-of-Experts (MoE) architecture is to decouple total parameter count from per-token computation: each token activates only a few expert networks, expanding model capacity while keeping inference cost controllable. A configuration with 1.2 trillion total parameters and only a small fraction activated per pass reflects exactly this idea.
The costs must be faced alongside the benefits:
- Memory and capacity: all expert parameters must remain resident, so memory pressure does not disappear with sparse activation.
- Routing imbalance: a few experts are over-selected while the rest are under-trained, creating “dead experts.”
- Difficult fine-tuning: the sparse structure is more sensitive to learning rate, initialization, and regularization.
Common mitigations in practice are an auxiliary load-balancing loss, a trade-off involving expert capacity limits and random routing, and using a smaller expert granularity early in training before scaling it up later.
4. Explainable Scoring: Generative Reward Models and Guided Voting
A traditional reward model outputs a scalar score and cannot explain “why this score.” A generative reward model instead has the model first produce evaluation text and then derive a score from it, so the scoring process carries a readable reasoning chain that supports manual spot checks and problem localization.
On top of this, the inference stage can introduce parallel sampling and a meta-reward guided voting mechanism: multiple candidate answers are generated in parallel for the same question, a meta-reward model re-evaluates and weights the evaluations of each candidate, and the most reliable one is selected. The logic is to turn “the luck of a single generation” into “the statistical advantage of multiple samples.”
Question Q|-- Sample S1 -> Generative RM evaluation E1 -> score|-- Sample S2 -> Generative RM evaluation E2 -> score|-- ...`-- Meta-reward model re-evaluates {Ei} -> weighted vote -> final answer
Three practical points: the number of samples and the latency must be balanced against the business SLA; the evaluation prompt must constrain the scoring dimensions so that style preference does not outweigh factual correctness; and voting weights must be designed to prevent a single high-scoring sample from dominating the result.
5. Complex Reasoning Enhancement: Self-Principle Critique Tuning
Self-Principle Critique Tuning (SPCT) has the model first critique its own output against a set of explicit principles, then revise the answer based on that critique, and folds this “critique-and-revise” process into the training signal. Compared with simply scaling up data, it acts more directly on how the reasoning process is organized.
Three points are recommended when applying it: keep the principle set small and stable to avoid conflicts; critiques must be verifiable and ideally map to concrete criteria; and training and inference should use the same set of principles to prevent distribution drift.
6. Engineering Delivery and Risk Control
- Release cadence management: keep the public timeline flexible and use capability thresholds (such as multilingual reasoning and code generation evaluation results) as release criteria internally.
- Compliance and supply chain: keep records of the hardware and data sources used for training; export controls and compliance requirements directly affect technology choices.
- Observability: bring throughput, temperature, communication wait, and routing distribution into unified monitoring and alerting so that anomalies can be quickly traced to hardware or algorithms.
- Cloud elasticity: organizing training and checkpoints on top of a general container platform and object storage, together with logging and monitoring/alerting services, allows more flexible resource scheduling when compute is tight.
7. Conclusion
Developing a trillion-parameter MoE model is fundamentally a coordination of three lines: algorithms, hardware, and engineering. Supply constraints are only an external condition. What really determines success is whether adaptation work can be standardized, whether reasoning enhancement can be built into measurable modules, and whether release criteria rest on capability evaluation rather than time commitments. For developers, the safer path is to first establish a portable training abstraction and a complete observability system, and only then pursue scale.
