Technical Analysis: Chinese AI Chip Completes Training Adaptation for a Trillion-Parameter LLM

    This article examines a case in which a domestically developed Chinese AI chip completed training adaptation for a 2.8-trillion-parameter open-source large language model. It covers the memory, communication, and operator challenges of training at this scale, the role of FSDP2 in parameter sharding, the stages of an end-to-end training pipeline, and criteria for evaluating heterogeneous compute platforms.

    1. Background and Technical Significance

    Recently, an AI platform open-sourced a flagship large language model with 2.8 trillion parameters. A Chinese AI chip vendor then announced that it had completed training adaptation for this model. The adaptation used the vendor’s flagship training and inference integrated AI accelerator card and its in-house software stack. It covers the full training pipeline, from model loading and shard scheduling to gradient synchronization.

    The technical significance of this case is that it shows a non-mainstream compute platform can support end-to-end training of an ultra-large model. This is an important sign of how mature China’s domestic compute ecosystem has become.

    For large model training, “able to run inference” and “able to train” are requirements of very different scale. Inference only requires the forward pass, so memory and compute demands are manageable. Training involves backpropagation, gradient synchronization, and optimizer state maintenance. Memory usage can reach several times the parameter count or more, and training places strict demands on operator coverage, communication efficiency, and numerical stability. A successful training adaptation therefore means the platform’s software stack has reached a usable level in operator completeness, distributed scheduling, and fault tolerance.

    2. Core Challenges of Large Model Training

    2.1 The Memory Wall

    For a trillion-parameter model, training memory consumption mainly comes from:

    • Model weights, typically in half precision;
    • Activation caches for each layer, which scale with sequence length and batch size;
    • Gradient buffers;
    • Optimizer states, such as Adam’s momentum and second-moment estimates, typically stored in FP32.

    As a rough estimate, weights, gradients, and optimizer states alone can consume more than 16 times the parameter count in memory. A single device cannot hold this much, so distributed strategies that shard the training state are required.

    2.2 Communication and Synchronization Overhead

    Under data parallelism, every training step ends with a global gradient synchronization (AllReduce). The communication volume scales with the parameter count. At the trillion-parameter scale, poor communication efficiency leaves GPUs idle while they wait, which wastes compute. Training frameworks therefore typically overlap communication with computation. They split gradients into multiple buckets and start communicating each bucket as soon as its backward computation finishes. This hides communication latency.

    2.3 Operator Ecosystem Completeness

    Backpropagation requires a gradient implementation for every forward operator, including support for higher-order mixed-precision operations. On a new hardware platform, the largest effort is often not providing compute capacity. It is filling operator coverage gaps, validating numerical precision, and optimizing operator performance. This is a core factor that has long constrained the deployment of domestic chips, because software stack maturity is the bottleneck.

    3. FSDP2: A Key Paradigm for Modern Large Model Training

    A highlight of this adaptation is the native FSDP2 multimodal training path. FSDP (Fully Sharded Data Parallel) is one of the mainstream approaches for training very large models. Its core idea is to shard model parameters, gradients, and optimizer states across compute nodes. When the forward or backward pass needs a module, the full parameters are temporarily gathered with an AllGather operation. Once the computation finishes, the non-local shards are released immediately.

    Compared with the first-generation approach, FSDP2 includes these main improvements:

    1. A finer-grained sharding representation based on DTensor, which maps sharding strategies more naturally to device topology;
    2. More flexible control over sharding granularity, such as sharding by whole transformer layers, which makes it easier to tune strategies for different model architectures;
    3. A simplified memory management path that reduces peak memory usage.

    At the trillion-parameter scale, FSDP2 is typically combined with tensor parallelism and pipeline parallelism. Tensor parallelism splits the matrix multiplication within a single layer. Pipeline parallelism splits the model by layer across nodes to form a computation pipeline. FSDP2 shards parameters and optimizer states. Together, these three approaches make it possible to fit the complete training state within limited memory.

    4. Components of an End-to-End Training Pipeline

    A full large model training adaptation typically requires the following stages.

    4.1 Model Loading and Weight Conversion

    Open-source models are usually stored in specific formats, such as sharded safetensors files. The adaptation first requires the hardware platform’s software stack to correctly parse and load these weights, then re-shard them according to the sharding strategy. An illustrative workflow is shown below:

    1. # Illustrative pseudocode: weight loading and sharding
    2. state_dict = load_sharded_weights(model_dir)
    3. model = LargeLM(config)
    4. sharded_model = apply_fsdp2(model, sharding_strategy="full_shard")
    5. sharded_model.load_state_dict(state_dict, strict=True)

    4.2 Shard Scheduling

    The framework must determine the parallelism strategy based on device topology, including the number of nodes, the number of accelerators per node, and interconnect bandwidth. This can be automatic or semi-automatic. Decisions include which layers use full sharding, which layers are replicated, and where activation checkpointing is inserted. This step directly determines the balance between training throughput and peak memory.

    4.3 Gradient Synchronization and Optimizer Updates

    Gradients produced during the backward pass must be reduced and scattered back to their shard owners (ReduceScatter). The local optimizer then updates the parameters. Under mixed-precision training, the framework must also maintain the relationship between master weights (FP32) and compute weights (BF16/FP16), and handle numerical stability mechanisms such as loss scaling.

    4.4 Multimodal Support

    The adaptation’s multimodal training path means the pipeline covers more than text-only language models. It also covers joint training of modules such as vision encoders. Multimodal training adds requirements for the data pipeline, including preprocessing and packing of image-text aligned samples, and for sharding strategies across heterogeneous submodels. It is an important part of the complete training pipeline.

    5. Implications for China’s Compute Ecosystem

    This adaptation shows that Chinese AI chips are moving from usable single-point compute toward closed-loop end-to-end training. Developers and enterprise users choosing heterogeneous compute platforms should evaluate the following capabilities:

    1. Operator coverage and framework compatibility of the software stack, including whether it supports mainstream distributed training paradigms;
    2. Communication libraries and interconnect bandwidth, since intra-node and inter-node collective communication performance determines scaling efficiency;
    3. Numerical precision consistency, verified against mainstream platforms to ensure that training convergence is reproducible;
    4. Toolchain completeness, including performance profiling, checkpoint-based training resumption, and monitoring and alerting.

    6. Conclusion

    Training adaptation for trillion-parameter models is a key test of AI infrastructure maturity. Hardware provides compute, the software stack determines whether that compute is usable, and a complete training pipeline determines whether it can scale. As more platforms build end-to-end pipelines like this, the link between large model training and any specific compute ecosystem will gradually loosen. Developers will have more options for compute. For technical teams, understanding the principles and adaptation requirements of distributed paradigms such as FSDP is essential groundwork for evaluating and working with heterogeneous compute platforms.