Technical Pathways for Training Trillion-Parameter LLMs on Domestic (Chinese) AI Accelerators
As the open-source community releases flagship multimodal models with up to 2.8 trillion parameters, adapting training workloads to non-mainstream AI accelerators has become a critical engineering challenge. This article breaks down the core technical hurdles involved—operator compatibility, communication libraries, framework porting, and memory walls—and explains how Fully Sharded Data Parallel (FSDP), sharded checkpoint loading, and optimized data pipelines enable native training paths for trillion-parameter models on emerging domestic AI chips. It also discusses what these adaptation efforts reveal about the growing maturity of alternative compute ecosystems.
1. Background: The Compute Challenge of Trillion-Parameter Models
Recently, the open-source community released a flagship multimodal large language model at a scale of 2.8 trillion parameters, drawing significant attention across the compute ecosystem. Training models of this magnitude places extreme demands on hardware compute power, memory capacity, interconnect bandwidth, and software stack maturity. In parallel, several Chinese chip vendors have been actively adapting their in-house GPUs and software stacks to mainstream large models. One Chinese AI chip vendor recently announced that it had completed training adaptation for this trillion-parameter model on its flagship training-and-inference accelerator card and companion software stack, establishing a native large-model training path.
The technical significance of this milestone lies not in “who can run the model,” but in what it reveals: a generalizable engineering pathway for completing large-model training adaptation on non-mainstream compute platforms. This article uses it as a starting point to dissect the core technical components of such adaptation work.
2. Core Challenges in Large-Model Training Adaptation
Training a trillion-parameter model outside the mainstream GPU ecosystem typically involves several categories of challenges:
1. Operator compatibility. Large-model training relies on numerous customized operators, such as FlashAttention-style efficient attention implementations, fused kernels, and low-precision computation support (BF16/FP8). A new hardware platform must implement or rewrite each of these operators while ensuring numerical accuracy and performance targets are met.
2. Communication libraries and interconnect topology. Trillion-parameter training depends on high-performance collective communication (AllReduce, AllGather, ReduceScatter, etc.). The communication library must be adapted to the platform’s proprietary card-to-card and host interconnect topology; otherwise, gradient synchronization becomes the bottleneck.
3. Porting the training framework. Mainstream deep learning frameworks are deeply optimized for specific hardware. A new platform must complete backend adaptation, including integration of the device abstraction layer, memory manager, and automatic differentiation mechanism.
4. The memory wall. Even with mixed precision, the memory footprint of optimizer states, gradients, and parameters for a trillion-parameter model far exceeds single-card capacity, making system-level sharding and offloading strategies essential.
3. The Critical Role of Fully Sharded Data Parallel (FSDP)
A key term in this adaptation is the “native FSDP2 multimodal training path.” FSDP (Fully Sharded Data Parallel) is one of the mainstream parallelism strategies for large-model training today. Its core ideas are:
- Shard model parameters, gradients, and optimizer states across different devices;
- AllGather parameters on demand during forward and backward computation, releasing them immediately after use;
- Reduce per-device memory consumption by more than an order of magnitude through parameter sharding.
A simplified conceptual illustration:
# Conceptual pseudocode: hierarchical wrapping for fully sharded data parallelismmodel = TrainerModel(config) # Model definitionsharded_model = fully_shard( # Layer-wise sharded wrappingmodel,sharding_strategy="FULL_SHARD", # Full sharding strategymixed_precision=True # Mixed precision)optimizer = sharded_optimizer(model.parameters())for batch in dataloader:loss = sharded_model(batch).lossloss.backward() # Gradient sharding and sync happen automaticallyoptimizer.step()
“FSDP2-level” native support means sharded scheduling is no longer a bolt-on patch but is deeply coordinated with the hardware’s memory management and communication scheduling—which directly determines training throughput and stability.
4. Building the Complete Training Pipeline
A complete training adaptation typically requires the following pipeline stages to work end to end:
1. Model loading. Trillion-parameter checkpoints must support sharded loading: checkpoints are stored in sharded form in object storage or a distributed file system, and are re-sharded and loaded according to device topology at startup, avoiding single-point memory overflow.
2. Sharding orchestration. Based on cluster topology (intra-node interconnect, inter-node bandwidth), the system automatically selects sharding granularity and the combination ratio of data parallelism, pipeline parallelism, and tensor parallelism to maximize communication efficiency.
3. Gradient synchronization. Gradients produced by backpropagation are bucketed, with computation-communication overlap used to hide synchronization overhead. The communication library must be deeply tuned for the platform’s proprietary interconnect protocol.
4. Multimodal data path. Multimodal training involves mixed loading and preprocessing of heterogeneous data such as text and images. The data pipeline must support high-throughput streaming reads, online encoding/decoding, and dynamic concatenation so that data supply does not become the bottleneck.
5. Implications for the Industry Ecosystem
From a general technical perspective, this adaptation effort confirms several trends:
First, the software stack is becoming the core competitive advantage of domestic compute hardware. Hardware specifications are only the foundation; whether a platform can natively support the sharding strategies, parallelism paradigms, and mixed-precision training of mainstream frameworks determines its viability in the large-model era.
Second, unified training-and-inference architectures reduce adaptation costs. When the same hardware and software stack serves both training and inference, duplicated adaptation work is eliminated, and operator optimizations from training can be reused at deployment time.
Third, open-source large models serve as a proving ground for compute ecosystems. Publicly reproducible flagship models provide standardized validation benchmarks for all kinds of hardware platforms, driving the entire compute supply chain toward maturity.
6. Conclusion
Training adaptation for trillion-parameter models is a systems engineering effort involving coordinated optimization across operators, communication, parallelism strategies, and data pipelines. For teams planning to train large models on diversified compute platforms, understanding the principles of sharding strategies such as FSDP and the engineering essentials of each stage of the training pipeline is a prerequisite for sound technology selection. As domestic compute software stacks continue to mature, the range of compute options for large-model training will become more diverse—a positive development for both cost control and supply chain resilience.
