Dual-Node 16-Card Training Link Validation for Large Models on Domestic AI Accelerators
Validating a large model training pipeline requires more than just single-card operator execution; it demands a comprehensive evaluation of the entire training link. This article details the validation of a distributed training scenario using two compute nodes equipped with 16 domestic AI accelerator cards, successfully completing 400 continuous training steps. It covers critical aspects such as hardware consistency, driver and runtime environments, framework and operator adaptation, distributed communication, and monitoring, providing a standardized validation methodology for achieving production-grade stability and reliability.
1. Validation Background: From “Runnable” to “Trainable”
In the construction of large model infrastructure, the ability of a single accelerator card to execute operators does not mean the entire training link is ready for production. A truly complete validation must cover forward calculation, backward propagation, gradient synchronization, optimizer updates, checkpoint saving, logging, and multi-card fault recovery.
This validation represents a typical distributed training scenario using domestic AI accelerator cards: utilizing two compute nodes, each configured with eight accelerator cards (16 cards in total), to complete the continuous operation of a large model training task for 400 stable training steps. The focus is not merely on “how many steps were completed,” but rather on verifying whether the training task can maintain correctness and stability under conditions involving multi-node, multi-card, long-term communication, and sustained memory usage.
For enterprises, such validation typically encompasses three levels of objectives:
- Functional Usability: The model can complete forward passes, backward passes, and parameter updates.
- Distributed Usability: Multiple cards can establish correct communication, and gradient synchronization results meet expectations.
- Engineering Usability: The task has logging, monitoring, checkpointing, and exception tracing capabilities, allowing it to be integrated into subsequent scaled training workflows.
2. Components of the Complete Training Link
A large model training task is not accomplished by a single software component but is composed of multiple layers working together.
2.1 Hardware and Node Layer
First, it is necessary to confirm whether the hardware specifications, number of accelerator cards, memory capacity, and interconnection methods are consistent across the two nodes. Multi-node training is sensitive to environmental consistency, and the following factors can impact results:
- Inconsistent accelerator card models or compute capabilities;
- Significant differences in inter-node network bandwidth or latency;
- Insufficient host memory, causing data loading or checkpoint saving bottlenecks;
- High memory fragmentation, allowing the training to start but causing allocation failures after running for some time;
- Unsynchronized node times, making log sorting and task status evaluation difficult.
Therefore, a hardware inventory should be established before training begins, uniformly recording device quantities, node addresses, network connectivity, and resource usage.
2.2 Driver and Runtime Layer
Accelerator card training relies on underlying drivers, runtime environments, and compute libraries. Different versions may have API incompatibilities, operator implementation differences, or changes in communication behavior. In engineering practice, unified system images or environment build scripts should be used to avoid environments differing from node to node.
It is recommended to check at least the following:
- Whether the driver can recognize all devices;
- Whether each card’s memory is normal;
- Whether the runtime can load compute libraries;
- Whether floating-point calculation and mixed precision features are available;
- Whether each process is bound to the correct device after multi-process startup;
- Whether valid information is left in system logs when a device exception occurs.
The goal here is not to validate the model but to rule out basic environmental issues first. Only when the underlying environment is stable will the subsequent training results be meaningful.
2.3 Training Framework and Operator Layer
Large model training utilizes numerous operators such as matrix multiplication, normalization, attention computation, activation functions, and tensor transformations. For non-general hardware platforms, the key to framework adaptation is not just “interface accessibility,” but also whether the operators have correct numerical semantics and acceptable execution efficiency.
Three types of issues require special attention:
- Operator Coverage: Whether the core operators involved in the model are all implemented;
- Data Type Support: Whether half precision, mixed precision, and accumulation precision meet training requirements;
- Dynamic Behavior: Whether operators can run stably under varying sequence lengths, batch sizes, and tensor shapes.
If an operator is missing, it may need to be implemented using equivalent combinations; if an operator exists but performs poorly, it may become a training bottleneck. Therefore, adaptation work should be verified layer by layer based on the model structure, rather than just checking if the task can start.
3. Key Points of Dual-Node 16-Card Distributed Training
3.1 Process and Device Mapping
Multi-card training typically adopts a “one card per training process” approach. Each process needs to clearly know its global rank, node rank, and local device rank. Mapping errors will cause multiple processes to compete for the same card or leave some cards idle.
A reasonable mapping relationship should meet the following criteria:
- Each training process uses only one target device;
- Global process ranks are continuous and unique;
- Node ranks and local ranks are calculated correctly;
- The main process is responsible for initialization and some coordination work;
- All processes use consistent model and data configurations.
After the task starts, the actual device bound to each process should be confirmed via logs, rather than being inferred solely from startup parameters.
3.2 Communication Initialization
The core of distributed training is communication. In data parallelism scenarios, each process holds a model replica, processes different data shards, and performs gradient aggregation after backward computation. Common communication operations include all-reduce, point-to-point transmission, and broadcast.
In a dual-node environment, it is especially necessary to verify:
- Whether inter-node ports are connected;
- Whether communication addresses are reachable;
- Whether firewall policies allow training processes to establish connections;
- Whether the correct network interface card (NIC) is selected;
- Whether communication initialization experiences timeouts;
- Whether other processes can promptly detect when one process exits.
Communication problems often manifest as the task “hanging” rather than immediately throwing an error, so they must be diagnosed using process states, network traffic, and communication logs.
3.3 Gradient Synchronization Correctness
Whether distributed training can converge depends on the correctness of gradient synchronization. Even if the task can run continuously, incorrect results may occur if some processes do not participate in synchronization or if data partitioning is inconsistent.
The following methods can be used for validation:
- Compare the loss variation trends between single-card and multi-card on small-scale data;
- Check gradient statistics of different processes;
- Observe the numerical differences of parameters or gradients before and after synchronization;
- Fix random seeds to reduce unrelated variables;
- Use shorter training tasks to verify results before gradually scaling up.
Note that the loss curves of multi-card and single-card training do not necessarily need to match exactly point by point, but the overall trend and magnitude should remain reasonably consistent. If sudden divergence, NaN losses, or obvious discrepancies between processes occur, priority should be given to investigating data, precision, and communication issues.
4. What 400 Continuous Steps Indicate
Completing 400 training steps does not equate to completing a full performance evaluation, but it serves as a milestone proving link stability.
Continuous running can expose problems that short-term tests easily miss, such as:
- Slow memory growth;
- Gradual blocking of data loading threads;
- Communication connection anomalies after multiple synchronizations;
- Training pauses caused by checkpoint writing;
- Uncovered branches triggered by certain input shapes in later batches;
- Occasional numerical overflow under mixed precision;
- Decreased training efficiency due to load imbalance between nodes.
Therefore, the primary value of the 400-step validation is confirming the training task’s capability for sustained execution. Subsequent stress tests with varying batch sizes, sequence lengths, precision configurations, and longer durations are still needed to further evaluate the system’s long-term reliability.
5. Establishing a Standardized Validation Process
To make validation results reproducible, it is recommended to split testing into multiple phases.
Phase 1: Single-Card Functional Validation
First, complete model loading, forward calculation, backward calculation, and parameter updates on a single accelerator card. This phase focuses on checking operator coverage, memory usage, and numerical stability.
Phase 2: Single-Node Multi-Card Validation
Gradually increase the number of cards within one node to observe device binding, inter-card communication, and throughput changes. If performance does not improve with more cards, there may be communication overhead, insufficient data loading, or unreasonable parallel configurations.
Phase 3: Dual-Node Multi-Card Validation
After confirming cross-node communication, proceed with the dual-node 16-card task. This phase should record initialization time, per-step time, communication ratio, peak memory, and exception information.
Phase 4: Continuous Stability Validation
Run for a longer period under a fixed configuration, save checkpoints regularly, and simulate scenarios such as a single process exception, brief network jitter, or insufficient disk space to observe whether the task fails or recovers correctly.
6. Monitoring Metrics and Issue Localization
During training, one should not only observe the loss value. It is recommended to simultaneously record the following metrics:
- Per-step training time and throughput;
- Compute utilization of each device;
- Memory usage and its variation trend;
- Inter-node network bandwidth and communication latency;
- Data loading wait time;
- Gradient norm, loss value, and NaN ratio;
- Checkpoint saving time;
- Process exit, restart, and communication timeout information.
A “layered isolation” method can be used for issue localization. If it fails on a single card, prioritize checking operators, memory, and runtime; if it fails in a single-node multi-card setup, check device mapping and inter-card communication; if it only fails across nodes, focus on network, addresses, ports, and process coordination; if short tasks pass but long tasks fail, focus on analyzing resource leaks, memory growth, and data pipelines.
7. From Validation Results to Production Deployment
Completing 400 steps on 16 cards across dual nodes indicates that this training link has crossed an important phase from single-point experimentation to distributed validation. However, to enter a production environment, evaluations of performance, reliability, and operations must be supplemented.
On one hand, unified environment encapsulation and version management mechanisms should be established to ensure that training tasks can be reproduced across different nodes. On the other hand, checkpoint strategies, log archiving, alerting rules, and failure retry mechanisms should be improved to avoid having to start from scratch if training is interrupted.
Furthermore, a distinction should be made between “link usability” and “training efficiency.” Link usability focuses on whether the task is completed correctly, while training efficiency focuses on the number of samples processed per unit of time, communication ratio, and resource utilization. Only when correctness, stability, and efficiency all meet the standards simultaneously will the domestic AI accelerator cluster truly possess the engineering foundation to support large model training tasks.
Overall, completing 400 continuous training steps on 16 cards across dual nodes is a representative validation of a distributed training link. It proves not the capability of a single component, but that the hardware, drivers, runtime, framework, communication, data, and monitoring systems can collaborate effectively. For subsequent scale expansion, the most important work is to transform one-off validations into standard processes, continuously improving the reliability and delivery efficiency of the training platform through an observable, reproducible, and traceable engineering system.
