Adapting Trillion-Parameter Open-Source Model Training to Domestic AI Chips: Technical Practices
This article examines the technical challenges of training a 2.8-trillion-parameter open-source model on non-CUDA domestic AI hardware, covering memory wall mitigation through fully sharded data parallelism, communication and gradient synchronization optimization, operator and framework ecosystem adaptation, native multimodal training pipelines, and the architectural value of unified training-inference accelerators. It concludes with practical guidance for teams evaluating alternative compute platforms for large model training.
1. Background: Why Trillion-Parameter Training Is the Ultimate Test of Compute Infrastructure
Open-source large language models continue to grow in parameter count. When a flagship open-source model with 2.8 trillion parameters is released, it represents not only progress in model architecture and training data engineering, but also a demanding challenge for the underlying training infrastructure. Adapting training of this scale to a non-mainstream GPU ecosystem requires solving problems across multiple layers simultaneously: operator coverage, communication efficiency, memory management, and distributed scheduling.
Recently, a Chinese AI chip vendor announced that it had completed training adaptation for this trillion-parameter open-source model using its flagship training-and-inference accelerator card and its self-developed software stack, establishing a complete training pipeline from model loading and shard scheduling to gradient synchronization. This work offers a valuable reference for how domestic compute platforms can support large model training.
2. Breaking Down the Core Technical Challenges
2.1 The Memory Wall
The weights of a trillion-parameter model alone require several terabytes of storage in FP16 precision—far beyond the memory capacity of any single accelerator. The industry-standard approach is Fully Sharded Data Parallel (FSDP), which partitions model parameters, optimizer states, and gradients across devices and temporarily aggregates them on demand during computation. Compared with earlier versions, newer sharding frameworks support finer-grained sharding configuration, allowing developers to specify sharding dimensions separately for parameters, gradients, and optimizer states, thereby flexibly trading memory footprint against communication overhead.
A conceptual sharding configuration looks like this:
# Conceptual pseudocode: layered sharding strategysharding_config = {"embedding": "shard_grad_op", # Fully shard the huge embedding layer"attention": "shard_param", # Primarily shard parameters"ffn": "full_shard", # Fully shard compute-intensive layers"offload_optimizer": False # Decide offloading based on host memory}
2.2 Communication and Gradient Synchronization
Sharding comes at the cost of frequent communication. During the forward and backward passes, parameters must be gathered and broadcast across sharding groups; after the backward pass, gradients are synchronized via AllReduce or ReduceScatter. Training efficiency depends heavily on how well communication overlaps with computation. Mature training frameworks typically optimize this through:
- Pipelining computation and communication, prefetching sharded parameters for upcoming layers while the forward pass is still running;
- Gradient bucketing, merging small tensors into larger buckets to improve communication bandwidth utilization;
- Hierarchical communication topology, using high-bandwidth interconnects within nodes and networking across nodes, matched to different collective communication algorithms.
2.3 Operator and Framework Ecosystem Adaptation
For hardware outside the CUDA ecosystem, the software stack must provide a complete operator library, a compilation optimizer, and a distributed communication library. A self-developed stack typically has three layers: a low-level driver and runtime, a middle layer for graph compilation and operator fusion, and an upper interface layer connecting to mainstream deep learning frameworks. The adaptation effort focuses on ensuring efficient implementations of long-tail operators in the model and maintaining execution performance in dynamic (eager) graph mode.
2.4 The Multimodal Training Pipeline
Flagship models are often multimodal, involving joint training of a vision encoder and a language model. This requires the training path to natively support heterogeneous modules with mixed-precision strategies, differentiated parallelism configurations per module, and pipelined loading of image-text samples. A “native multimodal training path” means the entire pipeline—from data preprocessing to loss computation—is managed under a unified distributed framework, rather than stitching together multiple independent training scripts.
3. The Architectural Value of Unified Training and Inference
Accelerator cards designed for both training and inference allow resources to be flexibly scheduled between training clusters and inference services. The engineering benefits include:
- Improved resource utilization: training jobs and inference services share the same hardware pool, with elastic partitioning based on load;
- Software stack reuse: training and inference share the operator library and runtime, shortening the model export and deployment path;
- Optimized cost structure: avoiding duplicated investment in separate heterogeneous clusters for training and inference.
4. Implications for the Industry
This adaptation effort sends several important signals. First, the maturity of domestic compute software stacks is evolving from “capable of running inference” to “capable of running training”—and training adaptation is a stricter measure of ecosystem completeness. Second, open-source large models provide natural adaptation targets for heterogeneous hardware; completing end-to-end training validation on popular open-source models has become a standard way for compute vendors to demonstrate technical capability. Third, for enterprises and developers selecting a compute solution, the key evaluation points are: the official adaptation list for target models, the maturity of the distributed training framework, long-tail operator coverage, and the quality of community and documentation support.
5. Conclusion
From model loading and shard scheduling to gradient synchronization, adapting trillion-parameter model training is a systems engineering effort that tests the coordination between silicon, software stack, and distributed systems. As more flagship open-source models are validated on diverse compute platforms, the infrastructure options for large model training will become richer—positively impacting overall training costs and the development of a more self-reliant AI compute ecosystem. For teams planning to build in-house training capability, a practical path is to start with adaptation validation on small- and medium-scale models, gradually building a complete understanding of parallelism strategies, communication optimization, and fault-tolerance mechanisms before scaling up.
