Domestic GPU Training Stability Validation: Acceptance Checklist and Engineering Method

    This article explains how to evaluate the credibility of domestic GPU training adaptation and how to design reproducible stability acceptance tests. It separates inference adaptation, training adaptation, and foundation-model pretraining; clarifies the meaning of “2 nodes, 16 GPUs, 400 steps”; and covers key metrics, FSDP2 parameter sharding, cross-node communication, fault tolerance, common pitfalls, and a staged acceptance checklist.

    When readers see claims such as “2 nodes, 16 GPUs, 400 steps” or “domestic GPU completes training adaptation,” the first questions are often:

    • How is domestic GPU training adaptation done?
    • What should a training-stability acceptance checklist include?
    • Which claims need careful qualification?

    This article does not rely on vendor cases that cannot be independently verified. Instead, it takes an engineering perspective: how to judge whether a training adaptation is credible, and how to design executable, reproducible stability validation.

    In this article, “domestic GPU” refers to GPU hardware and software stacks developed locally.

    1. How to Distinguish Inference Adaptation, Training Adaptation, and Foundation-Model Pretraining?

    In practice, “adaptation” can refer to at least three different levels. Their workloads and conclusions are completely different.

    Level Main work Typical effort Question it answers
    Inference adaptation Operator coverage, quantization support, inference framework integration Days to weeks Can the model run and be used efficiently?
    Training adaptation Training framework integration, parameter-level sharding, mixed precision, gradient synchronization, numerical stability Weeks to months Can the hardware support training for this class of model?
    Foundation-model pretraining Data preparation, hyperparameter search, large-scale long-duration training Months or longer, 10,000+ GPU-class resources Where do the foundation model capabilities come from?

    “Day 0 adaptation” usually means that the hardware or software stack completed inference-side integration on the day the model was released. It reflects how quickly the ecosystem can respond, but it does not mean that the model was pretrained on that chip.

    Training adaptation goes further than inference adaptation. The model must not only run inference, but also complete forward propagation, backward propagation, and parameter updates while maintaining numerical health. However, it still is not equivalent to foundation-model pretraining.

    To judge whether a model is “rooted in” a particular compute platform, four types of evidence are usually needed:

    1. Does the official technical report disclose the hardware composition, cluster scale, and number of training tokens used for foundation-model pretraining?
    2. Are training curves, intermediate checkpoints, and logs reproducible?
    3. Are parallelism strategies, hyperparameter configurations, and data recipes publicly available?
    4. Can third parties reproduce key metrics under equivalent conditions?

    If this information is missing, even if the vendor completed training adaptation for the model, it can only show that “this technical route is capable of supporting training for this class of model.” It cannot show that “the model was trained on this hardware.” Therefore, when discussing specific cases, the vendor name, model name, report link, and release date must be verifiable. If they cannot be verified, the case should be removed and only the methodology should be retained.

    Distinguishing adaptation from pretraining does not mean undervaluing training adaptation. The ability to train stably is the first threshold for domestic compute to participate in large-model development.

    The value of training adaptation includes at least the following:

    • Verify whether the hardware and software stack have reliable numerical accuracy and stability under high-load scenarios such as backward propagation, mixed precision, and gradient reduction.
    • Provide algorithm teams with a comparable benchmark environment: same model, same code, multiple platforms.
    • Accumulate performance profiles under real workloads, providing capacity-planning evidence for larger deployments.
    • Allow new model architectures in the open-source ecosystem to quickly support continued training and fine-tuning on domestic platforms.

    2. What Does “2 Nodes, 16 GPUs, 400 Steps” Mean? How to Accept It?

    2.1 “400 steps” does not mean 400 epochs or 400 samples

    First, the terminology must be clear. “400 steps” usually means 400 optimizer updates, that is, 400 calls to optimizer.step(). It does not mean 400 epochs over the dataset, nor 400 samples.

    If the gradient accumulation step is 8, then 400 optimizer steps correspond to approximately 3,200 micro-batches. The number of consumed tokens is approximately:

    1. 400 × global_batch_size × seq_len

    If the total training step count is very large, 400 steps may represent only a small fraction. If 400 steps are used as a stability acceptance test, the number of steps should be stated explicitly, or clearly expressed as a percentage of the total steps. This avoids conflicting claims such as “several hundred steps” and “10% of steps.”

    Running one forward and backward pass on a single GPU only shows that the operators can produce results. Running 400 consecutive optimizer updates means something very different:

    • Parameters continue to change, and numerical distributions drift at every step.
    • Optimizer states such as first and second moments gradually accumulate.
    • Cross-node gradient reduction is executed hundreds of times. Any communication anomaly may interrupt training.
    • Accumulated errors, sparse operator boundaries, precision truncation in state updates, and other hidden risks often appear only after dozens or hundreds of steps.

    Therefore, 400 steps are more like an intensive health check. They demonstrate that the training pipeline itself is reliable, rather than announcing that model training is complete.

    After the learning-rate peak, an additional repeat experiment of about 10% of the total steps can be introduced. Keep the random seed, data order, parallel configuration, and software version fixed, rerun the same training segment, and compare whether the loss and grad_norm trajectories match. Alternatively, short-run consistency experiments can be run periodically at about 10% of the total steps. If the total number of steps is large, give an explicit step range. When citing this practice, add public documentation, framework documentation, or internal stable-training guidelines. Avoid unverifiable placeholder sources.

    2.2 Two core observation metrics: loss and gradient norm

    The most basic metrics for training stability are loss and gradient norm.

    • If loss remains finite and continues to decrease, the forward computation, backward computation, and optimizer update form a closed loop. If NaN or Inf appears, common root causes include numerical overflow, division by zero, out-of-domain logarithm calculations, and incorrect gradient scaling.
    • If gradient norm remains finite throughout, the gradient backpropagation path is usable and constrained by mechanisms such as gradient clipping.

    Gradient anomalies do not always appear as numerical overflow. For example:

    • If a rank does not participate in reduction, that rank may only have a local gradient value.
    • If multi-GPU synchronization is missing, gradients may appear approximately N times larger.
    • Repeated accumulation usually amplifies gradients to about 2×, rather than necessarily producing an order-of-magnitude anomaly.

    The global gradient norm depends on cross-GPU reduction. A single-rank value can still be useful for local diagnosis and communication troubleshooting, but judgments about global stability should be based on the global gradient norm after cross-GPU reduction.

    More important than whether the gradient norm is finite is the shape of its distribution:

    • Small fluctuations around a stable level are normal.
    • Occasional spikes that can be suppressed by clipping are acceptable during warmup or when encountering anomalous samples.
    • Frequent spikes or a continuously rising trend indicate that training has entered an unstable regime.

    Anomaly handling should not only print logs. The following code is pseudocode used to demonstrate anomaly-handling branches. It cannot be used directly in production. Objects such as optimizer, model, history, and save_sharded_checkpoint should be provided by the actual training framework.

    1. # Pseudocode: demonstrates anomaly-handling branches; not for production.
    2. import math
    3. from collections import deque
    4. def q999(values):
    5. # Estimate a high quantile from historical gradient norms
    6. if not values:
    7. return float("inf")
    8. xs = sorted(values)
    9. idx = max(0, min(len(xs) - 1, int(round(0.999 * (len(xs) - 1)))))
    10. return xs[idx]
    11. def is_finite(x):
    12. return math.isfinite(float(x))
    13. def enable_grad_clipping(model, max_norm=1.0):
    14. # Placeholder: configuration to be applied by a later clip_grad_norm_ call
    15. return {"enabled": True, "max_norm": max_norm}
    16. def diagnose_anomaly(step, loss, grad_norm, sample, optimizer, history, clip_factor=3.0):
    17. skip_step = False
    18. save_checkpoint = True
    19. threshold = q999(history) * clip_factor
    20. if not is_finite(loss) or not is_finite(grad_norm):
    21. print(f"[ABORT] step={step} loss={loss} grad_norm={grad_norm}")
    22. print(f"Anomalous sample source: shard={sample['shard_id']}, index={sample['local_index']}")
    23. optimizer.zero_grad(set_to_none=True)
    24. skip_step = True
    25. save_checkpoint = False
    26. elif grad_norm > threshold:
    27. print(f"[SPIKE] step={step} grad_norm={grad_norm} -> clipping")
    28. enable_grad_clipping(model, max_norm=1.0)
    29. return skip_step, save_checkpoint

    When the caller receives the return values, if skip_step is true, it should not execute optimizer.step(). If save_checkpoint is false, it should not write a checkpoint, avoiding NaN or Inf contaminating the resumed training state.

    3. Native FSDP2: How Does Parameter-Level Sharding Support Training?

    3.1 From data parallelism to parameter-level sharding

    In traditional data parallelism, every GPU stores the full model weights, gradients, and optimizer states, and only the input data is split.

    For example, with an Adam-like optimizer in mixed-precision training, the memory cost per parameter is approximately:

    Component Precision Bytes per parameter
    Weights FP16/BF16 2
    Gradients FP16/BF16 2
    Optimizer states (first and second moments) FP32 8
    Master weights FP32 4
    Total — 16

    For a 200-billion-parameter model, the model states alone require about 3.2 TB of GPU memory. Even for a small or medium model with 200 million parameters, a single GPU needs about 3.2 GB, excluding activations and temporary buffers. This clearly cannot support training of trillion-parameter models.

    Fully Sharded Data Parallel (FSDP) shards weights, gradients, and optimizer states into N parts along the data-parallel dimension, so each GPU holds only 1/N. During computation, data are gathered on demand:

    • Forward stage: Gather full parameters layer by layer, compute that layer, then immediately release non-local parameters.
    • Backward stage: Gather parameters again, compute gradients, then use reduce-scatter to aggregate gradients.
    • Update stage: Each GPU updates only the parameter partition it owns.

    This way, per-GPU memory usage decreases approximately linearly with the number of GPUs. However, this approximation applies only to model states, not activations or communication buffers.

    The following code is pseudocode for an FSDP2 training loop. It demonstrates parameter-level sharding and anomaly protection and cannot be used directly in production.

    In this pseudocode, TrainConfig is a training configuration object containing fields such as seq_len, micro_bs, grad_accum, and save_interval. build_model(cfg) builds the model. split(batch, n) splits the global batch into n micro-batches. clip_grad_norm_ performs gradient clipping and should support sharded parameters. save_sharded_checkpoint saves the sharded model and optimizer states. grad_sync_context is a placeholder interface; the real implementation should be replaced with the gradient synchronization control method supported by the current FSDP2 version, such as an explicit sync switch, no_sync context, or equivalent interface.

    1. # Pseudocode: demonstrates an FSDP2 parameter-sharding training loop; not for production.
    2. # DeviceMesh, AdamW, and fully_shard must be imported according to the framework version.
    3. from contextlib import contextmanager
    4. @contextmanager
    5. def grad_sync_context(model, need_sync):
    6. # Placeholder: replace with gradient synchronization control supported by the current FSDP2 version.
    7. yield
    8. cfg = TrainConfig(seq_len=4096, micro_bs=1, grad_accum=8, world_size=16)
    9. device_mesh = DeviceMesh(shape=(2, 8), mesh_dim_names=("node", "gpu"))
    10. model = build_model(cfg)
    11. model = fully_shard(model, mesh=device_mesh, reshard_after_forward=True)
    12. optimizer = AdamW(model.parameters(), lr=2e-4, eps=1e-8, foreach=False)
    13. for step, batch in enumerate(loader, start=1):
    14. optimizer.zero_grad(set_to_none=True)
    15. total_loss = 0.0
    16. for i, micro in enumerate(split(batch, cfg.grad_accum)):
    17. need_sync = (i == cfg.grad_accum - 1)
    18. with grad_sync_context(model, need_sync):
    19. loss = model(micro) / cfg.grad_accum
    20. loss.backward()
    21. total_loss += loss.detach()
    22. loss_value = float(total_loss.detach().float().cpu().item())
    23. if not math.isfinite(loss_value):
    24. print(f"[ABORT] step={step} abnormal loss; skip optimizer.step and checkpoint")
    25. optimizer.zero_grad(set_to_none=True)
    26. continue
    27. grad_norm = clip_grad_norm_(model.parameters(), max_norm=1.0)
    28. grad_norm_value = float(grad_norm.detach().float().cpu().item()) if hasattr(grad_norm, "detach") else float(grad_norm)
    29. if not math.isfinite(grad_norm_value):
    30. print(f"[ABORT] step={step} abnormal grad_norm; skip optimizer.step and checkpoint")
    31. optimizer.zero_grad(set_to_none=True)
    32. continue
    33. optimizer.step()
    34. log_metrics(step=step, loss=loss_value, grad_norm=grad_norm_value,
    35. lr=optimizer.param_groups[0]["lr"], tps=step_tokens(step))
    36. if step % cfg.save_interval == 0:
    37. save_sharded_checkpoint(model, optimizer, step)

    3.2 Why focus on FSDP2?

    FSDP2 represents a new generation of parameter-level sharding implementation. Compared with the previous generation based on flattened parameter groups and hooks, it usually has the following characteristics:

    1. It uses individual parameters as the minimum unit for sharding and communication. Sharding granularity and mixed-precision policies can be customized per parameter. For example, sensitive parameters such as LayerNorm scale parameters and embeddings can remain in FP32, while matrix-multiplication-related weights use BF16, balancing stability and performance.
    2. It carries local parameters using per-device sharded data structures. Sharding metadata is a first-class property of the object, making checkpoint saving, loading, and model migration less prone to misalignment.
    3. Communication primitives are simpler. Forward gathering uses all-gather, and backward reduction uses reduce-scatter. Tensors in each collective are smaller, making it easier to overlap communication with computation across multiple streams.
    4. It is naturally compatible with 2D or multi-dimensional parallelism. FSDP can be embedded as one dimension in a device mesh: tensor parallelism can split single-layer matrix computations within a model, pipeline parallelism can split dependencies across layers, and FSDP can shard the remaining dimension.

    It is important to emphasize that FSDP2 itself is not tied to a specific hardware vendor. It requires abstractions such as device meshes, collective communication, and parameter sharding. If the software and hardware ecosystem fully implements these semantics, it can support FSDP2 natively.

    For multimodal training, native support means that visual encoders, language backbones, projection layers, and even diffusion branches can be incorporated into the same sharding mechanism, without writing separate communication and memory-management logic for each submodule.

    4. Cross-Node Communication: How to Lay Out 2 Nodes and 16 GPUs?

    Inside a single node with 8 GPUs, high-bandwidth interconnects are usually available. Across nodes, high-speed networks such as RDMA are required. In a two-node setup, communication patterns can significantly affect stability and efficiency.

    Scenario Communication domain Collective operations Main risk
    Tensor parallelism Usually intra-node all-reduce / all-gather Bandwidth-sensitive; should not cross nodes
    FSDP parameter gathering All 16 GPUs all-gather Bandwidth and latency add up
    Gradient reduction All 16 GPUs reduce-scatter Competes with backward computation for links
    Data loading Storage to each node File reads Metadata storms, I/O jitter

    A safer topology mapping is to place tensor parallelism inside a node and FSDP across nodes. If the example code does not explicitly use tensor parallelism and instead shards parameters directly across all 16 ranks, all-gather will cross RDMA links. This configuration is only suitable for smaller models or scenarios with abundant bandwidth. In production, the parallel strategy should be stated explicitly to avoid unintentionally running bandwidth-sensitive operations across nodes.

    Connection-layer anomalies, such as link jitter or degraded NIC speed, may not directly throw errors. Instead, they may appear as one rank consistently taking longer per step, slowing down the entire training job. Monitoring should set reasonable timeout thresholds for collective operations and record per-rank step-latency distributions.

    5. From “Trainable” to “Trainable Out of the Box”: Four Pillars of the Engineering System

    “Trainable out of the box” does not mean that a single model can run. It means that users do not need to become hardware experts in order to obtain a predictable, recoverable, and reproducible training experience. This requires at least four pillars.

    5.1 Operator adaptation and numerical parity

    No matter how good the framework is, execution eventually depends on operators. The core of operator adaptation is to ensure that each operator on new hardware produces results consistent with the reference implementation. Common practices include:

    • Precision parity: Use FP32 or FP64 results as the baseline, calculate relative error and maximum absolute error, and check whether errors accumulate with scale.
    • Boundary coverage: Test empty tensors, very long sequences, unaligned shapes, extreme inputs, and sparse indices.
    • Backward verification: Use gradient checks and element-wise comparison between manual gradients and automatic differentiation results.
    • Numerical stability: Modules such as softmax, LayerNorm/RMSNorm, and loss functions should use internal FP32 accumulation under BF16 and handle EPS and division-by-zero issues.

    5.2 Training pipeline and parallel strategy orchestration

    The complete pipeline includes model loading, shard scheduling, forward and backward computation, gradient reduction, optimizer updates, and checkpoint saving. Engineering work should focus on three things:

    • Consistency: If any rank crashes, training can be restarted from the latest checkpoint and reproduce the same optimizer state and data-reading position.
    • Configurability: Parallel strategies, mixed precision, and recomputation policies should be adjustable through configuration rather than hard-coded in model code.
    • Diagnosability: Log loss, gradient norm, per-stage latency, and peak memory at every step to make bottlenecks easier to locate.

    5.3 Fault tolerance and checkpoint resume

    In long-running training, hardware failures and node dropouts are almost unavoidable. In addition to periodic checkpoint saving, the following are needed:

    • Heartbeat and timeout detection: Automatically trigger a global abort when a rank becomes unresponsive, rather than waiting indefinitely.
    • Checkpoint integrity verification: Check checksums, shard completeness, and optimizer-state consistency.
    • Automatic resume: Automatically load the latest complete checkpoint after restart and restore the dataloader position.
    • Slow-node isolation: Identify persistently lagging ranks and trigger alerts or isolation.

    5.4 Automation toolchain and ecosystem collaboration

    “Trainable out of the box” means users do not need to manually assemble complex environments.

    • One-click launch: Automatically generate device meshes and parallel configurations based on cluster topology.
    • Automatic tuning: Recommend parallel degrees, micro-batch sizes, and recomputation strategies based on model size and GPU count.
    • Stability regression: Before releasing new driver, compiler, or operator-library versions, automatically run fixed-seed short training runs and compare loss trajectories.
    • Image and dependency management: Package drivers, communication libraries, and framework versions into unified images to avoid environment drift.

    6. Common Pitfalls Checklist

    Many training-stability issues are not caused by “the hardware cannot compute.” They are hidden by incorrect claims or measurement methods. Common pitfalls include:

    1. Treating Day 0 or Day 1 adaptation as foundation-model pretraining. Inference adaptation can only show that a model can run; it cannot show that the model was pretrained on that hardware.
    2. Claiming stability based on a single-GPU run. Single-GPU runs cannot expose cross-GPU gradient synchronization, communication timeouts, or slow-node issues.
    3. Checking only whether training crashes, without monitoring slow ranks. Link jitter or degraded NIC speed may show up as longer step latency rather than an explicit error.
    4. Failing to restore dataloader progress when resuming training. Training may appear to continue, but the data order has changed, affecting reproducibility.
    5. Printing gradient norm from only one rank. A single-rank value can help local diagnosis, but the global gradient norm is the basis for stability judgment.
    6. Writing checkpoints when anomalies occur. NaN or Inf may contaminate checkpoints, making resumed training impossible to recover.
    7. Quoting vendor conclusions without sources or reproduction status. Training-adaptation results should clearly indicate whether they come from public vendor information or third-party reproducible results. If they cannot be verified, they should not be cited as conclusions.

    7. Turn Stability into Measurable Engineering Acceptance Criteria

    Stable training capability should be broken down into quantifiable acceptance items and verified progressively at different scales. The ratios and values in the table below are example targets, not hard industry standards. In practice, they should be calibrated according to model size, hardware generation, communication topology, cluster scale, and business baselines.

    Validation stage Scale Key metrics Example acceptance criteria
    Single-GPU smoke test 1 GPU Can complete forward, backward, and update Finite loss, no NaN/Inf, no errors
    Single-node convergence 8 GPUs in one node Loss decrease slope, gradient-norm distribution Trend consistent with GPU baseline; deviations calibrated by model
    Two-node stability 2 nodes, 16 GPUs Consecutive steps, number of interrupted runs Hundreds of consecutive steps without overflow or interruption; specify exact step count
    Scaling efficiency 16 to 128 GPUs Throughput scaling ratio, per-step latency Example target: at least 70%; measure against the 16-GPU throughput baseline using the same model, communication configuration, and dataset, calibrated per cluster
    Checkpoint resume Any scale Loss deviation after resume Example target: within the first 50 steps after resume, relative deviation from the uninterrupted baseline does not exceed 0.5%; specify baseline, measurement method, and calibration conditions
    Short-run consistency About 10% of total steps after the learning-rate peak Repeat-run trajectory deviation Loss and grad_norm trajectory deviations remain within configured thresholds, calibrated according to actual trajectories

    Based on this, developers should follow these principles:

    1. Distinguish adaptation from pretraining. When evaluating platform capability, treat inference adaptation, training adaptation, and foundation-model pretraining separately. Base conclusions on technical reports, training curves, and reproducible experiments.
    2. Establish numerical-health baselines. Fix random seeds and record loss and gradient-norm trajectories for the first few hundred steps. Use these trajectories as regression baselines for new hardware and software-stack versions.
    3. Start small before scaling up. First get the full pipeline running on 2 nodes and 16 GPUs, then gradually scale to tens or hundreds of GPUs. Avoid debugging basic issues at large scale.
    4. Monitor slow behavior, not only failures. Sub-health states such as communication timeouts, memory fragmentation, and data I/O jitter are often harder to diagnose than direct crashes.
    5. Prioritize checkpoints and observability. Before formal training, establish checkpoint saving, resume, and metric collection pipelines.

    8. Conclusion

    The value of stable training over 400 consecutive steps on 2 nodes and 16 GPUs is not to prove that a certain model was trained on a specific domestic GPU. Its value is to validate an engineering path: domestic full-feature GPUs, combined with a mature software stack, can demonstrate the engineering feasibility of supporting frontier complex-model training under verifiable and reproducible conditions.

    From inference adaptation to training adaptation, and then to foundation-model pretraining, the ability to train is only the starting point. Domestic compute can truly move toward out-of-the-box trainability and play a more central role in trillion-parameter model development only after operator accuracy is verifiable, parallel strategies are configurable, failures are recoverable, and toolchains are automated.

    For developers, understanding every step along this path and turning it into quantifiable, acceptance-ready engineering metrics is the key to capturing the opportunity of domestic compute.