2.8T-Parameter Open-Source Model Training on a Domestically Developed AI Computing Platform: Native FSDP2 Multimodal Adaptation

    This article examines how a domestically developed training-and-inference integrated AI computing platform adapted its hardware and software stack to train a 2.8-trillion-parameter open-source flagship model. It explains the memory and communication challenges of trillion-parameter training, the role of Fully Sharded Data Parallel (FSDP2), and how parameter sharding, expert parallelism, checkpointing, gradient synchronization, and mixed-precision strategies fit together. It also reviews the software-stack layers required to translate accelerator capability into real training throughput and summarizes practical guidance for teams building large-model training infrastructure.

    2.8T-Parameter Open-Source Model Training on a Domestically Developed AI Computing Platform: Native FSDP2 Multimodal Adaptation

    1. Background: Training Challenges in the Trillion-Parameter Era

    In recent years, the parameter scale of open-source large models has continued to rise. Some flagship open-source models now have total parameter counts in the trillions and commonly adopt Mixture-of-Experts (MoE) architectures to balance inference cost and model capability. This exponential growth in parameters places unprecedented pressure on training infrastructure: a single accelerator card can no longer hold complete model weights, gradients, and optimizer states; cross-node communication overhead becomes a throughput bottleneck; and heterogeneous processing of multimodal data further complicates the training pipeline.

    Against this backdrop, the maturity of domestically developed AI computing hardware and supporting software stacks directly affects whether local developers can efficiently pretrain, continue training, and fine-tune such very large models. Recently, a domestically developed training-and-inference integrated AI computing platform, based on its flagship AI accelerator cards and in-house software stack, completed training adaptation for a 2.8-trillion-parameter open-source flagship model. It built a native Fully Sharded Data Parallel (FSDP2) multimodal training path and connected the full training chain from model loading and sharding scheduling to gradient synchronization. Using such practices as a starting point, this article systematically outlines the general technical framework and key engineering points for training adaptation of very large parameter models.

    2. Why Fully Sharded Data Parallel Is Needed

    2.1 The Memory Wall: The First Barrier in Large-Model Training

    For a model with trillions of parameters, even with half-precision storage, the model weights alone require thousands of GB of memory. Adding gradients and optimizer states—common adaptive optimizers maintain two momentum states per parameter—the total memory demand is often several times that of the weights themselves. No single accelerator card can hold this, so cross-device sharding strategies are required.

    2.2 The Core Idea of FSDP2

    The core idea of Fully Sharded Data Parallel is to partition model parameters, gradients, and optimizer states across the device dimension. Each compute unit holds only its own shard. During the local stages of forward and backward computation, communication primitives temporarily gather the complete parameters needed, and once computation is complete, those parameters are immediately released or resharded. Compared with earlier versions, the new generation of FSDP makes key improvements in the following areas:

    • Finer-grained sharding units: sharding is managed at tensor granularity rather than collecting whole modules, reducing peak communication and memory usage.
    • Pipeline overlap of communication and computation: parameter gathering, gradient reduction, and computation are fully overlapped to hide communication latency.
    • More flexible hybrid sharding: different sharding topologies can be used within and across nodes to adapt to different network bandwidth environments.

    2.3 Coordination with Expert Parallelism

    For MoE models, parameter sharding alone is not enough. Expert subnetworks also need to be distributed across different devices (expert parallelism), and load imbalance caused by routing needs to be managed. In engineering practice, parameter sharding, expert parallelism, and data parallelism are usually combined into a multidimensional parallel strategy, together with dynamic load balancing and capacity-factor tuning, to prevent individual devices from becoming performance bottlenecks.

    3. Analyzing the Full Training Adaptation Chain

    Completing training adaptation for a very large model essentially means making the model-framework-hardware three-layer stack work together. Based on this adaptation practice, the work can be broken down into four key stages.

    3.1 Model Loading and Weight Sharding

    Trillion-parameter weight files are enormous. The loading stage must use streaming, sharded reads to avoid any single process reading all weights at once. Common approaches include:

    1. Precompute the shard range each card should hold based on the parallel topology.
    2. Use lazy loading with memory mapping, materializing the corresponding shard only when needed.
    3. Store checkpoints in sharded form and use parallel read/write so that save and restore time scale approximately linearly with cluster size.

    3.2 Sharding Scheduling and Computation Graph Construction

    The software stack needs to bind the model computation graph to the sharding plan at compile time or runtime: it must specify which devices each operator’s input and output tensors reside on, when gathering is required, and when sharding or release can occur. For multimodal models, the vision encoder, text backbone, and fusion modules often use different parallel strategies. The scheduler must support segment-level heterogeneous sharding configurations, allowing different subnetworks to use different combinations of parallel dimensions.

    3.3 Gradient Synchronization and Communication Optimization

    Gradients produced by backpropagation need to be reduced within the device groups that hold the same parameter shards. Key engineering methods include:

    • Gradient bucketing: merge multiple small gradient tensors into larger communication blocks to reduce communication count and improve bandwidth utilization.
    • Communication-computation overlap: launch reduction for ready buckets before backward computation has fully completed.
    • Topology awareness: organize reduction order hierarchically based on the bandwidth differences between intra-node high-speed interconnects and inter-node networks, prioritizing high-bandwidth links.

    3.4 Precision Strategy and Numerical Stability

    Very large-scale training generally uses mixed precision: forward and backward computation use low-precision formats to improve throughput, while master weights and optimizer states retain high-precision copies to ensure convergence stability. This must be combined with gradient scaling, loss-spike monitoring, and automatic recovery mechanisms to keep numerical behavior controllable over training cycles that last for weeks.

    4. Software Stack: The Key to Turning Hardware Capability into Results

    The peak compute of a training-and-inference integrated AI accelerator card is only paper capability. Whether it can be realized in real training depends on the maturity of the supporting software stack. A software stack for large-model training typically needs to cover the following layers:

    Layer Responsibility
    Driver and runtime Device management, memory allocation, operator scheduling, stream and event synchronization
    Operator library High-performance implementations of core operators such as matrix multiplication, attention, and normalization
    Communication library Efficient implementations of all-gather, all-reduce, and point-to-point communication over intra-node and inter-node interconnects
    Parallel framework adaptation layer Connects to the distributed interfaces of mainstream training frameworks to implement FSDP and other strategies
    Training toolchain Checkpoint management, resumable training, performance profiling, and fault diagnosis

    Among these, the framework adaptation layer is often the main battleground: it must precisely map the parallel semantics declared by the framework into low-level operator calls and communication primitive sequences, and perform deep optimizations such as operator fusion and memory reuse for hardware characteristics. In this adaptation, natively building the FSDP2 multimodal training path means the software stack has reached capability aligned with the mainstream ecosystem at the distributed interface level.

    5. Practical Recommendations for Developers

    For teams that want to conduct very large model training on domestically developed AI computing platforms, the following experience is generally useful:

    1. Validate at small scale before scaling up: verify sharding correctness, convergence behavior, and memory usage on a small number of devices, and confirm there is no gradient mismatch before expanding the cluster.
    2. Build quantitative models for memory and communication: estimate peak memory and communication volume from parameter count, parallel dimensions, and sequence length to avoid blind trial and error.
    3. Prioritize checkpoint engineering: use sharded and asynchronous checkpoint strategies to minimize the impact of save overhead on training throughput.
    4. Improve observability: establish unified monitoring for loss curves, gradient norms, communication time, and device utilization to quickly locate performance regressions and abnormal jitter.
    5. Use general platform capabilities: combine general-purpose cloud services such as object storage (for datasets and checkpoints), container platforms (for orchestrating training jobs), logging, and monitoring/alerting (to keep long-running training stable) to build end-to-end training infrastructure.

    6. Conclusion

    Training adaptation for trillion-parameter open-source models is a comprehensive test of AI computing hardware, software stacks, and engineering methodology. The completion of training adaptation for a 2.8-trillion-parameter model and the native FSDP2 multimodal training path on this domestically developed AI computing platform show that domestically developed hardware and software systems are gradually maturing in very large model training scenarios. As the open-source model ecosystem continues to flourish and the domestic computing foundation improves, developers will have more diverse and controllable technical choices for very large model training.