Large-Model Training on Domestic GPUs: Boundaries and Criteria for Adaptation Validation
This article distinguishes three commonly conflated validation modes—Day 0 inference adaptation, training adaptation or continued-training validation, and from-scratch pretraining—and explains what each can actually prove. It then walks through five key parts of the training stack: model loading and structure parsing, sharding and memory management, gradient synchronization and communication optimization, stability validation, and engineering systems. Using the “400 consecutive optimizer updates” claim as an example, it shows what such a result can and cannot establish. The article also provides a checklist for evaluating whether a training adaptation report is credible and answers common questions about stability, from-scratch pretraining, and remaining gaps in domestic compute.
1. First, distinguish three kinds of “adaptation”
Media reports often conflate several different types of validation. Their difficulty varies widely, and their conclusions are not interchangeable.
| Validation mode | Primary goal | Acceptance focus | Resource pressure |
|---|---|---|---|
| Day 0 inference adaptation | Quickly run inference after a new model release | Operator coverage and output alignment with the reference implementation | Lower memory and communication requirements |
| Training adaptation / continued-training validation | Run forward pass, backward pass, and optimizer updates | Loss curves, gradient norms, communication correctness | Memory and communication pressure significantly higher than inference |
| From-scratch pretraining | Complete full pretraining on the target chip | Long-run stability, throughput, fault recovery, cost | Sustained compute over weeks to months |
Successful training adaptation means the chip software stack can execute the model’s full training computation graph. It does not mean the model was originally pretrained on the same chip. When reading a report, first identify which validation mode the result belongs to, then judge what conclusions it can support.
2. Five key parts of the training链路? No—five key parts of the training pipeline
A complete training adaptation usually needs to connect the following parts. If any one is missing, training may fail to converge or may stop midway.
1. Model loading and structure parsing
Very large models often use mixture-of-experts (MoE) architectures, with large parameter counts and diverse weight formats. The first step in adaptation is to correctly parse the model definition, weight sharding formats, and tensor layouts on the target software stack, and to convert common storage formats into the chip-side tensor representation.
This step checks two metrics: loading completeness and precision consistency. Any weight misalignment will appear as abnormal loss early in training. Therefore, adaptation engineers usually compare the outputs of the first few layers with fixed inputs before starting training.
2. Sharding and memory management
The memory of a single GPU is far from enough to hold trillion-parameter models. The mainstream approach is fully sharded data parallelism (FSDP-style), which shards parameters, gradients, and optimizer states across multiple GPUs and all-gathers them on demand during forward and backward computation.
Memory requirements can be estimated with a simple formula:
- Weight footprint = number of parameters × bytes per parameter
- Under full-parameter training, BF16 mixed precision, and the AdamW optimizer, each parameter needs about 16 bytes, including BF16 weights, gradients, FP32 master weights, and two FP32 optimizer states
- 3 trillion parameters × 16 bytes is about 48 TB, which divided across 16 GPUs is about 3 TB per GPU
This number far exceeds the per-GPU memory of common training cards. Therefore, if a report claims that training a near-3-trillion-parameter model was completed on two nodes with 16 GPUs, at least one of the following must hold: the trainable parameters are far fewer than the total parameters (for example, only some modules are trained, or parameter-efficient fine-tuning is used); a large amount of state is offloaded to CPU or NVMe; or the parameter count in the report uses a different definition. When these details are not explained, the scope of the conclusion should be treated conservatively.
Below is an illustrative standard FSDP2 pattern in PyTorch 2.6 and later. The code omits process-group initialization and data loading, and assumes the model has a layers attribute.
import torchfrom torch.distributed.fsdp import fully_shard# Shard layer by layer so each layer's parameters are gathered only during computationfor layer in model.layers:fully_shard(layer)fully_shard(model)optimizer = torch.optim.AdamW(model.parameters(), lr=1e-5)for batch in dataloader:loss = model(**batch).loss # all-gather parameters on demand during forwardloss.backward() # release non-local shards after backwardoptimizer.step() # each rank updates only its local shard's optimizer stateoptimizer.zero_grad()
FSDP2 represents sharded parameters as DTensors and shards at module granularity. This design is easier to combine with other parallelism strategies than earlier FSDP, and it also makes it easier to control the degree of communication-computation overlap.
3. Gradient synchronization and communication optimization
In cross-node training, the communication volume of gradient synchronization grows with model size. Engineering teams usually need to address three things.
- Communication-computation overlap: Split gradients into multiple buckets and launch all-reduce or reduce-scatter during backward computation. Bucket size must be tuned to network bandwidth. Too small increases scheduling overhead; too large reduces overlap.
- Numerical stability under mixed precision: Compute in BF16 or FP16 while keeping an FP32 master weight copy. Use gradient clipping and loss scaling to prevent numerical overflow.
- Topology-aware communication strategy: Use high-bandwidth interconnect within a node and RDMA-like networks between nodes. The communication library needs to choose an appropriate algorithm based on topology, such as ring or tree all-reduce.
4. Stability validation: what 400 steps show
“400 consecutive optimizer updates” is the most specific number in the report, and also the easiest to misunderstand. What this result can validate includes:
- Numerical consistency: Forward pass, backward pass, and optimizer updates do not accumulate divergence over a longer period.
- System robustness: Multi-node, multi-GPU scheduling, fault detection, and retry mechanisms work correctly.
- Communication correctness: Cross-node data synchronization has no silent errors.
But the conclusion from 400 steps has clear boundaries. To judge whether it truly demonstrates stability, the report should include at least the following information: global batch size, sequence length, compute precision, specific thresholds for loss and gradient norm, time taken for 400 steps, and whether fault injection and recovery-time measurements were performed. Merely stating that “loss remains in a reasonable range” does not let readers reproduce the result or judge stability.
5. Engineering systems
Beyond the underlying pipeline, stably training frontier models on heterogeneous compute also requires supporting engineering systems.
- Operator coverage and automatic adaptation: Mainstream models use many operators, including attention variants, expert routing, and rotary position encoding. This requires a high-coverage operator library and operator fusion optimization.
- Automation toolchain: This includes distributed strategy configuration, checkpoint resume, performance profiling, and anomaly diagnosis, reducing the cost of manual tuning by engineers.
- Validation methodology: Use metrics such as loss curves, gradient norms, and numerical precision comparisons to establish a standardized adaptation acceptance process.
3. How to judge whether a training adaptation validation is credible
When reading a training adaptation report, check it item by item against the following list. The more items are missing, the lower the credibility of the conclusion.
- Parameter-count definition: total parameters, activated parameters, or trainable parameters
- Compute precision and optimizer type
- Peak per-GPU memory, and whether CPU or NVMe offload was used
- Parallelism strategy, including how data parallelism, tensor parallelism, and pipeline parallelism are partitioned
- Global batch size and sequence length
- Comparison of the loss curve with the reference implementation
- Recovery time after fault injection, and validation of checkpoint resume
4. Frequently asked questions
Are 400 steps enough?
Four hundred steps are enough to expose obvious numerical divergence and communication errors, but not enough to represent long-run training stability. Data distribution drift, periodic checkpoint write failures, and occasional single-node faults often appear on longer timescales. Extrapolating a 400-step result to weeks of training requires additional evidence.
Does successful training adaptation directly prove that from-scratch pretraining is possible?
No. Training adaptation only proves that the software stack can execute the model’s training computation graph. From-scratch pretraining also requires long stable runs, acceptable throughput, fast recovery from faults, and controllable cost. These metrics need to be validated separately.
What gaps remain in domestic compute?
- Operator performance long tail: Frontier model architectures iterate quickly, and optimizing new operators is a continuous catch-up process.
- Multi-GPU coordination efficiency: Cross-node communication bandwidth and topology design directly affect cluster scaling efficiency.
- Ecosystem and migration cost: Developer habits and toolchain compatibility determine the actual friction of migration.
- Long-run stability and fault tolerance: Training at the scale of 10,000 GPUs requires second-level fault detection and automatic recovery.
The goal of the domestic training stack is “out-of-the-box training”: developers can start large-model training on domestic GPUs through standardized interfaces and automation tools without deep customization. Achieving this goal requires continued progress in operator adaptation, multi-GPU coordination, and toolchains.
Conclusion
For developers, the value of a training adaptation validation depends on whether it can be reproduced. Only when configuration, precision, memory, and stability metrics are clearly documented can the results be used to compare a chip’s real training capability.
