LLM Training on Chinese-Developed GPUs: A Two-Node, 16-GPU Adaptation Study

    A two-node, 16-GPU experiment illustrates what distributed LLM training validation can—and cannot—demonstrate. This article examines the reported 400-step stability test, outlines a native PyTorch FSDP training template, and provides acceptance criteria for numerical correctness, communication, recovery, and data loading before production training.

    LLM Training on Chinese-Developed GPUs: A Two-Node, 16-GPU Adaptation Study

    Adapting large-model training to a new hardware platform requires staged engineering validation. A report that a model “runs successfully” does not necessarily mean the platform supports reliable, full-scale training.

    Using a two-node, 16-GPU distributed training experiment as a case study, this article explains what such a test establishes, which conclusions require more evidence, and how teams can define acceptance criteria for their own environments.

    1. Inference Support Is Not Training Support

    The industry often uses “Day 0 support” to describe rapid model enablement when a new chip launches. This usually means running inference for an open-source model or validating the outputs of selected forward-pass operators. These tests primarily assess numerical accuracy and single-device memory usage. Their validation cycles are relatively short, and their coverage is limited.

    End-to-end training requires much more. It includes forward propagation, backpropagation, gradient computation, cross-node gradient synchronization, and optimizer state updates. Every stage must remain numerically stable over repeated iterations.

    Model parameters, gradients, and Adam-style optimizer states all consume device memory. These requirements grow with model size. A chip that supports inference therefore does not automatically support training.

    Three questions help assess the maturity of a training implementation:

    • Are backward-pass operator results numerically correct?
    • Does multi-node communication remain stable during extended runs?
    • Can training recover after a failure?

    Answering only the first question is not enough to establish that the full training workflow is usable.

    2. The Two-Node, 16-GPU Test: Findings and Missing Evidence

    According to the publicly described experiment, the engineering team used 16 Chinese-developed general-purpose GPUs across two nodes, with 16 training processes participating in distributed training. The report states that all processes completed 400 consecutive optimizer updates. Loss values and gradient norms remained finite, with no reported numerical overflow or interruption.

    The result supports three observations:

    1. The reported configuration sustained 400 training steps. This provides evidence beyond a one-off successful execution.
    2. The numerical configuration remained stable over the test window. Mixed-precision training, including BF16 configurations, requires attention to overflow and underflow. The absence of reported anomalies over 400 updates supports the effectiveness of the precision-handling and numerical safeguards under the tested conditions.
    3. Collective communication remained operational during the run. No deadlocks or obvious communication stalls were reported across the 16 processes.

    However, this does not establish that “end-to-end training of a nearly three-trillion-parameter model succeeded.” A 400-step run is a stability test, not evidence of convergence or reliability over a complete training cycle.

    The report also lacks information needed for reproduction and meaningful evaluation:

    Area Details to record Why they matter
    Hardware GPU model, memory per GPU, intra-node and inter-node interconnects Assess whether device memory is sufficient
    Parallelism strategy FSDP sharding boundaries, CPU or NVMe offload settings, activation checkpointing Evaluate memory–throughput trade-offs
    Training configuration Sequence length, global batch size, gradient accumulation steps, learning rate Establish workload intensity
    Data Dataset size and format, multimodal encoder types Assess potential data-loading bottlenecks
    Performance Time per step, total time for 400 steps, communication time as a fraction of step time Evaluate scalability
    Numerical behavior Loss range, gradient norm range, overflow count Assess stability

    Acceptance criteria should be measurable. The following provide a starting point:

    • Overflow count: Zero throughout training, or explicitly logged skipped updates with an explanation.
    • Gradient norms: Record the value at every optimizer step, summarize the distribution, and define an upper alert threshold.
    • Loss: Require finite values throughout the run and compare the trend against a reference implementation using the same data.
    • Communication overhead: Measure the share of step time spent in All-Reduce or Reduce-Scatter and compare it with single-node results.

    Measurement procedures should also be documented. Gradient norms can be obtained from the return value of the gradient-clipping function, avoiding an additional calculation. Logs should be recorded per step and retained in traceable storage.

    3. Native FSDP Training: Configuration and Example

    Fully Sharded Data Parallel, or FSDP, is a common approach to training very large models. It distributes parameters, gradients, and optimizer states across processes so that each process stores only its assigned shard.

    During the forward pass, the framework uses All-Gather to temporarily collect the parameters required by the current layer, then releases the gathered parameters after computation. During backpropagation, it gathers parameters again, computes gradients, and uses Reduce-Scatter to reduce and shard those gradients.

    This substantially reduces peak memory usage per GPU, at the cost of additional communication.

    Multimodal models typically combine language-model layers with heterogeneous components such as vision or audio encoders. Their tensor shapes and lifetimes can differ significantly. Auto-wrapping policies should therefore follow module boundaries rather than treating all components as one sharding unit.

    The following template illustrates where the main configuration options belong. It cannot reproduce training of a nearly three-trillion-parameter model: the actual model implementation, data pipeline, and vendor-specific device interfaces are not included. Replace the communication backend and device interfaces with those supplied by the hardware vendor.

    1. import os
    2. from functools import partial
    3. import torch
    4. import torch.distributed as dist
    5. from torch.distributed.fsdp import FullyShardedDataParallel as FSDP
    6. from torch.distributed.fsdp import MixedPrecision, ShardingStrategy, CPUOffload
    7. from torch.distributed.fsdp.wrap import transformer_auto_wrap_policy
    8. # Replace with the model's actual Transformer layer classes.
    9. # List multimodal encoder classes separately.
    10. from my_model import DecoderLayer, build_model
    11. from my_data import build_dataloader, compute_loss
    12. ACCUM_STEPS = 8 # Accumulate gradients to increase the effective global batch size
    13. MAX_NORM = 1.0 # Gradient-clipping threshold
    14. def setup():
    15. # The backend depends on the vendor's communication library.
    16. # "nccl" is used here as a placeholder.
    17. dist.init_process_group(backend="nccl")
    18. local_rank = int(os.environ["LOCAL_RANK"])
    19. # Replace this device interface with the vendor-provided equivalent.
    20. torch.cuda.set_device(local_rank)
    21. return local_rank, dist.get_world_size()
    22. local_rank, world_size = setup()
    23. model = build_model()
    24. mp_policy = MixedPrecision(
    25. param_dtype=torch.bfloat16,
    26. reduce_dtype=torch.float32, # Use FP32 for gradient reduction to reduce precision loss
    27. buffer_dtype=torch.bfloat16,
    28. )
    29. wrap_policy = partial(
    30. transformer_auto_wrap_policy,
    31. transformer_layer_cls={DecoderLayer},
    32. )
    33. model = FSDP(
    34. model,
    35. sharding_strategy=ShardingStrategy.FULL_SHARD,
    36. auto_wrap_policy=wrap_policy,
    37. mixed_precision=mp_policy,
    38. cpu_offload=CPUOffload(offload_params=False), # Enable only if device memory is insufficient
    39. device_id=local_rank,
    40. use_orig_params=True,
    41. )
    42. optimizer = torch.optim.AdamW(
    43. model.parameters(), lr=1e-5, betas=(0.9, 0.95), weight_decay=0.1
    44. )
    45. dataloader = build_dataloader(world_size=world_size, rank=dist.get_rank())
    46. for step, (inputs, labels) in enumerate(dataloader):
    47. inputs = inputs.to(local_rank)
    48. labels = labels.to(local_rank)
    49. loss = compute_loss(model(inputs), labels) / ACCUM_STEPS
    50. loss.backward()
    51. if (step + 1) % ACCUM_STEPS == 0:
    52. grad_norm = model.clip_grad_norm_(max_norm=MAX_NORM)
    53. if not torch.isfinite(grad_norm).item():
    54. # Skip this update if gradients are non-finite, and log the event.
    55. optimizer.zero_grad(set_to_none=True)
    56. continue
    57. optimizer.step()
    58. optimizer.zero_grad(set_to_none=True)

    Several options deserve particular attention:

    • transformer_layer_cls controls wrapping granularity. Units that are too large increase the data volume of each All-Gather; units that are too small increase the number of communication operations.
    • cpu_offload reduces device memory usage. However, moving parameters between the CPU and accelerator typically reduces throughput.
    • Activation checkpointing trades recomputation for memory savings. It is particularly useful for longer sequences.
    • Gradient accumulation supports larger effective global batches under memory constraints.

    Choose these settings using measured peak memory usage and throughput. Enabling every memory-saving option at the outset is not necessarily the best configuration.

    4. Engineering Checklist: From Operators to the Toolchain

    A successful experiment is only a starting point. To make training support dependable, teams need testable acceptance criteria.

    Check Acceptance method Common failure symptoms Where to investigate
    Operator correctness Compare layer-by-layer forward and backward results against a reference implementation within agreed tolerances Abnormal early loss or all-zero gradients in certain layers Operator unit tests, especially fused operators such as FlashAttention and RoPE
    Communication stability Run extended multi-node tests and measure collective-operation latency and timeout counts Intermittent timeouts, hung processes, variable step times Communication topology, network-interface binding, communication-library version
    Numerical stability Record overflow counts, gradient norms, and loss throughout training Sudden gradient-norm spikes or NaN loss Mixed-precision settings, learning-rate warmup, gradient-clipping threshold
    Launch and fault recovery Simulate process failure, restore from a checkpoint, and verify loss continuity Loss jumps after recovery or missing optimizer states Checkpoint frequency and distributed checkpoint format
    Data loading Measure data-read time and GPU idle time Periodic drops in device utilization Prefetch thread count, data-sharding strategy, storage bandwidth

    In cloud-native environments, container platforms or compute schedulers can orchestrate multi-node, multi-GPU jobs and manage resource scaling. At trillion-parameter scale, the data pipeline also needs suitable high-performance object storage or a parallel file system to prevent data reads from slowing training.

    5. Risks and Limits

    Several boundaries matter when using this approach to evaluate training support.

    Memory savings can reduce throughput. Offloading and activation checkpointing ease memory pressure but introduce transfer or recomputation costs. Capacity planning should use measured throughput, not theoretical memory capacity alone.

    A 400-step stability test does not demonstrate convergence. Longer runs may encounter changes in data distribution, numerical issues during learning-rate decay, or intermittent hardware faults associated with aging. Extended testing is necessary before production use.

    Data loading and storage can become bottlenecks before compute does. Multimodal decoding and preprocessing can be expensive and should be evaluated separately.

    Results depend on the vendor software stack. Driver, communication-library, or operator-library upgrades require the acceptance tests to be rerun.

    Start with a small model on a single node to validate operator outputs and gradients. Then expand to multiple nodes and increase model size incrementally.

    At every stage, retain configurations, logs, and results so that experiments can be reproduced. Define acceptance criteria before testing rather than selecting favorable metrics afterward.

    Once stability has been established, invest in longer training runs and performance optimization. This sequence separates “the model runs” from “the platform is ready for production training,” while keeping resource investment aligned with demonstrated progress.