Training a Trillion-Parameter Inference Model on Domestic Compute: Technical Path and Practical Challenges
As the AI industry shifts from merely scaling up compute to optimizing efficiency, training large inference models under hardware constraints has become a critical challenge. This article explores the technical path and practical challenges of training a 1.2-trillion-parameter Mixture-of-Experts (MoE) model on domestic AI chips. It details the migration from imported to domestic infrastructure, covering operator adaptation, communication tuning, and fault-tolerant design. Additionally, it highlights inference enhancements using Generative Reward Models and Self-Principled Critique Tuning (SPCT), providing actionable insights for developers and enterprises navigating compute diversification and external constraints.
1. Background: The Industry Shift from “Stacking Compute” to “Refining Compute”
In recent years, the reasoning capabilities of large language models have become the focal point of competition. The industry recognizes that simply stacking compute power is no longer the only path. Producing high-performance inference models at extremely low training costs under constrained conditions has become a new technical proposition. After a domestic R&D team successfully validated the “low cost, high inference performance” route with its previous open-source model, it began developing the next-generation model, R2. However, due to external supply restrictions on high-end AI chips, the team was forced to deeply reconstruct its training infrastructure, migrating the training base from imported chips to domestic chips. The technical problems exposed and solved in this process offer valuable reference for the entire industry.
Public information indicates that the training of the predecessor model, R1, utilized tens of thousands of imported AI accelerator cards. When the supply of such chips was restricted, the R&D pace was directly affected—R2’s development experienced delays in June 2025 due to supply chain issues. This suggests that the sustainability of large model R&D must be built on the assumption of a diversified compute supply chain.
2. Model Architecture: Engineering Trade-offs of MoE with Trillion Parameters
R2 adopts a Mixture-of-Experts (MoE) architecture with a total parameter count of 1.2 trillion. The core value of MoE lies in decoupling “knowledge capacity” from “computational overhead”:
- Capacity dimension: Massive expert parameters store vast world knowledge and long-tail patterns.
- Computation dimension: Only a few experts are activated per token, meaning the actual computation during inference is much smaller than that of a dense model.
Key engineering challenges include load balancing in expert routing, communication overhead in expert parallelism, and consistency of routing behavior between training and inference phases. On domestic chip clusters, these issues are further amplified—interconnect bandwidth and the implementation efficiency of collective communications significantly impact MoE scalability. Common industry practices involve introducing auxiliary load balancing loss, capacity factor control, and expert affinity-based caching strategies. Specific interface details will not be elaborated here.
3. Training Base Migration: Adaptation Challenges in the Ascend Ecosystem
R2 training is primarily based on domestic AI chips (Ascend 910B series). Migrating from a mature ecosystem to a relatively young one requires solving multi-layered problems:
Operator layer: A large number of custom operators in mainstream training frameworks need to be reimplemented and validated on domestic chips. Numerical precision alignment is the primary task, typically requiring that the loss curve error compared to the reference implementation is kept within an acceptable range.
Communication layer: Large-scale distributed training relies heavily on high-performance interconnects. Domestic clusters differ from existing solutions in inter-node communication topology and RDMA configurations, requiring deep tuning of collective communication libraries. The “communication bottlenecks” mentioned in the original context stem from this layer.
Stability layer: Training at the scale of tens of thousands of cards requires continuous operation for weeks without interruption. Domestic chip clusters have exposed stability issues, directly causing R&D delays. Engineering teams typically mitigate this through periodic checkpoints, automatic anomaly detection, and hot-swapping mechanisms.
Cooling and datacenter layer: Chip cooling design directly affects cluster availability, an infrastructure aspect often underestimated.
A schematic fault-tolerant pseudocode framework is as follows:
# Main training fault-tolerant loop (schematic)while not converged:try:loss = train_step(batch)if step % CHECKPOINT_INTERVAL == 0:save_sharded_checkpoint(model, optimizer)except HardwareAnomaly as e:isolate_faulty_node(e.node_id)restore_from_latest_checkpoint()rebuild_collective_group()
4. Inference Capability Enhancement: Interpretable Rewards and Self-Critique Tuning
R2 introduces two notable methodological innovations:
Generative Reward Models and interpretable scoring: Traditional outcome-based reward models only output a scalar, making it difficult to pinpoint errors. Generative reward models can produce structured evaluations of the reasoning process, making the scoring itself interpretable and helping to locate exactly which reasoning step the model failed.
SPCT (Self-Principled Critique Tuning): The idea is to let the model autonomously generate judging principles before reasoning, and then critique candidate answers based on these principles. Combined with parallel sampling and reward-model-guided voting strategies, this significantly improves accuracy on complex reasoning tasks. A simplified voting flow is as follows:
candidates = model.sample(prompt, n=16)principles = model.generate_principles(prompt)scores = [judge.answer_with_principles(c, principles) for c in candidates]best = vote(scores, strategy="meta_rm_guided")
The general takeaway from these methods is that improving inference quality comes not just from larger models, but from the fine-grained scheduling of “test-time compute”—trading more sampling and smarter aggregation for higher answer quality.
5. External Constraints and R&D Pace: Non-Technical Variables to Watch
The release journey of R2 has been turbulent: In August 2025, market rumors of a release window were officially denied; causes for delay included supply chain issues as well as management dissatisfaction with model capabilities; as of early September 2025, there was no clear release date. In January 2026, the developer community discovered code updates for the new model in its open-source repository; in February 2026, controversies arose regarding whether the chips used for training violated export controls.
This offers a dual lesson for the industry: on one hand, the code transparency of the open-source community makes R&D trends easily observable externally; on the other hand, geopolitical factors have become non-negligible variables in large model R&D schedules. When engineering teams plan long-term training tasks, they should reserve buffers for non-technical risks such as supply chain disruptions and compliance reviews.
6. Practical Advice for Developers and Enterprise Users
- Architecture selection: In compute-constrained scenarios, prioritize MoE-style architectures to trade parameter capacity for lower inference costs.
- Compute diversification: Training frameworks should implement well-designed abstraction layers for heterogeneous hardware to reduce migration costs.
- Inference enhancement: The combination of parallel sampling + principled critique + voting aggregation is a universal method to improve inference quality without retraining.
- Fault-tolerance design: Ten-thousand-card training must treat stability engineering (checkpoints, fault isolation, automatic recovery) as a first-class citizen.
- Cost perspective: The original context mentioned that training costs were only a very small fraction of the industry average, indicating that the synergy of algorithm and system optimization brings massive cost reduction potential.
Conclusion
The R&D journey of R2 reflects the profound transformation the large model industry is undergoing—compute acquisition is shifting from “market-driven procurement” to “strategic capability building,” and model innovation is shifting from a “scale competition” to an “efficiency and inference quality competition.” For technical teams, understanding the architectural decisions and engineering practices behind this path holds more long-term value than focusing on the release date of any specific model.
