How to Validate Domestic GPU Training Adaptation on 16 GPUs Across Two Nodes

    This article provides a practical validation framework for training adaptation on domestic AI accelerators using a dual-node, 16-GPU setup. It explains what must be verified before treating a training run as valid, distinguishes training adaptation from base-model pretraining, and outlines acceptance criteria for a 400-step optimizer update test. It also covers memory allocation for near-3-trillion-parameter models, correctness, stability, scalability, operability, ecosystem compatibility, troubleshooting, pseudocode, cloud-based and self-managed environments, and automation toolchains.

    How to Validate Domestic GPU Training Adaptation on 16 GPUs Across Two Nodes

    1. First, establish a verifiable baseline: what information must be documented

    A domestic AI chip vendor recently completed a training-adaptation practice for a large model with nearly 3 trillion parameters. The practice used two nodes with a total of 16 accelerator cards, ran 16 training processes across nodes, performed 400 consecutive optimizer updates, and kept the loss value and gradient norm finite throughout training, without numerical overflow or abnormal interruption.

    To avoid treating a single training-adaptation practice as a complete foundation-model pretraining run, this article uses a conservative description: the subject is “a domestic AI chip vendor,” the hardware is a “flagship AI training and inference integrated computing card,” and the software stack is the “vendor-provided training software stack.” Because the original material did not provide the vendor name, chip model, software stack version, official link, test date, parallel strategy, training precision, batch size, sequence length, or node interconnect method, this article does not add unverified parameters.

    If the content is intended for formal publication, it is recommended to include at least the following verifiable fields:

    Verifiable field Minimum requirement Impact if missing
    Vendor and chip model Vendor name, chip model, board form factor The adaptation target cannot be confirmed
    Software stack version Driver, communication library, training framework, compiler versions The environment cannot be reproduced
    Official source Official blog, technical report, launch event, or documentation link The conclusion is difficult to verify
    Parallel strategy Data parallelism, parameter sharding, tensor parallelism, pipeline parallelism, etc. Memory usage and communication paths cannot be assessed
    Training precision BF16, FP16, FP32 master weights, mixed-precision strategy Numerical stability cannot be assessed
    Training parameters Batch size, sequence length, optimizer type, gradient clipping threshold The training workload cannot be reproduced
    Node interconnect Intra-node interconnect, inter-node network, communication library Cross-node bottlenecks cannot be assessed
    Test duration Log timestamps and total elapsed time for 400 consecutive steps The stability window cannot be evaluated

    Without this information, the article can only state that the practice has value for validating the training pipeline. It cannot be generalized into a conclusion about large-scale pretraining performance.

    2. Training adaptation is not the same as base-model pretraining

    When discussing whether domestic chips can support large models, it is important to distinguish four concepts: inference deployment, training adaptation, continued training or fine-tuning, and base-model pretraining. Their goals and acceptance methods are different.

    Type Goal Input Main validation indicators Duration Cost characteristics
    Inference deployment The model can produce correct outputs Existing weights and input data Operator correctness, throughput, latency, memory usage Short Low
    Training adaptation The model can enter the training loop Random initialization or existing weights, small-scale data Forward/backward correctness, gradient synchronization, numerical stability Medium Medium
    Continued training or fine-tuning Improve capabilities on an existing model Existing model, domain data Loss reduction, task metrics, training stability Medium to long Medium to high
    Base-model pretraining Build foundational capabilities from scratch Extremely large corpus, complete training configuration Convergence curve, stability, cluster efficiency, fault recovery Long High

    Training adaptation proves that the hardware, driver, communication library, parallel strategy, and training framework can support the model entering a stable training process. It does not automatically mean that the model has completed base-model pretraining. Therefore, when evaluating an achievement described as “training adaptation completed,” the boundary should be made clear: it validates the training pipeline and engineering capability, not the initial pretraining compute source.

    3. Why nearly 3 trillion parameters are harder: how memory is allocated

    The difficulty of large-model training adaptation is not only that the parameter count becomes larger. It is a system-level problem involving parameter scale, memory capacity, communication overhead, parallel strategy, and numerical stability.

    For a model with nearly 3 trillion parameters, if parameters are stored in BF16, the parameters alone require approximately 6 TB of memory. If gradients, optimizer states, master weights, activations, and temporary buffers are also considered, a single GPU usually cannot hold the full model state.

    Common engineering methods include:

    1. Parameter sharding: each card stores only part of the parameters.
    2. Gradient sharding: each card is responsible for only part of gradient reduction.
    3. Optimizer-state sharding: each card maintains only part of the momentum, variance, or adaptive state.
    4. Mixed-precision training: forward and backward computation use low precision, while master weights and optimizer states remain in high precision.
    5. Activation recomputation: use computation to save memory.
    6. Overlapping communication with computation: reduce communication waiting.
    7. Checkpointing and asynchronous saving: reduce fault-recovery cost.

    For a dual-node, 16-card scale, training adaptation should focus more on whether the training pipeline is connected, whether communication is stable, and whether memory usage is controllable. It should not be treated as equivalent to being able to complete full-scale large-model pretraining.

    4. How to determine whether 400 consecutive steps on two nodes and 16 cards pass

    The “two nodes, 16 cards” setup validates cross-node capability. The “400 consecutive optimizer updates” validate basic stability. To judge whether this kind of test passes, it is not enough to check only whether the program reports errors. A metric table and acceptance thresholds should be established.

    Metric Suggested acceptance standard Evidence to record Failure handling
    Loss All values are finite; after stabilization, no continuous abnormal growth Per-step loss, P50, P95, maximum value Record abnormal steps and check data, precision, and gradient clipping
    grad_norm All values are finite; after clipping, the norm is within the expected range Norm before clipping, norm after clipping, threshold If abnormal, check mixed-precision scaling, gradient accumulation, and operators
    NaN or Inf count 0 Per step, per module, per parameter shard Stop immediately and locate the first abnormal operator or communication path
    Throughput No obvious sustained drop compared with the target baseline tokens/s, samples/s, step time Check communication waiting, data loading, and memory fragmentation
    Peak memory No OOM, and memory usage is below the reserved upper limit Per-card memory, peak memory, fragmentation rate Adjust sharding, recomputation, batch size, or sequence length
    Communication time ratio Should not remain above a reasonable threshold for a long time Communication time, computation time, waiting time Check topology, process groups, communication library, and network links
    Checkpoint Can be saved and restored Checkpoint time, loss consistency after recovery Check storage bandwidth, file integrity, and optimizer state
    Process status No crashes, deadlocks, or timeouts Process logs, system logs, communication logs Locate node, NIC, or operator issues based on logs

    If, during the 400-step process, loss and grad_norm remain finite, there is no NaN or Inf, no OOM, no communication timeout, and no process crash, and the checkpoint can be saved and restored, the training pipeline can be considered to have basic usability. However, this still does not mean that long-duration pretraining has passed.

    5. Evaluation checklist for domestic GPU training adaptation

    Evaluating domestic GPU training adaptation capability should not only ask “does it run?” It should form an executable checklist. The following five items should be validated one by one.

    1. Correctness evaluation

    Item Test case Pass criteria Log artifacts Failure handling
    Forward output Small-scale fixed input Error is within the threshold compared with the reference implementation Intermediate layer outputs, loss value Check operators, data types, and normalization
    Backward gradient Backward computation on a fixed batch Gradients are non-zero and finite Parameter gradients, gradient norm Check backward operators and communication paths
    Parallel consistency Comparison under different parallel configurations Key metrics show consistent trends Logs from different configurations Check sharding rules and communication reduction

    2. Stability evaluation

    Item Test case Pass criteria Log artifacts Failure handling
    Continuous training 400 steps or longer No non-finite values, no crashes Loss, grad_norm, step time Trace back to abnormal steps
    Mixed precision BF16 or FP16 Numerical scaling behaves normally Loss scale, precision logs Adjust scaling or fall back to higher precision
    Abnormal input Extremely long sequences, boundary samples Does not interrupt training Data pipeline logs Add length checks and truncation policies

    3. Scalability evaluation

    Item Test case Pass criteria Log artifacts Failure handling
    Small-scale scaling Scaling from a single card to multiple cards Throughput grows reasonably with resources Per-card throughput, communication ratio Check topology and parallel strategy
    Cross-node scaling Two nodes, 16 cards Communication is stable with no frequent timeouts Node communication logs Check network, process groups, and topology awareness

    4. Operability evaluation

    Item Test case Pass criteria Log artifacts Failure handling
    Monitoring Collect loss, memory, communication, and throughput Metrics can be viewed in real time Monitoring dashboard, log stream Add missing collection items
    Alerting Simulate NaN, OOM, communication timeout Clear alerts are triggered Alert records Adjust thresholds and rules
    Recovery Simulate process exit and recovery Training can continue from checkpoint Recovery logs, loss comparison Fix checkpoint or storage issues

    5. Ecosystem compatibility evaluation

    Item Test case Pass criteria Log artifacts Failure handling
    Model structure Load the target model Modules are complete and parameters are correct Model loading logs Add missing operators or conversion scripts
    Data format Read the real data pipeline No abnormal decoding or alignment errors Data reading statistics Fix dataset index and field mapping
    Optimizer compatibility Use the target optimizer State updates are correct Optimizer state logs Check optimizer implementation and sharding logic

    6. Troubleshooting common issues in cross-node training

    In domestic GPU cross-node training, common issues are not only whether the model can be loaded. They also include communication, numerical, memory, and scheduling issues in the training loop. Developers can use the following troubleshooting guide.

    1. What to do when cross-node communication times out

    First, check whether the process group is complete, then check whether the inter-node network is stable. Focus on communication library logs, timeout thresholds, NIC status, routing configuration, and node load. If only some cards are waiting, check whether topology awareness and collective communication grouping are reasonable.

    2. How to allocate memory for nearly 3 trillion parameters

    It is recommended to break down memory usage into five parts: parameters, gradients, optimizer states, activations, and temporary buffers. Then choose parameter sharding, optimizer-state sharding, activation recomputation, and mixed-precision strategies. Do not pursue full-scale single-step training from the beginning. First validate a small-scale, short-duration training pipeline.

    3. How to judge whether a 400-step training run passes

    At minimum, the following conditions should be met: loss and grad_norm are finite throughout; NaN or Inf count is 0; there are no process crashes; there is no OOM; there is no communication deadlock; throughput does not show an obvious sustained drop; and checkpoints can be saved and restored. If any condition is not met, record the first abnormal step and the abnormal module.

    4. How to investigate when loss is normal but throughput drops

    Prioritize data loading, communication waiting, memory fragmentation, CPU preprocessing, and node load. If throughput drops periodically, it may be caused by checkpoint saving, log writing, or data preprocessing bottlenecks. If throughput drops continuously, it may be caused by memory fragmentation, cache invalidation, or network jitter.

    7. Example training loop: prerequisites and pseudocode

    The following pseudocode illustrates the stability control logic in training adaptation. It is not a complete implementation that can be run directly. Before actual execution, the following prerequisites must be defined:

    1. Parallel strategy: for example, fully sharded data parallelism, optimizer-state sharding, tensor parallelism, or pipeline parallelism.
    2. Training precision: for example, BF16 computation, FP32 master weights, mixed-precision scaling strategy.
    3. Data pipeline: for example, per-card batch size, global batch size, sequence length, data splitting method.
    4. Gradient strategy: for example, gradient clipping threshold, gradient accumulation steps.
    5. Numerical checks: for example, is_finite checks on loss, grad_norm, and key parameters.
    6. Optimizer state: for example, whether it is sharded and whether it includes momentum, variance, and master weights.
    7. Logging interval: log_interval determines the frequency of metric recording.
    8. Exception handling: after detecting non-finite values, record, skip, or terminate. Do not silently ignore them.
    1. total_steps = 400
    2. for step in range(1, total_steps + 1):
    3. # Forward and backward computation
    4. # Dependencies: model parallel/data parallel configuration, mixed precision, data pipeline
    5. loss = forward_backward(step)
    6. # Gradient clipping and gradient norm calculation
    7. # max_norm should be consistent with the training framework's clipping strategy
    8. grad_norm = clip_grad_norm(loss, max_norm=1.0)
    9. # Numerical health check
    10. # is_finite should cover loss, grad_norm, and key intermediate tensors
    11. if not is_finite(loss) or not is_finite(grad_norm):
    12. log_metric("invalid_value", step=step, loss=loss, grad_norm=grad_norm)
    13. optimizer.zero_grad()
    14. continue
    15. # Parameter update
    16. # The optimizer may require sharded-state synchronization or parameter exchange
    17. optimizer.step()
    18. optimizer.zero_grad()
    19. # Periodically record metrics
    20. if step % log_interval == 0:
    21. report(
    22. step=step,
    23. loss=loss,
    24. grad_norm=grad_norm,
    25. throughput=current_throughput(),
    26. memory_usage=current_memory_usage(),
    27. communication_ratio=current_communication_ratio()
    28. )

    The key point of this code is not the implementation details, but four engineering principles: continuously monitor loss and gradient norm; abnormal values must be recorded and handled; parameter updates must occur after numerical checks; and logs and metrics should be output periodically so that issues can be located more easily.

    8. How to use cloud training platforms: applicable boundaries and minimal alternatives

    Cloud training platforms are suitable for scenarios that require elastic scheduling, resource monitoring, and operations management. In a corresponding cloud environment, enterprises can use a container platform to manage training tasks, use object storage to store datasets, model weights, and checkpoints, use a logging service to collect training logs, and use monitoring and alerting to observe resource utilization and abnormal events.

    However, cloud platforms are not the only option. If resources are insufficient or the environment is still self-managed, a minimal alternative approach can be used:

    Capability Cloud-based solution Self-managed minimal alternative
    Task scheduling Container platform or training platform Scripts plus a node queue, or a simple job scheduler
    Data storage Object storage NFS, local NVMe, or distributed file system
    Log collection Logging service Write to a unified directory and archive periodically
    Monitoring and alerting Monitoring and alerting system Scripts that periodically check logs, memory, and process status
    Checkpoint Highly reliable object storage Local high-speed disk plus remote backup
    Fault recovery Automatic rescheduling by the platform Manual recovery combined with checkpoints and logs

    For domestic GPU training adaptation, the value of a cloud platform is to abstract resource differences and integrate compute, storage, monitoring, and scheduling into a unified interface. However, whether or not a cloud platform is used, verifiable logs, checkpoints, and recovery mechanisms must be retained.

    9. Automation toolchain checklist

    Training adaptation is not a one-time task. It is a continuous iterative process. The automation toolchain should cover at least the following checks:

    Check item Key content Suggested output
    Non-finite value detection Loss, grad_norm, parameters, activations First NaN/Inf step number and module name
    Communication waiting analysis Communication time, waiting ratio, timeout count Communication bottleneck report
    Memory analysis Parameter, gradient, optimizer, activation usage Peak memory and fragmentation report
    Throughput analysis tokens/s, samples/s, step time Throughput trend and abnormal intervals
    Log field check step, loss, grad_norm, communication, memory Missing-field list
    Alerting rules NaN, OOM, timeout, process exit Alert level and handling suggestions
    Checkpoint recovery drill Save, restore, loss consistency Recovery success rate and duration
    Abnormal step tracing Locate the first abnormal step Related logs for data, operators, and communication

    The more complete the toolchain, the easier it is for training adaptation to move from “one successful run” to “repeatable delivery.”

    10. Conclusion

    The completion of training adaptation for a model with nearly 3 trillion parameters on domestic GPUs, demonstrated through 400 consecutive optimizer updates on two nodes and 16 cards, is meaningful because it validates that domestic compute can enter the training pipeline of a complex large model. However, this kind of result must be described carefully: it proves training adaptation and the usability of the engineering pipeline, not automatically base-model pretraining.

    For developers, evaluating domestic GPU training adaptation capability should focus on four types of evidence: first, verifiable hardware, software stack, and test scope; second, whether the 400-step stability metrics are complete; third, whether cross-node communication, memory sharding, and numerical stability are controllable; and fourth, whether logs, monitoring, checkpoints, and fault recovery are operable.

    Only when “it runs” is broken down into verifiable, reproducible, and operable engineering metrics can domestic GPU training adaptation move from single-point validation to scalable production.