Domestic GPU Training Adaptation: Scope, Acceptance Criteria, and Troubleshooting Guide
This guide explains how to tell whether a domestic GPU has been validated for training, not just inference. It covers the six acceptance criteria for a training adaptation, the configuration settings to record for FSDP2 and multi-node runs, stability tests, common failure modes such as OOM, hangs, and silent operator fallback, and infrastructure risks in cloud-native environments.
Public reports say domestically developed compute took part in adapting the training of a large language model with nearly 3 trillion parameters, and completed joint multi-node, multi-GPU testing. However, the reports do not disclose key settings such as numerical precision, sequence length, parallelism strategy, or offloading policy. They therefore cannot be used to infer full-scale pretraining capability. This article uses such reports as a starting point and explains how engineering teams can judge whether a training adaptation is valid.
1. Distinguish Inference Adaptation from Training Adaptation
“Day 0 adaptation” is common in the industry, but the term is often used loosely. It usually means a chip can run inference for an open-source model on the day the model is released. In other words, the model can perform forward computation on the chip and produce output. This shows that forward operators and the runtime work. It does not show that the model was trained on that chip.
Training adaptation has higher requirements. The chip and software stack must work together across several stages: model loading and initialization, parameter sharding and scheduling, forward and backward computation, gradient synchronization, optimizer updates, and checkpoint saving and restoring. If any one of these stages fails, training will either stop or produce distorted results.
| Dimension | Inference adaptation | Training adaptation |
|---|---|---|
| Validation goal | Forward computation works and outputs are correct | The full training loop runs stably over time |
| Key operators | Forward operators | Forward, backward, and optimizer operators |
| Communication requirements | Usually low | Frequent gradient synchronization and parameter sharding communication |
| State saving | Usually not required | Checkpoint saving and restoring must work |
| Common failure points | Missing operators, precision errors | OOM, process hangs, loss divergence, recovery failures |
2. Acceptance Criteria for Training Adaptation
To determine whether a training adaptation is valid, check the following six items:
- Alignment with a reference platform: With the same small model, data, and random seed, the difference between the loss curve and that of a reference GPU stays within an acceptable range.
- Finite gradients: The grad norm stays finite throughout training, with no NaN or Inf values.
- Complete operator coverage: All operators used in training, including backward and custom operators, are implemented. None silently fall back to the CPU.
- Checkpoints can be saved and restored: After an interruption, training resumes from a checkpoint with a continuous loss curve.
- Fault recovery: When a single process or node exits, the job either restarts automatically according to policy or reports a clear error.
- Quantified throughput: Record per-step time, tokens per second, and MFU, and compare them with reference results.
3. Configuration Checks for FSDP2 and Multi-Node Training
Start with a memory estimate. For a dense model using bf16 mixed precision and the Adam optimizer, each parameter takes about 16 bytes. This covers the bf16 parameter and gradient, plus the fp32 master weight, first moment, and second moment. The full training state for a 3-trillion-parameter model is therefore about 48 TB. Even if this state is fully sharded across 16 GPUs, each GPU would still need about 3 TB, far beyond single-GPU memory. A test that runs on 16 GPUs is more likely to validate a submodule, a few layers, or short sequences than full-model training. For MoE models, the storage cost of total parameters and the compute cost of active parameters must be calculated separately.
Clarify each item below and record it in the experiment log:
- Sharding strategy: Whether the run uses FULL_SHARD, HYBRID_SHARD, or another approach. For PyTorch FSDP2, also confirm whether parameters are resharded after the forward pass (the
reshard_after_forwardoption). - Mixed precision: The data types used for parameters, gradients, and reductions, and which operators stay in fp32.
- Activation recomputation: Which layers use activation checkpointing, and how much extra time recomputation adds.
- Offloading: Whether parameters, gradients, or optimizer states are offloaded to CPU or disk, and whether offload bandwidth becomes a bottleneck.
- Communication groups: How data-parallel, sharding, and tensor-parallel process groups are divided, and how many nodes each group spans.
- Batch and sequence: Global batch size, micro batch size, gradient accumulation steps, and maximum sequence length.
- Communication topology: The interconnect types within and between nodes, and the measured all-gather and reduce-scatter bandwidth.
- Per-step time: The share of each step spent on computation, communication, and data loading.
When an OOM occurs, troubleshoot in this order: reduce the micro batch size first, then enable activation recomputation, then consider offloading, and finally adjust the sharding strategy or add more GPUs.
4. Stability Testing and Common Troubleshooting
A 400-step continuous run shows only that the job did not crash in a short period. It does not prove long-term stability. Stability testing should include four types of tests:
- Long-running tests: Run thousands to tens of thousands of steps and watch for loss drift, growing memory fragmentation, and falling throughput.
- Fault injection: Randomly terminate a process and verify whether the framework detects the failure and recovers.
- Resume-from-checkpoint tests: Save a checkpoint at step N, resume training, and compare the losses from step N+1 through step N+k with an uninterrupted run. The results should match.
- Communication stress tests: Test collective communication separately across different message sizes to measure bandwidth and latency, and locate topology bottlenecks.
Logs should record the following metrics: loss, grad norm, NaN and Inf counts, per-step time, peak memory, GPU utilization, the share of time spent on communication, and data loader wait time.
Common errors and their symptoms:
- OOM often appears during checkpoint saving, because saving may require temporarily gathering full parameters.
- Hangs without an error usually happen when one rank waits in a collective communication call. The likely cause is that code paths differ across ranks, for example when a branch runs on only some of them.
- Numerical offsets: With the same configuration, bf16 accumulation order differs across platforms, so the loss shifts slightly. Distinguish normal numerical error from real operator errors.
- Silent operator fallback: An operator is not implemented, so the framework switches to the CPU or a less efficient implementation. Training runs, but throughput falls far below expectations.
- Checkpoint recovery failure: After the GPU count changes, the sharding format may not match when training restores from a checkpoint.
5. Risks in Cloud-Native Environments
When training on container platforms and in the cloud, the infrastructure itself adds risks. The following points are general checks and do not apply to any specific vendor:
- Container scheduling: When a pod is evicted or restarted, its ranks are lost. Elastic training frameworks and automatic restart policies are needed to handle this.
- Data reading: If object storage throughput is insufficient, GPUs wait for data. Measure read bandwidth first, then use prefetching and local caching.
