Training Ultra-Large Open-Source Models on Chinese AI Accelerators: A Technical Breakdown

    This article breaks down the engineering work required to adapt a 2.8-trillion-parameter open-source model for training on a Chinese AI accelerator. It explains the memory and compute pressures of trillion-parameter training, multidimensional parallelism and FSDP-style full sharding, native framework integration, model loading and shard placement, multimodal sharding scheduling, gradient synchronization with communication-compute overlap, and the engineering value of a unified training-inference architecture. It also summarizes practical deployment guidance for teams planning large-model training.

    1. Event Background: What the News Reveals About Training Adaptation

    Recently, a notable announcement appeared in the industry: an open-source community released a flagship model with 2.8 trillion parameters, and a Chinese AI chip vendor announced that, based on its self-developed flagship training-and-inference integrated AI accelerator and supporting software stack, it had completed training adaptation for the model and connected the full training path from model loading and sharding scheduling to gradient synchronization.

    At first glance, this is just an “adaptation completed” announcement. From an engineering perspective, however, completing training adaptation for a trillion-parameter model means that the hardware and software stack has been tested at extremely high intensity across compute, memory capacity, interconnect bandwidth, distributed communication, operator coverage, compilation optimization, and other dimensions. This article does not focus on any specific product. Instead, using this event as a starting point, it systematically breaks down the general technical issues behind ultra-large model training adaptation to help readers understand the key technical points and engineering methodology.

    2. Why Training Adaptation for Ultra-Large Models Is So Difficult

    2.1 Memory and Compute Challenges from Parameter Scale

    A 2.8-trillion-parameter model, even stored in a common mixed precision such as BF16, requires several TB of memory for weights alone, far beyond what a single accelerator or even a single machine can hold. Add optimizer states such as first- and second-order momentum, gradient buffers, and activations, and the actual memory requirement is often several times the weight footprint.

    Industry practice uses multidimensional parallelism:

    • Data parallelism (DP): multiple data shards are computed in parallel on different device groups; this is a basic way to scale throughput.
    • Tensor parallelism (TP): a single operator, such as a large matrix multiplication, is split across multiple accelerators to reduce per-accelerator memory pressure, but it places extremely high demands on communication bandwidth.
    • Pipeline parallelism (PP): the model is split by network layers to form pipelined compute scheduling.
    • Sequence parallelism / context parallelism: for very long sequences, attention computation is split along the sequence dimension.

    In recent years, fully sharded data parallel (FSDP) has attracted wide attention. It shards parameters, gradients, and optimizer states across multiple data-parallel replicas, aggregates them temporarily as needed during computation, and trades communication for memory. It is a deeply evolved form of data parallelism.

    2.2 Native Framework Integration: The Distance from “It Runs” to “It Runs Well”

    The news mentions building a native FSDP2 multimodal training path. The word “native” deserves elaboration. Native integration means that the training framework’s sharding scheduling, communication primitives, memory management, and other capabilities are mapped directly onto the underlying hardware and software stack, rather than “barely running” through a compatibility layer or translation layer.

    The gap between native and non-native integration is mainly reflected in:

    • Operator coverage: large-model training involves many custom operators, such as various attention variants, normalization implementations, and expert routing logic. A native stack needs to provide a complete and high-performance operator library.
    • Communication efficiency: in FSDP-style schemes, all-gather for parameters and reduce-scatter for gradients occur at very high frequency, and communication efficiency directly determines training throughput.
    • Compilation and scheduling optimization: static graph compilation, operator fusion, memory reuse, and other optimizations need to work together with sharding logic. If any link is disconnected, performance can collapse.

    3. Breakdown of Three Key Stages in the Complete Training Path

    The news summarizes the path as “model loading, sharding scheduling, and gradient synchronization.” These three stages are exactly the general skeleton of ultra-large-scale training adaptation and deserve analysis one by one.

    3.1 Model Loading: Efficient Initialization and Shard Placement for Large Weights

    Loading a trillion-parameter model is not simply “reading files into memory.” A typical flow includes:

    1. Weight sharding planning: precompute the parameter shard plan for each accelerator based on cluster topology, including the number of nodes, accelerators per node, and inter-accelerator interconnect.
    2. Layered streaming loading: use technologies such as memory mapping (mmap) to load weight shards on demand and avoid excessive memory peaks.
    3. Precision handling: complete precision conversion during loading, such as FP32 checkpoint to BF16 training state, along with parameter binding and metadata validation.

    An illustrative pseudocode logic is as follows:

    1. # Conceptual illustration: sharded initialization of a large model based on FSDP
    2. model = build_model(model_config) # Build model structure
    3. fsdp_model = FSDP2(
    4. model,
    5. sharding_strategy="FULL_SHARD", # Full sharding: parameters/gradients/optimizer states are all sharded
    6. device_mesh=cluster_mesh, # Cluster topology description
    7. mixed_precision=bf16_config, # Mixed precision strategy
    8. activation_checkpointing=True, # Activation recomputation
    9. )
    10. load_checkpoint(fsdp_model, ckpt_path) # Sharded streaming loading

    3.2 Sharding Scheduling: Amplified Complexity in Multimodal Scenarios

    This adaptation involves a “multimodal training path,” meaning the model processes text, images, and other modalities at the same time. Multimodal training imposes additional challenges on sharding scheduling:

    • Mixed heterogeneous modules: the visual encoder, language model backbone, and modality alignment modules have very different computational characteristics, so sharding strategies need to be customized by module.
    • Complex data pipeline: preprocessing for different modalities takes different amounts of time, which can easily cause uneven data supply and requires carefully designed sampling and packing strategies.
    • Dynamic shape issues: image resolution and sequence length vary, making static compilation optimization difficult. Bucketing or dynamic-shape compilation support is usually required.

    3.3 Gradient Synchronization: Overlap Design for Communication and Computation

    Gradient synchronization is a hidden bottleneck for training throughput. In FSDP-style schemes, parameters are all-gathered in the forward pass and reduced with reduce-scatter in the backward pass. Mature implementations overlap these communications with computation so that communication time is hidden within compute time as much as possible. Key methods include:

    • Bucketing: group parameters by layer or size to reduce communication granularity and increase overlap opportunities.
    • Prefetching: while the current layer is computing, fetch the parameter shards needed by the next layer in advance.
    • Communication compression and quantization: transmit gradients in low precision to reduce communication volume.
    • Topology-aware communication: distinguish intra-node (high-bandwidth interconnect) and inter-node (network) communication strategies.

    4. Value and Engineering Lessons of a Training-Inference Integrated Architecture

    Another keyword in the news is the training-inference integrated AI accelerator. Training-inference integration means that the same hardware and software stack can support both training and inference services. Its engineering value lies in:

    1. Lower model migration cost: training and inference use the same operator and compilation system, reducing adaptation friction.
    2. Unified ecosystem maintenance: one software stack covers the full lifecycle, avoiding the version management burden caused by separate training and inference stacks.
    3. Elastic resource scheduling: under a cloud platform’s containerization and scheduling system, training and inference tasks can flexibly allocate compute resources according to business peaks and valleys.

    For teams planning large-model training, general implementation recommendations include:

    • Start with small-scale smoke validation: use a smaller-parameter model to verify the correctness of the distributed strategy, communication configuration, and checkpoint flow, then scale up step by step.
    • Build comprehensive observability: training throughput (tokens/s), MFU (model FLOPs utilization), memory usage level, communication ratio, and other metrics must be monitored throughout the process, with monitoring and alerting used to quickly locate anomalies.
    • Emphasize checkpoints and fault tolerance: interruptions in tens-of-thousands-of-accelerator training are normal, and infrastructure that supports asynchronous saving and resuming from checkpoints, such as object storage, logging services, and task orchestration systems, is indispensable.
    • Co-design hardware and software tuning: prioritize reference configurations validated by hardware vendors and the training framework community, then make targeted optimizations for the model structure.

    5. Conclusion

    A Chinese accelerator completing training adaptation for a trillion-parameter open-source model is essentially a concentrated test of hardware-software co-engineering capability: a native distributed training path, a complete multimodal pipeline, and efficient communication scheduling are all indispensable. For technical teams, the lesson of this case is not a specific product but a transferable methodology: use multidimensional parallelism and full sharding strategies to solve the memory crisis, use communication-compute overlap to preserve throughput, and use training-inference integration and mature infrastructure services to reduce full-lifecycle costs. As open-source large models continue to grow in scale, engineering capability for training adaptation is becoming a core measure of the maturity of an AI computing system.