Domestic Accelerator Cards Complete Two-Node, 16-Card LLM Training Validation

    A training environment based on domestic accelerator cards has completed a two-node, 16-card large language model training validation and run continuously for 400 steps. This article explains why end-to-end validation matters, how to prepare and launch distributed training, which metrics to monitor, how to troubleshoot common failures, and what additional testing is needed before production deployment.

    In large language model training, the ability of a single accelerator card to complete forward and backward computation does not mean that the entire training system is ready for production use. Once a workload expands to multiple nodes and multiple cards, the compute devices, drivers, runtime components, deep learning framework, communication libraries, data pipeline, checkpoint mechanism, and monitoring system must remain compatible. A version mismatch, communication failure, or resource configuration error in any component can prevent training from starting—or remain hidden until hundreds of steps have completed.

    Recently, a training environment based on domestic accelerator cards completed a two-node, 16-card training validation and ran continuously for 400 steps. The value of this validation is not simply that a single job was able to start. It confirms that the underlying components can work together from job orchestration through the training process. This article reviews the implementation approach, key checks, and follow-up optimization priorities from a general technical perspective.

    1. Why Complete End-to-End Validation Matters

    A typical large model training stack includes the following components:

    1. Hardware and runtime environment: Accelerator cards, the host operating system, drivers, runtime components, and device management tools.
    2. Training framework and operator implementations: Tensor computation, automatic differentiation, parallelism strategies, and device scheduling.
    3. Distributed communication components: Data exchange between nodes and cards for data parallelism, tensor parallelism, or pipeline parallelism.
    4. Data processing and input pipeline: Sample loading, preprocessing, tokenization, batch construction, and data distribution.
    5. Job scheduling and process management: Correctly starting training processes on different nodes, enabling peer discovery, and completing synchronization.
    6. Logging, monitoring, and fault recovery: Recording loss, learning rate, throughput, memory usage, communication status, and checkpoint information.

    A single-card test usually shows only that basic operators and memory allocation work. A short multi-card startup test cannot fully validate communication stability, gradient synchronization, data consistency, or checkpoint recovery. Running a two-node, 16-card job for 400 steps still does not equal a complete production training run, but it can expose many engineering problems and serve as a useful stage-gate criterion for the training stack.

    2. Preparing the Environment

    2.1 Standardize Software Versions

    One of the most common causes of multi-node training failures is inconsistency between nodes. For example, two hosts may use different driver, runtime, or framework versions. The devices may still be detected, but communication initialization or a specific operator may fail later.

    Before starting a job, each node should be checked for the following:

    • The number of accelerator cards and device IDs are consistent;
    • Driver and runtime versions fall within a compatible range;
    • Python and training framework versions are identical;
    • Dependency installation paths are consistent;
    • Default encoding, time zone, and system time are aligned;
    • Training code, configuration files, and vocabulary files use the same versions;
    • The nodes can communicate normally over the internal network.

    Environment validation should not depend solely on manually maintained records. Device information, software versions, and important environment variables should be written to the logs and stored as experiment metadata. This makes it easier to determine whether a failure was caused by a code change, an environment change, or a hardware condition.

    2.2 Check Device Visibility

    Before training processes are launched, every card must be discoverable by the framework. Device visibility should be checked at three levels:

    • The operating system can identify the device;
    • The runtime can create a compute context;
    • The training framework can allocate tensors and execute basic operators.

    Small tensor tests can be used to run matrix multiplication, reduction, copy, and backward propagation before distributed training begins. This separates device availability issues from distributed initialization failures and narrows the troubleshooting scope.

    2.3 Verify the Network and Ports

    Two-node training depends on stable communication between hosts. In addition to bandwidth, latency, packet loss, port policies, and connection counts can affect stability. Validation should check the following:

    • Network connectivity between the two hosts;
    • Access to the ports required by training;
    • Consistent hostname or address resolution;
    • Whether firewall policies may terminate long-lived connections;
    • Whether network interfaces are frequently reset;
    • Whether packet loss or bandwidth fluctuations occur during training.

    For communication-intensive models, network problems may not immediately produce an error. They may appear as reduced throughput, long waits by individual processes, or gradually diverging step progress between nodes. Network monitoring should therefore continue throughout training rather than being performed only once before startup.

    3. Key Logic for Starting Distributed Training

    A two-node, 16-card configuration typically runs eight training processes on each host, with one accelerator card assigned to each process. The training system must clearly define:

    • Total process count;
    • Current node rank;
    • Current process rank;
    • Master node address;
    • Initialization port;
    • Device ID assigned to each process;
    • Global batch size and per-card batch size;
    • Gradient accumulation steps;
    • Random seed and data-sharding strategy.

    The mapping between process ranks and device IDs must remain stable. If multiple processes are accidentally assigned to the same card, memory may be exhausted quickly. If some devices have no process assigned, resources are wasted and collective communication may fail to complete.

    After startup, first verify that all processes have completed initialization. Each process should report the correct node information, device information, and parallel group information. Formal step counting should begin only after all processes have entered the same training stage.

    4. What to Monitor During the 400-Step Validation

    4.1 Confirm That Loss Is Computed Correctly

    Training loss is an important indicator of whether forward computation, backward computation, and gradient synchronization are functioning properly. Validation should not focus only on whether the loss decreases. It should also examine:

    • Whether the loss suddenly becomes zero or infinite;
    • Whether NaN values appear;
    • Whether loss statistics differ significantly between processes;
    • Whether the gradient norm continues to grow abnormally;
    • Whether learning-rate scheduling follows expectations.

    During the early stages of training, loss does not necessarily decrease monotonically. However, it should not show completely irregular and extreme oscillations. If all processes cannot maintain consistent training states, data sharding, random seeds, gradient synchronization, or mixed-precision settings should be checked.

    4.2 Monitor Accelerator Memory and Host Memory

    Accelerator memory usage should stabilize after several steps. Continued growth may indicate that cached memory is not being released, the computation graph is being retained unintentionally, or data batch objects are being held longer than expected.

    Host memory also requires attention. Data prefetching, caching, and multi-process loading can cause host memory usage to increase gradually. In long-running jobs, a memory leak that is not obvious in a short test may eventually interrupt training.

    4.3 Record Throughput and Step Time

    Per-step duration reflects the combined efficiency of computation and communication. The following metrics should be recorded together:

    • Step duration;
    • Samples processed per unit of time;
    • Device utilization;
    • Communication wait time;
    • Data loading time;
    • Forward, backward, and parameter-update duration.

    Periodic fluctuations in step time may be related to data loading, checkpoint saving, log flushing, or communication synchronization. If one node remains slower than the others, the overall training speed will generally be limited by the slowest node.

    4.4 Validate Checkpoint Saving and Recovery

    A checkpoint may contain more than model parameters. It can also include optimizer state, learning-rate scheduler state, random-number state, and the current step. At least one checkpoint should be saved during validation, followed by a recovery test in an independent process or after restarting the job.

    Recovery validation should check:

    • Whether model parameters are complete;
    • Whether optimizer state is restored;
    • Whether the training step continues correctly;
    • Whether the learning rate changes unexpectedly;
    • Whether the data position matches expectations;
    • Whether loss and throughput remain normal after recovery.

    If a checkpoint stores only model weights and not optimizer state, the resumed run may not follow the original training trajectory, especially when using momentum-based optimization algorithms.

    5. Common Multi-Card Training Problems and Troubleshooting Methods

    5.1 The Job Stalls During Initialization

    This type of problem is usually related to node addresses, ports, process counts, or network connectivity. First confirm that all processes have started, then check whether the master node can accept connections from the other node. Model code should not be modified as the first troubleshooting step, because many initialization failures occur before the training logic is executed.

    5.2 Communication Times Out After Several Steps

    Communication timeouts can be caused by network fluctuations, an abnormal process exit, an unusually long device computation, or different processes entering inconsistent code paths. Diagnosis should combine the last log entry from each process, device utilization, and system logs.

    If only one process fails first, the other processes may simply appear to be waiting. The earliest abnormal process should therefore be located before analyzing the processes that ultimately report a timeout.

    5.3 Out-of-Memory Errors

    An out-of-memory error does not necessarily mean that the model itself cannot be trained. It may be caused by:

    • An excessive per-card batch size;
    • An overly long sequence length;
    • Excessive retention of activations;
    • Temporary tensors not being released promptly;
    • Additional memory usage during checkpointing or evaluation;
    • Mixed precision not taking effect.

    The issue can be investigated by reducing the per-card batch size, increasing gradient accumulation, enabling activation recomputation, removing unnecessary caches, and optimizing data formats.

    5.4 Inconsistent Training Results

    Multi-card training requires data sharding and random states to remain controlled. If different processes read the same samples or divide data inconsistently between epochs, the effective batches may differ from expectations.

    In engineering practice, the global random seed, per-process random seed, and data-loader random seed should be clearly distinguished. The configuration for each experiment should also be recorded.

    6. Moving from Stage Validation to Production Training

    A 400-step run on two nodes with 16 accelerator cards primarily shows that the training pipeline has achieved initial operability. It does not yet establish production-grade stability. The following tests should be conducted next:

    1. Extend the runtime to several hours or longer to detect communication, accelerator-memory, and host-memory issues;
    2. Test different batch sizes, sequence lengths, and gradient accumulation settings;
    3. Validate node restarts, abnormal process termination, and job recovery;
    4. Compare throughput across single-card, multi-card, and multi-node configurations;
    5. Establish unified logging, metrics, and alerting;
    6. Record the code version, environment version, and configuration snapshot for every run;
    7. Perform regular checkpoint recovery drills;
    8. Verify result consistency on a small dataset before formal training.

    For enterprise environments, the value of a training pipeline is not limited to whether it can start. It must also be reproducible, observable, recoverable, and scalable. Only by integrating hardware adaptation, distributed communication, the training framework, and operational procedures can a successful validation run become a stable engineering capability.

    Overall, completing 400 training steps on two nodes with 16 domestic accelerator cards represents an important stage in validating large model training on a domestic acceleration environment. It covers key components including multi-node device discovery, process orchestration, gradient synchronization, mixed precision, data input, and checkpointing. The next phase should focus on long-term stability, training efficiency, fault recovery, and scale-out capability, ultimately building standardized and repeatable infrastructure for large language model training.