Domestic AI Accelerators Complete Training Adaptation for 2.8T-Parameter Open-Source Models
This technical article explores how domestic AI compute infrastructure was adapted for training and fine-tuning a 2.8-trillion-parameter open-source model. It covers the hardware requirements, the MUSA-class software stack, the native FSDP2 distributed training path, and the end-to-end pipeline of model loading, sharding, and gradient synchronization, along with practical implications for developers and platform builders.
1. Background: Trillion-Parameter Models Stress the Entire Compute Stack
A team recently open-sourced a flagship large language model with 2.8 trillion parameters, placing it among the largest open-source models in that class. At this scale, training and fine-tuning are no longer tasks that can be handled by a single server or a single accelerator. They become a full-system test of compute infrastructure, distributed training frameworks, and software-stack coordination.
GPU vendors in China have continued to invest in AI training capability beyond general-purpose computing. The core challenge is not just providing high peak compute, but also building a complete, usable software stack that is compatible with the mainstream ecosystem. Upper-layer deep learning frameworks, distributed strategies, and model code must all run smoothly on the hardware. Completing this training adaptation marks a concrete step forward for domestic compute in ultra-large-scale model training.
2. Key Elements of the Adaptation
2.1 Flagship Training-Inference Integrated AI Accelerator
The adaptation is based on a flagship AI accelerator designed for both training and inference workloads. A training-inference integrated design requires the hardware to balance several aspects:
- High memory capacity and bandwidth: Even with low-precision storage, a trillion-parameter model has weights in the terabyte range. Per-card memory capacity and memory bandwidth directly determine sharding granularity and communication efficiency.
- High-throughput compute units: Training is dominated by matrix multiplication, so the hardware needs strong tensor compute capability and native support for low-precision formats such as BF16 and FP8.
- High-speed interconnect: Multi-card and multi-node scaling depends on fast node-level interconnect and RDMA networking between nodes. Otherwise, gradient synchronization becomes the bottleneck.
2.2 MUSA-Class Software Stack: Compatibility Is the Deciding Factor
Hardware is only the foundation. What really determines developer migration cost is the software stack. This class of domestic accelerator provides a proprietary unified compute architecture software stack, and its typical design includes:
- Operator library coverage: Core operators needed for large-model training, including attention mechanisms, LayerNorm, optimizer kernels, and fused operators.
- Framework integration: A CUDA-like programming model and compatibility layer let mainstream deep learning frameworks map their device backends onto the domestic hardware.
- Communication library: Collective communication primitives such as AllReduce, AllGather, and ReduceScatter are provided for distributed training.
For developers, the ideal outcome is that existing training scripts require only minimal changes to run on domestic accelerators. This is also the core measure of software-stack maturity.
2.3 Native FSDP2 Distributed Training Path
A 2.8-trillion-parameter model cannot fit across a finite set of devices even with coarse-grained data parallelism. It must rely on a fully sharded data parallel strategy such as FSDP. A native FSDP2 path means the adaptation is not merely a “runs somehow” result. Instead, the framework has been systematically optimized for the hardware.
The core idea can be illustrated with pseudocode:
# FSDP core idea (pseudocode)# 1. Shard parameters: each device holds only a shard of the model# 2. Before forward: temporarily gather needed shards via AllGather# 3. After backward: release temporary gathered params, keep only gradient shards# 4. Optimizer update: each device updates only its own shardparam_shard = shard_model(model, world_size) # global shardingfor batch in dataloader:full_params = all_gather(param_shard) # gather on demandloss = forward(full_params, batch) # forwardgrads = backward(loss) # backwardreduce_scatter(grads) # gradient shard reductionoptimizer_step(param_shard, grads) # local update
Compared with the earlier FSDP1 approach, FSDP2 provides more fine-grained control over sharding, better overlap between communication and computation, and more precise memory management. That can significantly reduce peak memory usage and improve training throughput. Building a native FSDP2 training path means that sharding, recomputation, communication scheduling, and other mechanisms are deeply adapted and tuned on the hardware rather than relying on generic fallback logic.
2.4 Completing the Full Training Pipeline
The official description highlights three stages: model loading, shard scheduling, and gradient synchronization. These correspond to the areas where large-model training most often fails.
- Model loading: Reading and initializing the weights of a trillion-parameter model involves massive file I/O and precision conversion. Sharded loading and lazy loading mechanisms are critical to avoid exhausting memory or slowing startup during the loading phase.
- Shard scheduling: Splitting parameters, optimizer states, and activations across hundreds or thousands of cards, while balancing load and respecting the communication topology, is the central scheduling problem in distributed training.
- Gradient synchronization: Gradients produced during backpropagation must be merged efficiently. This is typically combined with gradient accumulation, bucketing, and communication-computation overlap to reduce synchronization overhead.
Once these three stages are integrated, the transition from “runs on one card” to “trainable on a cluster” is complete.
3. Implications for Developers and the Industry
From an engineering perspective, this type of adaptation offers three important lessons:
- Software-stack maturity matters more than peak compute. When evaluating domestic accelerators, the focus should be on framework compatibility, operator coverage, native support for distributed strategies, and end-to-end throughput on real training workloads, not just paper specifications.
- Open-source large models serve as a litmus test for ecosystem readiness. Whether a platform can run mainstream open-source model training and fine-tuning smoothly is becoming a recognized benchmark of ecosystem maturity.
- Training-inference integration lowers total cost of ownership. Sharing the same hardware and software stack for training and inference simplifies cluster planning, improves resource utilization, and creates practical value for enterprises building their own AI infrastructure.
4. Conclusion
The open-sourcing of trillion-parameter models and the training adaptation of domestic compute are forming a mutually reinforcing cycle. Larger models place higher demands on the compute software stack, and a more mature software stack makes open-source models more accessible. For teams planning to run large-model training on domestic accelerators, it is advisable to start with small-scale fine-tuning tasks to validate the pipeline, then gradually scale up to full training. Keeping track of version updates in distributed strategies and operator layers will also help achieve better training efficiency.
