Ultra-Large Model Training Adaptation on a Domestic AI Computing Platform: A Technical Analysis

    This article examines how a domestic AI computing platform, using flagship training-and-inference AI accelerator cards and a self-developed software stack, completed training adaptation for a 2.8-trillion-parameter open-source model. It explains the main challenges of trillion-parameter training, the role of a native FSDP2 sharding path, key stages in the training pipeline, and the implications for the domestic AI computing ecosystem.

    1. Background: Open-Source Ultra-Large Models and Domestic Compute Converging

    In recent years, model parameter scales have continued to rise, with leading models moving from hundreds of billions of parameters to trillions as a common scale. Recently, a large-model team open-sourced a flagship model with 2.8 trillion parameters, further lowering the barrier for the industry to study ultra-large model architectures and training methods.

    At the same time, another equally important signal is that a domestic AI computing platform, based on flagship training-and-inference integrated AI accelerator cards and a self-developed software stack, completed training adaptation for this model. It built a native FSDP2 multimodal training path and connected the full training chain from model loading and sharding scheduling to gradient synchronization.

    Together, these developments indicate that domestic compute is moving beyond “can run inference” toward the higher-threshold capability of “can train large models.” Training adaptation is far more difficult than inference adaptation because it places much stricter requirements on operator completeness, communication efficiency, memory management, and numerical stability.

    2. Why Ultra-Large Model Training Is So Difficult

    To understand the value of this adaptation, it is necessary to understand three major barriers facing trillion-parameter model training.

    2.1 Memory Wall

    Taking 2.8 trillion parameters as an example, even with FP16/BF16 storage, model weights alone require about 5.6 TB of memory. Adding optimizer states, which are usually several times the parameter count, along with gradients and activations, total memory demand far exceeds what any single card or even a single machine can carry. The industry typically needs thousands of accelerator cards working together, and the memory management strategy directly determines whether training is feasible.

    2.2 Communication Wall

    Under combinations of data parallelism, tensor parallelism, pipeline parallelism, expert parallelism, and other strategies, the volume of AllReduce, AllGather, and ReduceScatter communication between cards and machines is enormous. If communication bandwidth is insufficient or communication-computation overlap is inadequate, GPU utilization can drop sharply.

    2.3 Stability and Convergence Wall

    During very long training cycles, hardware failures, numerical overflow, loss spikes, and other issues can occur at any time. Robust checkpoint fault tolerance, mixed-precision loss scaling, gradient clipping, and related mechanisms are needed to keep training sustainable.

    3. FSDP2: Evolution and Key Mechanisms of Fully Sharded Data Parallel

    One highlight of this adaptation is the construction of a native FSDP2 training path. The core idea of FSDP (Fully Sharded Data Parallel) is not to replicate the full model on every card, but to store parameters, gradients, and optimizer states in shards. They are temporarily aggregated when needed for forward and backward computation, then released after use.

    Compared with earlier implementations based on flattened parameter wrapping, FSDP2 is refactored around per-parameter sharding (DTensor) and offers several notable advantages:

    • Finer sharding granularity: precise splitting by parameter dimensions avoids memory fragmentation caused by flattening and improves memory utilization.
    • Clearer decoupling from mixed precision and quantized training: this makes combinations easier.
    • More flexible reshard strategies: aggregated parameters can be released immediately after forward computation, further reducing peak memory.

    An illustrative pseudocode example is as follows:

    1. # Typical form of FSDP2 sharded wrapping (illustrative)
    2. from torch.distributed.fsdp import fully_shard
    3. for block in model.transformer_blocks:
    4. fully_shard(block, sharding_strategy=ShardingStrategy.FULL_SHARD)
    5. fully_shard(model) # Root module fallback sharding

    In trillion-parameter scenarios, FSDP2 usually also needs to be combined with tensor parallelism, pipeline parallelism, and expert parallelism to form 3D/4D parallelism. The sharding scheduler must dynamically balance compute efficiency and memory footprint.

    4. Three Key Stages in the Training Pipeline

    4.1 Model Loading

    Loading an ultra-large model is itself an engineering challenge: checkpoints may reach tens of TB and require sharded loading, format conversion, and resumption from checkpoints. A good implementation splits data according to the target shard layout during loading, avoiding the memory and time overhead of a second reshard after loading.

    4.2 Sharding Scheduling

    The training framework needs to automatically plan shard boundaries and parallelism strategies based on model structure, such as MoE expert layers and multimodal visual encoders versus the language model backbone. It must also handle different splitting requirements of heterogeneous modules. The addition of a multimodal path means the visual side and language side need coordinated design in the data pipeline and parameter sharding.

    4.3 Gradient Synchronization

    After backpropagation is complete, gradients need to be reduced across cards. An efficient implementation uses gradient bucketing, overlaps communication with backward computation, and replaces AllReduce with ReduceScatter, which naturally fits FSDP sharding semantics. In this way, communication overhead is hidden behind computation as much as possible.

    5. Implications for the Domestic AI Computing Ecosystem

    This adaptation shows that domestic AI accelerator cards combined with a self-developed software stack already have the complete engineering capability needed to support trillion-parameter large-model training. The value appears at three levels:

    1. Ecosystem compatibility: being able to adapt to mainstream open-source large-model training workflows means developer migration costs remain manageable.
    2. Full-stack autonomy: vertical integration from hardware, drivers, and compilers to the distributed training framework is an important guarantee of stability.
    3. Training-inference integration: the same AI accelerator card covers both training and inference scenarios, helping reduce customers’ overall total cost of ownership.

    For enterprises planning to conduct large-model training on the cloud, regardless of the compute base they choose, they should focus on evaluating operator coverage and performance, the maturity of the distributed training framework, communication library optimization for large-scale networking, and fault recovery and elastic scheduling capabilities. Major cloud platforms are also continuing to improve large-model training services and AI computing infrastructure, providing integrated support from compute and storage to training platforms.

    6. Conclusion

    The near-simultaneous emergence of open-source trillion-parameter models and domestic compute training adaptation outlines two keywords for the large-model era: openness and autonomy. The native implementation of advanced parallel technologies such as FSDP2 on a domestic software stack demonstrates that the core methodology of ultra-large-scale training is cross-platform and general. Real competition will concentrate on refining engineering details and deepening hardware-software co-optimization. It is foreseeable that more ultra-large models will be trained on diversified compute bases, and the AI infrastructure landscape will become increasingly rich.

    (Note: This article is a general interpretation based on publicly available technical information. The technical mechanisms described are common industry approaches.)