Engineering Practices for Training Large Models on 1,000-Scale Domestic GPU Clusters
As domestic AI accelerators continue to mature, training large language models on locally developed hardware is moving from proof of concept toward practical deployment. This article examines the engineering challenges of adapting a nearly 3-trillion-parameter open-source model for training on domestic GPUs, including the differences between inference and training adaptation, the implementation of FSDP2, distributed communication, numerical stability, and how to evaluate the significance of 400 consecutive training steps on a dual-node, 16-GPU setup.
Engineering Practices for Training Large Models on 1,000-Scale Domestic GPU Clusters
As domestic AI accelerators continue to improve, training domestic models on domestic hardware is moving from an industry slogan toward an engineering reality. Recently, a domestic chip vendor completed training adaptation for a nearly 3-trillion-parameter flagship open-source large model on its high-end training-and-inference accelerator. The system achieved 400 consecutive, stable training steps on a dual-node, 16-GPU configuration.
This milestone highlights several engineering questions: Why is training adaptation significantly more difficult than inference adaptation? How can the complete training pipeline be brought up on a new accelerator platform? How should long-running stability be verified? This article examines these issues in detail.
1. Training Adaptation vs. Inference Adaptation: A Fundamental Difference
The industry often describes a newly released open-source model as having received “Day 0 adaptation” for a particular accelerator. In most cases, however, this refers to inference adaptation: loading the model weights, executing the forward pass, and producing outputs on the target hardware. The primary work involves operator coverage and inference-framework compatibility, making the overall engineering effort relatively manageable.
Training adaptation is a substantially more demanding task. A complete training process includes:
- Forward computation: Similar to inference, but with intermediate activations retained for backpropagation.
- Backward propagation: The accelerator must support a large number of backward operators, while its numerical behavior must align with the reference implementation.
- Optimizer updates: These involve gradient scaling under mixed precision, momentum-state management, and related operations.
- Distributed communication: Gradient synchronization, parameter sharding, and cross-node collective communication place significant demands on interconnect bandwidth and communication-library maturity.
- Numerical stability: During long training runs, small numerical deviations can accumulate and eventually cause the loss to diverge.
A common misunderstanding arises when a technical report evaluates two accelerator platforms at the same time. Readers may conclude that the model completed pretraining on both platforms. In practice, such parallel evaluations often represent compatibility validation at the inference-operator level. The hardware used for the base model’s original pretraining may not be disclosed.
When evaluating an accelerator’s training capabilities, developers should distinguish among three levels:
- Inference-ready
- Fine-tuning-ready
- Ready for full-scale pretraining
These levels represent very different degrees of engineering maturity.
2. FSDP2: A Key Component of a Native Large-Scale Training Path
For models with trillions of parameters, a single device cannot hold the complete model state. Distributed training is therefore essential. FSDP2, or the second generation of Fully Sharded Data Parallel training, is one widely adopted approach. Its core principle is to shard model parameters, gradients, and optimizer states across devices, gathering them only when they are required for forward or backward computation.
Building a native FSDP2 training path on domestic GPUs requires several critical components.
2.1 Model Loading and Shard Scheduling
The weight files of trillion-parameter models can occupy multiple terabytes. The loading stage must support streaming reads and on-demand sharding. Otherwise, loading the complete checkpoint onto one device before partitioning it can create an unsustainable memory peak.
In practice, systems commonly combine lazy loading with an explicitly defined device mesh, allowing each accelerator to hold only the parameter shards assigned to it.
2.2 Gradient Synchronization and Communication Optimization
FSDP2 relies on Reduce-Scatter for gradient synchronization and AllGather during forward and backward execution. The accelerator interconnect topology—including high-bandwidth links within a node and RDMA networking across nodes—directly affects communication efficiency.
Common engineering optimizations include overlapping communication with computation:
# Illustrative configuration: overlap communication with computationfsdp_config = {"sharding_strategy": "full_shard","backward_prefetch": True, # Prefetch during backward to overlap communication and computation"forward_prefetch": True,"use_orig_params": True, # Support optimizers that group parameters"mixed_precision": {"param_dtype": "bfloat16","reduce_dtype": "float32", # Use higher precision during communication to reduce numerical error},}
2.3 From Fast Inference Deployment to Stable End-to-End Training
A mature engineering stack should support more than inference on the day a model is released. It should also support complete fine-tuning workflows and, eventually, continued pretraining.
This requires:
- A comprehensive library of forward and backward operators
- A validated mixed-precision strategy
- A stable distributed communication backend
- Automated tools for checkpoint resumption and anomaly detection
The ability to run inference quickly is only one part of accelerator compatibility. The more important measure of training maturity is whether the entire workflow can operate reliably over an extended period.
3. What Does 400 Consecutive Training Steps Demonstrate?
In the reported case, two servers equipped with a total of 16 training-and-inference accelerators performed joint training across nodes. All 16 training processes completed 400 consecutive optimizer updates. Throughout the run, the loss and gradient norms remained finite, with no numerical overflow or abnormal interruption.
How should the figure of 400 steps be interpreted?
First, it validates the basic functional correctness of the training pipeline. The fact that the run completed with finite loss and stable gradient norms indicates that the operator implementations, communication behavior, and parameter-sharding logic passed an initial level of verification.
Second, it provides a baseline for longer training runs. However, 400 steps should not be confused with proof of industrial-scale pretraining stability. Production pretraining jobs may require tens or hundreds of thousands of steps. Long-term validation must also cover:
- Hardware reliability over extended periods: In a cluster with thousands of accelerators, the probability of hardware failure increases with system scale. Automatic checkpointing and fault-recovery mechanisms are therefore essential.
- Long-term consistency of the loss curve: Training curves should be compared step by step with those from reference hardware to identify gradual numerical drift.
- Stable throughput: MFU, or model FLOPs utilization, must remain stable over long runs rather than gradually degrading due to memory fragmentation or communication jitter.
Stable execution for 400 steps is therefore an important milestone, but it is only the starting point for demonstrating that a system can train reliably at large scale.
4. From “Can Train” to “Ready to Train Out of the Box”
Industry practice suggests that domestic GPU training capability generally develops through three stages.
Stage 1: Point Validation
The first stage is to complete training or full-process fine-tuning for models ranging from tens of billions to hundreds of billions of parameters. This demonstrates that the basic training path is viable. Some vendors have already completed full pretraining for scientific foundation models with hundreds of billions of parameters and have supported end-to-end training for areas such as embodied intelligence and world models.
Stage 2: Scalable Replication
The second stage is to turn validated training solutions into standardized configurations that support larger clusters and longer-running jobs. Automated tools are introduced to reduce manual intervention and improve operational consistency.
Stage 3: Out-of-the-Box Training
The ultimate goal is for developers to obtain model weights and launch training through declarative configuration without needing to manage low-level operator adaptation, communication tuning, or numerical-alignment issues.
Reaching this stage requires continued investment in several areas:
- Automatic operator adaptation and graph optimization: Identify unsupported operators and generate fused alternatives automatically.
- Automatic multi-device parallelism: Select suitable combinations of data parallelism, tensor parallelism, pipeline parallelism, and expert parallelism based on model structure and cluster topology. Fine-grained expert parallelism is particularly important for Mixture-of-Experts architectures.
- Observability and diagnostic tools: Provide unified logging, monitoring, alerting, and profiling capabilities so that training failures can be located quickly.
- Checkpoint resumption and elastic scaling: Automatically remove failed nodes and resume training with minimal disruption.
For enterprise users evaluating an accelerator platform, a layered validation strategy is recommended:
- Reproduce a standard model fine-tuning task on a small cluster.
- Compare the loss curve and throughput with those of the reference platform.
- Gradually increase the cluster size and evaluate long-running stability.
- Perform end-to-end validation with the organization’s own production model.
Organizations that want to reduce the complexity of building and operating their own clusters can also use general cloud capabilities such as container platforms, object storage, and monitoring services to construct the training environment. This allows engineering teams to focus more of their effort on the model itself.
5. Conclusion
From adapting a flagship open-source large model for training to completing 400 consecutive stable steps on 16 accelerators across two nodes, domestic GPUs are demonstrating visible progress in training capability.
Technical evaluation should nevertheless remain objective. The depth of training adaptation, long-term stability, and efficiency at large cluster scale are all engineering challenges that require sustained work. The transition from “can train” to “trains well” and finally to “trains out of the box” depends not only on peak accelerator performance, but also on the maturity of the software stack, toolchain, and operational engineering system.
For developers, understanding the full scope of training adaptation and applying a disciplined validation methodology are essential for making reliable technology choices as domestic accelerator platforms continue to evolve.
