Training 2.8T-Parameter LLMs on Chinese AI Compute: From Software Stack to End-to-End Pipeline
This article examines the engineering requirements for training an ultra-large 2.8-trillion-parameter open-source LLM on a Chinese AI accelerator platform. It covers the memory, communication, and ecosystem barriers; the role of native FSDP2-based distributed training; and key stages of the full pipeline, including model loading, shard scheduling, and gradient synchronization. It also discusses the software-stack and ecosystem implications of training-inference integrated AI compute.
1. Background: The Dual Test of Ultra-Large Model Training on Compute Systems
Recently, the industry open-sourced a flagship large language model with 2.8 trillion total parameters, once again resetting the open-source community’s understanding of model scale. At the same time, a Chinese AI chip vendor announced that, based on its training-and-inference integrated AI accelerator card and self-developed software stack, it had completed training adaptation for this model and connected the end-to-end training pipeline.
The technical significance of this event is not a single product launch, but the trend it reveals: training of ultra-large-scale models is moving from a single compute route to multiple coexisting compute routes. To run trillion-parameter model training on a non-mainstream accelerator system, the problems that must be solved are far more complex than simply “getting it to run.”
Let’s first break down why training a 2.8-trillion-parameter model is difficult:
- Memory wall: In mixed-precision training, model weights, optimizer states, and gradients alone may occupy tens of TB of memory, far exceeding single-card or even single-node capacity.
- Communication wall: After parameter sharding, every forward and backward step involves massive collective communication. Interconnect bandwidth directly determines training efficiency.
- Ecosystem wall: Mainstream training frameworks and operator libraries have long been optimized around specific hardware ecosystems. New hardware must build full-stack capabilities ranging from compilers and operator libraries to distributed training frameworks.
2. Core of Training Adaptation: Building a Native Distributed Training Path
The original article mentions a key point: a “native FSDP2 multimodal training path.” Here we can abstract two technical concepts that deserve deeper understanding.
2.1 Basic Principles of Fully Sharded Data Parallel (FSDP)
FSDP is one of the mainstream parallelism schemes for large model training today. Its core idea is not to replicate the complete model state on every card, but to shard parameters, gradients, and optimizer states across devices and temporarily aggregate them through collective communication when needed:
Traditional DDP: each GPU stores full weights + full gradients + full optimizer statesFSDP sharding mode: each GPU stores only 1/N weights + 1/N gradients + 1/N optimizer statesall-gather on demand during forward/backward, release after use
This “use and release” strategy reduces memory usage from O(total model size) to O(total model size / N + activations), which is the foundation for trillion-parameter training. FSDP2 usually refers to an evolved implementation of this approach, for example, moving from wrapper-based methods to a more native implementation based on device-pointer tensors, providing finer memory management and lower communication overhead.
2.2 Why “Native” Adaptation Matters
For new hardware, there are two paths to support FSDP:
- Compatibility adaptation: Perform translation at the framework layer and map the computation graph onto existing hardware abstractions. The advantage is fast time to results; the disadvantage is performance loss from layered encapsulation and black-box debugging.
- Native adaptation: Reimplement and tune from operator libraries and communication libraries to distributed strategies for hardware characteristics.
A native path means every stage in the training pipeline—model loading, shard scheduling, gradient synchronization—is deeply optimized for the new hardware. This is the real weight of the phrase “connecting the full training pipeline”: it represents full-stack connectivity rather than a single-point breakthrough.
3. Three Key Stages of the Full Training Pipeline
3.1 Model Loading: The First Barrier for Trillion-Parameter Models
For a 2.8-trillion-parameter model, storing weights only in half precision can already produce weight files of several TB. The loading stage must address:
- Sharded loading: Model files are stored as shards. During loading, they are mapped directly to the corresponding devices to avoid the memory peak of aggregating first and sharding later.
- Data type management: Training usually uses BF16/FP16 mixed precision, with some sensitive computations falling back to FP32. The precision strategy for each module must be clear at the loading stage.
- Checkpoint resume support: Large-scale training often runs for weeks. Checkpoint saving and recovery must align with the shard layout.
3.2 Shard Scheduling: Balancing Workload and Memory on Every Card
A sharding strategy is not better simply because it slices more finely. Engineering requires tradeoffs:
| Strategy dimension | Benefit | Cost |
|---|---|---|
| Finer shard granularity | Lower memory footprint | More frequent communication |
| Larger shard units | Higher communication efficiency | Higher memory peak |
| Hybrid parallelism (data + tensor + pipeline) | Balances scale and efficiency | Complex topology-aware tuning |
Actual training often uses 3D parallelism (a combination of data, tensor, and pipeline parallelism) plus FSDP. The scheduler must automatically place compute shards according to cluster topology (intra-node high-speed interconnect and inter-node network bandwidth).
3.3 Gradient Synchronization: Communication Efficiency Determines Training Throughput
After backpropagation completes, the local gradients held by each device need to be reduced via reduce-scatter to maintain parameter consistency. For trillion-parameter models, even if only gradient shards are communicated each time, the cumulative data volume is still enormous. Common optimizations include:
- Computation-communication overlap: Overlap the reduction of gradients from completed portions of backpropagation with subsequent computation.
- Gradient accumulation: Accumulate over multiple small batches before synchronization to amortize communication overhead.
- Topology-aware communication: Prefer high-bandwidth intra-node interconnect, then aggregate across nodes.
4. Training-Inference Integration and Software Stack: The Ecosystem Challenge for Chinese AI Compute
It is worth noting that this adaptation is based on a training-and-inference integrated AI accelerator card. Training-inference integration means the same hardware must support both high-throughput training and low-latency inference, which tests both hardware design and software stack: the training side needs high-bandwidth interconnect and large memory, while the inference side needs optimized operator scheduling and batching.
The deeper issue lies in the software stack. No matter how high the hardware performance ceiling is, without a mature compiler, operator library, communication library, and framework adaptation, developers still cannot use it efficiently. From industry practice, building a sustainable AI software ecosystem usually requires:
- Providing PyTorch-style development interfaces to reduce migration cost;
- Building an operator library covering common model structures and supporting custom operator extension;
- Integrating with the distributed capabilities of mainstream training frameworks (such as FSDP and DeepSpeed-style solutions);
- Comprehensive performance analysis tools that let developers locate communication and compute bottlenecks.
5. Conclusion
The emergence of the 2.8-trillion-parameter open-source model, together with the completion of its training adaptation on Chinese AI compute, points to one judgment: the era of diversified large-model infrastructure is arriving. For enterprises and developers, the focus should shift from “which vendor has stronger hardware” to “whether the training pipeline is complete, whether the software stack is mature, and whether the ecosystem is sustainable.” Only a full-stack connected compute system can truly carry the technical evolution of the next generation of large models.
