Training Stability Validation: Running 400 Optimizer Steps on 16 Domestic GPUs Across Two Nodes with Native FSDP2
This article details a practical training pipeline validation conducted on 16 domestic (Chinese) GPUs distributed across two servers. It outlines the implementation of a native FSDP2 path covering model loading, shard scheduling, and gradient synchronization, and reports on a 400-step stability test. The discussion addresses the engineering system supporting operators, parallelism, and tooling, and highlights internal case studies. The article also delineates which results are clearly established versus those requiring further verification.
Background: Training Demands More from Compute Than Inference
As large model parameter counts continue to grow, the demands of distributed training differ significantly from inference. Training must handle parallel sharding, gradient synchronization, memory footprint management, and long-duration operational stability; a failure in any of these areas can abort the entire job. Although domestic GPUs have accumulated considerable experience in inference deployments, the completeness and stability of the training pipeline remain a focal point for the industry.
This article describes a technical practice centered on the training pipeline. The approach leverages a native FSDP2 path, integrating model loading, shard scheduling, and gradient synchronization, and completing 400 optimizer updates on a total of 16 domestic GPUs across two servers. The following sections cover the pipeline, validation results, engineering aspects, and internal case studies, while also flagging areas where the original source lacks sufficient evidence.
The Training Pipeline: The Native FSDP2 Path
Core Principles of FSDP2
FSDP2 is a widely adopted distributed training strategy. It shards model parameters, gradients, and optimizer states across multiple devices, with each GPU retaining only its designated portion. This significantly reduces per-GPU memory pressure and enables the training of larger models.
The “native” path refers to an implementation that avoids extra wrapping or conversion layers, with underlying operators and high-level scheduling aligned directly with FSDP2 semantics. Key benefits include:
- Reduced Memory Footprint: Each GPU only holds a portion of the parameters, freeing memory for larger batch sizes or deeper networks.
- Controlled Communication Volume: FSDP2’s forward pass requires all-gather to collect parameter shards, while backpropagation uses reduce-scatter to redistribute gradients. The data volume for these operations scales with the number of shards, requiring attention to network bandwidth in cross-node scenarios.
- Simpler Scaling: The original text indicates support for uneven node configurations to facilitate adding GPUs later, though specific configuration ranges are not provided.
It’s important to note that FSDP2’s communication pattern differs from the full All-Reduce used in traditional data parallelism. When evaluating communication overhead, the actual communication volume of reduce-scatter and all-gather should be the reference point.
Model Loading, Shard Scheduling, and Gradient Synchronization
Whether the training pipeline runs successfully depends mainly on three stages.
Model Loading: Training can resume from a checkpoint. The system identifies the model architecture and re-shards parameters according to FSDP2 rules, avoiding whole-model loading at each startup to minimize memory peaks.
Shard Scheduling: The original text describes a dynamic sharding strategy that adjusts shard boundaries based on device memory levels and computational load, with lightweight handling of shard metadata. Whether this strategy is production-ready, and the fallback method in case of dynamic adjustment failure, are not specified and require confirmation from the development team.
Gradient Synchronization: Gradient synchronization often becomes a bottleneck in cross-node setups. The team adapted Ring-AllReduce with a variant tailored to sharding characteristics, incorporating numerical stability checks during synchronization to prevent gradient overflow from interrupting training. The text claims an approximate 30% reduction in gradient synchronization latency, but without disclosing the baseline configuration, measurement methodology, GPU count, or network conditions. This figure needs replication in an equivalent environment before it can be fully accepted.
Stability Validation: 400 Steps on Two Nodes with 16 GPUs
Test Environment and Methodology
The test used two servers, each equipped with 8 domestic full-featured GPUs, totaling 16 GPUs. Nodes were interconnected via a high-speed network; RoCE or InfiniBand are mentioned, but specific models are not disclosed. The test model was a multimodal large model with hundreds of billions of parameters. Automatic mixed precision (BF16 as the primary format) was used for training.
The test began with random initialization and executed 400 consecutive optimizer updates without human intervention. The team recorded the loss curve, gradient norms, memory usage, and communication time.
Test Results
All 16 training processes ran continuously for 400 steps without process failures, hangs, or restarts. Other observations:
- Loss Curve: Demonstrated a general downward trend without divergence or severe oscillation.
- Gradient Norms: No NaN or Inf values appeared throughout the process; the mixed-precision scaling strategy was effective during this period.
- GPU Utilization: Internal observations indicated utilization consistently above 85% for most of the period, with memory differences across GPUs not exceeding 5%.
- Cross-Node Bandwidth: Internal observations showed utilization exceeding 70% of theoretical peak, with no extended waiting periods.
These utilization and bandwidth figures come from internal testing. The original text does not specify sampling intervals, statistical tools, or workload definitions. They should be treated as references rather than directly comparable benchmarks.
What This Test Demonstrates
The 400-step test verifies that the training pipeline can run without errors over a short duration, but it does not prove model convergence. The original text does not report the specific magnitude of loss reduction, nor does it present results from multiple repeated tests or longer-running scenarios. Therefore, a more accurate interpretation is that this serves as a short-duration stability validation. Longer training runs and more test iterations are necessary to assess whether these domestic GPUs can support sustained training.
Engineering System: Operators, Parallelism, and Tooling
Operator Adaptation
Training involves numerous convolutions, matrix multiplications, normalizations, and activation functions. The team established an operator performance library that optimizes gradient computations in the backward pass and provides automatic operator fusion to reduce kernel launch overhead. For sparse models and dynamic shapes, the system supports just-in-time (JIT) compilation.
Multi-GPU Parallelism
The system supports FSDP2 alongside combinations of data parallelism, tensor parallelism, and pipeline parallelism. Users can switch between parallel strategies via configuration files, and the system generates the corresponding communication topology and scheduling graph. The original text does not specify supported framework versions or configuration examples; therefore, the applicability of these capabilities requires further clarification.
Automated Toolchain
- Training Launch: Orchestration tools handle environment checks, resource allocation, model partitioning, and task startup.
- Monitoring: Integrates with Prometheus and Grafana to display loss, throughput, GPU utilization, and network latency.
- Fault Recovery: Upon detecting an anomalous step, the system rolls back to the most recent checkpoint and resumes training.
Internal Case Studies: From Scientific Models to Embodied Intelligence
The following cases are derived from the original text. All are internal practices without publicly verifiable data.
- Scientific Foundation Model: The text refers to a scientific foundation model with approximately 236 billion parameters. The team reportedly completed training from scratch on this pipeline without interruption. Dataset, hardware scale, training duration, and evaluation metrics are not disclosed; this should be viewed only as an internal case.
- World Model: The team participated in end-to-end training validation of a 5D world model. This model processes spatiotemporal dynamic data with numerous irregular tensor operations, placing higher demands on operator expression and memory management of the domestic GPUs.
- Embodied Brain Model: In collaboration with a research institution, the team completed the training pipeline for an embodied intelligence decision model, covering
