LLM Training on Chinese-Developed GPUs: From Initial Enablement to Stable Execution

    Enabling large-model training on a GPU platform requires more than running inference. This article examines the engineering work behind stable training on Chinese-developed GPUs, including FSDP-based state sharding, distributed communication, numerical validation, and staged scaling. It also explains how reusable operators, parallelism templates, and operational tooling turn individual model adaptations into a repeatable training workflow.

    1. Training Enablement Is Fundamentally Different from Inference Support

    When integrating large models with AI accelerators, “model support” can describe very different levels of capability. Supporting inference and supporting training are distinct engineering challenges, and understanding that distinction is essential when evaluating a compute platform.

    Inference support focuses on executing a model’s forward pass. The main tasks include operator coverage, graph optimization, and precision conversion, such as FP16 execution or INT8 quantization. Validation primarily concerns the numerical correctness of forward computation. Many claims of “day-zero support” for a newly released open-source model fall into this category: the weights have already been trained elsewhere, and the new hardware only needs to execute the inference pipeline.

    Training support is substantially more complex. A complete training step involves four stages:

    1. Forward propagation.
    2. Backward propagation.
    3. Gradient communication.
    4. Optimizer state updates.

    A missing operator, numerical overflow, or communication failure at any stage can interrupt training or cause the loss to diverge. Training also requires memory for parameters, gradients, optimizer states—such as Adam’s first and second moments—and activations. These requirements place much greater demands on memory management and multi-GPU coordination than inference does.

    Consequently, enabling training for an extremely large model, such as one approaching three trillion parameters, represents a much broader technical achievement than successfully running inference. It requires validation of the full path from model loading and parameter sharding to gradient synchronization and optimizer updates.

    2. Parameter Sharding: The Memory Foundation for Large-Model Training

    For a model with nearly three trillion parameters, the parameters alone require approximately 6 TB of memory in BF16. Gradients and optimizer states can push total memory requirements into the tens of terabytes, far beyond the capacity of a single GPU or server.

    A common solution is fully sharded data parallelism, as implemented by Fully Sharded Data Parallel (FSDP).

    Instead of storing a complete model replica on every GPU, this approach partitions parameters, gradients, and optimizer states across participating GPUs. Each GPU retains roughly 1/N of the sharded state. Before computation, an AllGather operation temporarily assembles the required parameters. Those temporary parameters can be released after use, while ReduceScatter synchronizes gradient shards during backward propagation.

    This reduces persistent per-GPU state from a full model replica to approximately 1/N of the model state, alongside temporary gathering buffers and other runtime memory requirements.

    Building a native FSDP2-based multimodal training path requires several capabilities from the accelerator software stack:

    • Distributed communication primitives: Efficient AllGather, ReduceScatter, and AllReduce implementations, with communication–computation overlap to hide communication overhead.
    • Shard-aware loading and scheduling: Weights must be partitioned during loading rather than loading the complete model before sharding it, which would create a large memory peak.
    • Coordinated gradient synchronization and optimizer updates: Gradient shards must remain correctly aligned with optimizer states, preserving the mathematical behavior of the update under sharded execution.
    • Multimodal support: Models with heterogeneous components, such as vision encoders, need sharding strategies that accommodate different parallelism granularities across submodules.

    Consider a two-node, 16-GPU training configuration. The nodes are connected through a high-speed interconnect, and each of the 16 training processes holds approximately one-sixteenth of the sharded model state. Cross-node communication handles parameter gathering and gradient reduction, directly testing inter-node bandwidth and communication-library stability.

    This topology illustrates the mechanics of sharding; whether a particular model fits still depends on its total memory requirements.

    3. Numerical Stability: The Test of Training Correctness

    A training job that starts successfully is not necessarily training correctly. Numerical stability is a central measure of training support quality.

    Three checks are particularly important:

    1. Loss remains finite and follows the expected trajectory. It should not become NaN or Inf, and its behavior should align with the reference implementation.
    2. Gradient norms remain finite. Unexpected spikes can indicate numerical errors in operators or an unsuitable mixed-precision scaling strategy.
    3. Execution remains uninterrupted. Extended runs should not encounter communication timeouts, out-of-bounds memory accesses, or process crashes.

    A common validation method is to run hundreds of consecutive optimizer updates—for example, 400 steps—while monitoring loss and gradient norms throughout.

    The emphasis on optimizer updates, rather than iteration count alone, matters. With gradient accumulation, multiple forward and backward passes may occur before a single parameter update. Only steps that actually execute the optimizer validate the entire training path.

    Mixed-precision training also requires attention to loss scaling where it is used. A dynamic loss scaler should adjust its scaling factor in response to gradient overflow. Systematic numerical issues in low-precision operators can increase overflow frequency, making overflow behavior a useful diagnostic signal when investigating compatibility problems.

    4. A Staged Path from Small-Scale Validation to Large-Scale Training

    Training enablement typically follows a progressive validation process.

    Stage 1: Single-GPU or Single-Node Operator Validation

    Compare core operators—including matrix multiplication, attention, normalization, and activation functions—with a reference implementation.

    Numerical differences must remain within appropriate tolerances. For example, a BF16 validation test might use a relative-error threshold below 1e-2, depending on the operator and test conditions.

    Stage 2: Small-Scale End-to-End Training

    Run the complete training pipeline on a small cluster, such as two nodes with 16 GPUs.

    Execute hundreds of consecutive optimizer updates to verify that communication, sharding, and optimizer behavior work correctly together. This stage validates the distributed training path before expanding to larger deployments.

    Stage 3: Large-Scale, Long-Duration Training

    Scale to hundreds or thousands of GPUs to support training from scratch or complete training workflows for models ranging from hundreds of billions to trillions of parameters.

    This stage introduces more complex combinations of parallelism, including pipeline parallelism and expert parallelism for mixture-of-experts (MoE) models. It also requires production capabilities such as fault-tolerant checkpointing and elastic training.

    MoE architectures create additional communication demands. Expert parallelism routes tokens between GPUs hosting different experts, typically using AllToAll communication. These exchanges can be irregular, and expert workloads may be imbalanced, placing substantial pressure on the interconnect topology and communication library.

    Validating these workloads on Chinese-developed accelerators generally requires coordinated optimization at both the operator and scheduling layers.

    5. Turning Model Adaptation into a Reusable Training System

    Enabling one model is only a starting point. The more important engineering goal is to make that work reusable, reducing the effort required to train subsequent models.

    A repeatable training system typically has four layers:

    • Operator support: An operator library covering mainstream model architectures, supported by automated numerical comparison tests. When a new model arrives, teams can identify and implement missing operators more quickly.
    • Multi-GPU coordination: Validated parallelism templates combining data, tensor, pipeline, and expert parallelism, with communication–computation overlap built into the execution strategy.
    • Automated tooling: Memory estimation, parallelism-strategy search, performance bottleneck analysis, and checkpoint-based recovery to reduce manual tuning.
    • Platform operations: Container orchestration, logging, monitoring, and alerting to support job scheduling, observability, and fault recovery.

    Cloud platforms can provide the operational foundation for this final layer. For example, container orchestration and monitoring services offered by platforms such as Baidu AI Cloud can support training-job lifecycle management and help teams detect and address failures in large clusters.

    The objective is to move from a one-off successful adaptation toward a workflow in which supported models can begin training with minimal additional integration work.

    6. Conclusion

    Training support is a key measure of the maturity of a GPU software stack. The path from a small validation run—such as 400 consecutive optimizer updates on a two-node, 16-GPU cluster—to complete training of models with hundreds of billions of parameters, and eventually trillion-parameter workloads, depends on accumulated engineering across operators, communication, scheduling, and tooling.

    When evaluating a compute platform, developers should look beyond whether a model launches or completes inference. The more meaningful questions are whether the platform provides a complete distributed training path, demonstrates numerical stability, and offers reusable engineering infrastructure.

    Those capabilities determine whether successful training on Chinese-developed GPUs remains an isolated achievement or becomes a repeatable, scalable practice.