Training Trillion-Parameter Models on Chinese GPUs: Engineering Practices and Technical Analysis

    Chinese AI accelerators have often been validated primarily for inference. This article examines a recent training adaptation of a nearly 3-trillion-parameter flagship multimodal model on a Chinese GPU vendor’s training-and-inference accelerator and self-developed software stack. It clarifies the difference between inference adaptation and training adaptation, explains a native FSDP2 distributed multimodal training path, and reviews a two-node, 16-card validation with 400 consecutive stable optimizer updates. It also analyzes the engineering system required for large-scale training—operator support, multi-dimensional parallelism, communication, numerical stability, and tooling—and summarizes practical considerations for developers evaluating Chinese AI compute platforms.

    Training Trillion-Parameter Models on Chinese GPUs: Engineering Practices and Technical Analysis

    Introduction: The Key Leap from “Can Infer” to “Can Train”

    In recent years, there has been frequent news about Chinese AI chips adapting to frontier open-source large models, but most of these efforts remain at the inference level. In other words, model weights have already been trained elsewhere, and chip vendors only need to ensure the correctness of forward-computation operators and inference throughput. Recently, however, a Chinese GPU vendor used its flagship training-and-inference integrated AI accelerator card and self-developed software stack to complete training adaptation for a flagship multimodal model with nearly 3 trillion parameters. In a two-node, 16-card environment, it achieved 400 consecutive stable optimizer updates. The significance of this progress goes well beyond a routine “adaptation success” announcement.

    To understand this progress, it is first necessary to clarify a concept that is often confused in the industry: what exactly is the difference between inference adaptation and training adaptation?

    I. Essential Differences Between Training Adaptation and Inference Adaptation

    “Day 0 adaptation” usually means that on the day a new model is released, a chip or framework can already run its inference pipeline. The core of this type of validation is operator coverage: implementing operators such as attention computation, normalization, activation functions, and positional encoding correctly on the target hardware, and then optimizing latency and throughput through quantization, operator fusion, and other methods. The inference process has no backpropagation, no gradient synchronization, and no cross-node parameter consistency requirements, so the margin for error is relatively large.

    Training adaptation is an engineering challenge of an entirely different magnitude. It requires:

    1. Complete backward graph support: all forward operators must have corresponding high-performance gradient operators, and their numerical behavior must be strictly consistent with the forward pass.
    2. A working distributed training pipeline: model loading, parameter sharding, gradient partitioning, and cross-node communication (collective communication primitives such as AllReduce, AllGather, and ReduceScatter) must be stable and efficient.
    3. Numerical stability guarantees: under mixed precision (for example, BF16/FP32 mixed training), loss and gradient norms must remain finite for hundreds or even tens of thousands of steps, without overflow, NaN, or abnormal interruption.
    4. Fine-grained memory and scheduling management: trillion-parameter models far exceed single-card memory, requiring combinations of parameter sharding, activation recomputation, pipeline parallelism, expert parallelism, and other parallel strategies.

    It is worth emphasizing that the industry should strictly distinguish between “whether a model has completed pretraining on a certain chip” and “whether a certain chip has completed training adaptation for that model.” For example, a technical report published by a leading large-model team validated fine-grained expert parallelism schemes on both Chinese NPU and mainstream GPU hardware paths. However, this is cross-validation at the inference-operator level; it does not imply which side supplied the compute for foundation-model pretraining. The significance of training adaptation is to prove that a hardware platform has the complete capability to train or continue training the model from scratch, not to claim that the model was born on that platform. This rigor is a prerequisite for assessing the real level of Chinese compute.

    II. Building a Native Distributed Training Framework

    The core technical highlight of this adaptation is the construction of a native next-generation Fully Sharded Data Parallel (FSDP2) multimodal training path. Fully sharded data parallelism is one of the mainstream paradigms for current large-scale training: it shards model parameters, gradients, and optimizer states across all cards in the data-parallel group. Each card holds only part of the full state, gathers parameters on demand during the forward pass, and releases them immediately during the backward pass, thereby accommodating very large models within limited memory.

    A complete native training path usually includes the following key steps:

    • Model loading and sharding: support loading from common checkpoint formats at tensor-level granularity and mapping tensors to processes according to a sharding strategy, avoiding memory peaks caused by loading the entire model onto cards.
    • Sharding scheduling: the parameter lifecycle is managed by the framework—gather on demand, release after use, and reduce-scatter gradients. The scheduling strategy directly affects memory footprint and communication overhead.
    • Gradient synchronization: the cross-node communication library must be deeply adapted to the network topology (such as RoCE and IB) to overlap communication with computation.
    • Multimodal data pipeline: variable-length processing of image-text mixed samples, dynamic padding, and load balancing are additional difficulties that distinguish multimodal training from text-only training.
    1. # Illustration: core training loop logic based on fully sharded data parallelism (pseudocode)
    2. for step, batch in enumerate(dataloader):
    3. with fsdp_context(model): # Gather parameters on demand
    4. loss = model(batch) # Forward pass
    5. loss.backward() # Backpropagation + sharded gradient synchronization
    6. clip_grad_norm_(model, max_norm) # Gradient clipping and gradient norm monitoring
    7. optimizer.step() # Optimizer update
    8. assert torch.isfinite(loss) # Numerical stability check
    9. lr_scheduler.step()

    Being able to natively implement the above pipeline on a self-developed software stack, rather than translating instructions to another ecosystem through a compatibility layer, means having low-level control over hardware scheduling, memory management, and communication libraries. This is the foundation for long-term evolution.

    III. Stability Validation of Joint Training with 16 Cards Across Two Nodes

    The experimental configuration disclosed in the technical report is quite informative: two nodes with a total of 16 training-and-inference integrated AI accelerator cards were used for cross-node joint training. All 16 training processes completed 400 consecutive optimizer updates, with loss and gradient norms remaining finite throughout and no numerical overflow or abnormal interruption.

    Why is “400 steps” a reasonable validation milestone? Many problems in large-scale training have obvious step dependence:

    • The first few dozen steps expose operator correctness issues—loss does not decrease or diverges immediately.
    • Tens to hundreds of steps expose numerical stability issues—gradient accumulation errors under mixed precision and communication precision loss begin to appear.
    • Longer periods expose system issues such as memory leaks, memory fragmentation, and communication timeouts.

    Therefore, 400 consecutive stable updates can be regarded as a “core credibility validation” of the training pipeline: it proves that the complete loop from data loading, forward and backward computation, communication synchronization, to optimizer state updates is numerically correct and engineering-stable. Of course, to support real trillion-parameter pretraining, further validation of fault tolerance, checkpoint resumption, and fault self-healing capabilities is still needed at the scale of hundreds or even thousands of cards and over long periods of tens of thousands of steps or more. The vendor has indicated that it is working with partners to advance in this direction.

    IV. The Engineering System Behind “Chinese Chips Training Chinese Models”

    The success of a single-point adaptation does not equal platform-level capability. According to public information, the vendor has accumulated multiple large-scale training practices: completing full training of a 200-billion-parameter scientific foundation model from scratch, supporting full-stack native training of the world’s first 5D world model, and collaborating with research institutions to complete full-process training of an embodied intelligence brain model.

    Behind these cases is a mature engineering system:

    1. Operator adaptation system: rapid development and validation capabilities for custom operators in new model architectures, with numerical precision tests aligned with mainstream frameworks.
    2. Multi-card collaboration capability: data parallelism, tensor parallelism, pipeline parallelism, and expert parallelism can be combined and configured, and the communication library is deeply optimized for domestic network interconnects.
    3. Automated toolchain: including one-click environment checks before training, real-time monitoring during training (memory, compute utilization MFU, communication bandwidth), automatic fault localization, and checkpoint management.
    4. From “can train” to “out-of-the-box training”: reducing the engineering barrier for users through preset model configurations, recommended parallel strategies, and hyperparameter templates.

    For developers, the following checklist can be used to evaluate whether a Chinese training platform is mature: whether public end-to-end training reproduction scripts are available, whether lossless migration from mainstream checkpoint formats is supported, whether standard practices for mixed-precision training are provided, whether MFU remains linear as cluster scale expands, and whether fault recovery mechanisms are complete.

    V. Implications for Developers

    Large-model training is moving from being exclusive to giants toward broader industry adoption, and the maturity of Chinese compute platforms provides new choices for enterprises and research institutions. In selection and practice, three points deserve attention. First, prioritize validating full-pipeline training capability rather than single-point inference performance; the long-term stability of loss curves and gradient norms is the hard test. Second, value the native nature of the software stack and the completeness of the toolchain; compatibility-layer solutions may be feasible in the short term but will become performance and maintenance bottlenecks in the long term. Third, start with credibility validation at a small scale (such as two nodes and 16 cards) and then gradually expand to larger clusters; this is a稳健 path for controlling migration risk.

    As operator adaptation, multi-card collaboration, and automated toolchains continue to improve, frontier large models moving from “can train” to “out-of-the-box training” on Chinese full-function GPUs will become an important marker of the maturity of Chinese AI infrastructure.