Adapting Domestic GPUs for Trillion-Parameter Model Training: From "Can Run" to Stable Training

    As large model parameters scale from hundreds of billions to trillions, training efficiency and research quality increasingly depend on the underlying compute power's ability to sustain long-term, stable training. This article explores the challenges and key engineering steps in adapting domestic GPUs for trillion-parameter model training. It clarifies the differences between inference access, Day 0 adaptation, and end-to-end training, details the FSDP implementation path, stability verification standards, and toolchain requirements, providing a comprehensive framework for evaluating compute platforms.

    How do we adapt domestic GPUs for trillion-parameter model training, and what are the core difficulties?

    Over the past two years, large model parameter scales have grown from hundreds of billions to trillions. Training efficiency and research quality increasingly depend on whether the underlying compute power can sustain training over long periods. Domestic full-function GPUs have made notable progress in adapting to frontier models. However, descriptions of these adaptation milestones vary significantly. Readers must first distinguish between three levels—“can infer,” “can train,” and “can stably train”—to accurately assess the stage of a compute platform. This article follows this logic to outline the key stages of trillion-parameter model training adaptation.

    1. Distinguishing Three Concepts: Inference Access, Day 0 Adaptation, and End-to-End Training

    The industry often claims that “compute chips have achieved Day 0 adaptation for the latest open-source large models,” but the meaning of this statement depends on the context. In most cases, it means that inference-side operator verification and graph compilation have passed—meaning the model can perform forward computation and output results on the chip. This proves the hardware and inference software stack work, but it does not mean the model has been pretrained on that chip.

    Pretraining demands much more from compute power, primarily involving communication bandwidth, memory scheduling, operator numerical precision, and fault tolerance. The table below outlines the differences between the three concepts to facilitate comparative evaluation.

    Dimension Inference Access Day 0 Adaptation End-to-End Training
    Main Verification Can operators run, can graphs compile Can the model be deployed on release day Full pipeline: loading, sharding, forward/backward computation, gradient sync, save & recovery
    Key Metrics Output correctness, single-pass latency Feature coverage, inference throughput Training steps, throughput, Loss & grad norm stability, fault recovery time
    Common Misconceptions Treating an inference pass as a training pass Misunderstanding successful deployment as trainable Substituting a short sprint for long-term verification

    End-to-end training covers every stage from model loading and sharded scheduling to gradient synchronization. A weak link in any stage can cause training interruptions or numerical overflow. Therefore, whether a platform can successfully adapt to advanced open-source models for training directly reflects its engineering maturity.

    2. FSDP2 Multimodal Training Path: Three Engineering Problems

    The parameters, gradients, and optimizer states of ultra-large models cannot fit entirely onto a single GPU. FSDP (Fully Sharded Data Parallel) shards these three types of states across the data parallel group, with each GPU storing only a portion and aggregating them on demand during computation. This is a foundational approach for building trillion-parameter training paths. In practice, the following three issues must usually be resolved.

    1. Model Loading and Memory Peaks: The weight files for trillion-parameter models are massive. The loading phase should use memory mapping and sharded streaming reads to prevent all processes from reading the complete weights into memory simultaneously, which would trigger OOM (Out of Memory) errors.
    2. Expert Parallelism (EP) in MoE Scenarios: Mixture-of-Experts (MoE) models need to route tokens to the corresponding expert networks. Expert parallelism must consider both routing balance and inter-node load. Otherwise, some nodes will become bottlenecks while certain experts remain idle for extended periods.
    3. Communication and Computation Overlap: In dual-node, multi-GPU topologies, cross-node communication is a primary overhead. FSDP’s parameter aggregation and gradient reduction can typically overlap with backward computation, utilizing high-speed interconnects and RDMA to reduce wait times. Note that this overlap refers to parallel execution of communication and computation in synchronous training, maintaining the same gradient synchronization semantics; it is not the same concept as asynchronous training.

    Specific framework versions, combinations of EP and FSDP, and the prerequisites for memory and communication should be based on the official documentation of the training framework used.

    3. Dual-Node Multi-GPU Debugging: Stability Verification Standards

    The difficulty of training lies in “running stably,” not just “running successfully.” According to public disclosures, a domestic flagship compute card completed cross-node joint testing on a dual-node, 16-GPU cluster. The 16 processes completed 400 optimizer updates, during which Loss and gradient norms remained finite without numerical overflow. While this result is informative, it must be understood according to the following standards:

    • 400 steps constitutes a short-run stability verification and is insufficient alone to conclude “long-term stable operation.”
    • A complete evaluation should include total training steps, continuous runtime, tokens per second throughput, number of faults, and recovery time.
    • Acceptance should simultaneously check whether the Loss curve is smooth, whether the gradient norm spikes, and whether NaN or Inf occurs.

    Numerical stability is typically ensured through three methods:

    • Dynamic Loss Scaling: In FP16 or BF16 training, gradients may underflow or overflow. Dynamically adjusting the scaling factor allows small gradients to retain valid numerical values while preventing large gradients from overflowing.
    • Gradient Clipping: After backpropagation, monitor the gradient norm and clip it if it exceeds a threshold, preventing gradient explosions from causing weight divergence.
    • Checkpoint and Fault Recovery: In long-term training, transient hardware errors are difficult to avoid entirely. Saving checkpoints periodically and supporting automatic recovery ensures that hundreds of steps or more of training progress are not lost due to occasional faults.

    When troubleshooting, you can check the following items sequentially:

    • OOM: Confirm sharding strategy and activation recomputation settings; check single-GPU memory usage.
    • NaN or Inf: Check Loss Scaling rollback counts and locate the layer and step where the anomaly first occurred.
    • Communication Timeout: Check inter-node RDMA links, topology configuration, and timeout thresholds.
    • Abnormal Increase in Gradient Clipping Frequency: Typically indicates issues with the learning rate or data distribution.
    • Recovery Failure: Verify checkpoint integrity and ensure that the parallel configuration during recovery matches the one used during saving.

    4. From “Can Train” to “Out-of-the-Box Training”: Toolchain Composition

    “Out-of-the-box training” requires the support of a software ecosystem, generally comprising three parts:

    1. Operator Library and Compilation Optimization: Provide a standard library covering common operators and support graph-level operator fusion to reduce memory access overhead. Specific operators in vision, language, and other multimodal modules often require separate optimization.
    2. Distributed Framework Compatibility: Connect with mainstream training frameworks and provide clear communication backend interfaces to lower migration costs.
    3. Monitoring and Tuning Tools: Observe memory utilization, communication bandwidth usage, and operator execution time in real time to help locate performance bottlenecks.

    In actual deployments, training tasks are often used in conjunction with cloud-native infrastructure. For example, elastic scheduling is achieved through containerization, training data is managed via object storage, and training process observability is maintained through logging and monitoring alerts. These capabilities depend on the specific environment, and their effects must be verified on your own cluster. Cloud platform selection does not change the adaptation conclusions of the compute power itself.

    You can refer to the table below to check various capabilities during verification.

    Check Item Verification Points
    Operator Coverage Are the required training operators complete? Any fallback to CPU execution?
    Communication Backend Cross-node bandwidth, topology structure, and timeout configuration
    Memory Usage Peak memory and safety margin
    Numerical Monitoring Loss, gradient norm, NaN and Inf alerts
    Checkpoint Recovery Save frequency, recovery time, consistency check
    Logging & Alerting Key metric visualization and anomaly notification

    5. Industry Progress and Future Directions

    According to public disclosures, domestic full-function GPUs have engaged in training practices across several scenarios. For example, a scientific foundation model with approximately 236 billion parameters achieved complete training from scratch, and embodied AI-related models have also completed full-process training. These cases indicate that domestic compute power possesses certain generalization capabilities in scenarios such as scientific computing and embodied AI. The parameter scales, cluster configurations, and step counts mentioned in this text are derived from public materials and have not been independently verified; please refer to original technical reports or official materials.

    Looking to the future, key areas of focus within the industry include:

    • Higher bandwidth inter-chip and intra-chip interconnect technologies to reduce cross-GPU communication overhead;
    • Automatic parallel sharding strategies for ultra-large models to reduce manual hyperparameter tuning;
    • A more comprehensive developer ecosystem and an easy-to-use automated training platform.

    As model parameters continue to grow, both the compute scale and interconnect bandwidth of a single cluster will face greater pressure. Whether domestic compute power can stably support training on trillion-parameter models depends on the collaborative maturity of interconnects, software stacks, and ecosystems. As these conditions gradually mature, domestic compute power is expected to further enhance its ability to support large model training.

    Conclusion

    The key to determining whether a compute platform possesses large model training capabilities is whether it can complete long-term, recoverable, and numerically stable training within its own environment. Readers can use the three-tier distinction and the checklist provided in this article to compare against specific platform verification reports and assess their current stage.