Training Trillion-Parameter Models on Chinese AI Accelerators: What Stability Tests Can Prove

    A reported 400-step training test on 16 Chinese AI accelerators raises important questions about memory requirements, FSDP2 sharding, and numerical stability. This article distinguishes training adaptation from full-scale pretraining, explains how to assess the reported results, and outlines the disclosures and monitoring needed to make stability claims reproducible.

    A Chinese AI accelerator vendor recently disclosed a training adaptation exercise involving a model with nearly 3 trillion parameters. The public materials contain both verifiable engineering details and claims that require more context.

    Understanding the distinction helps readers assess the evidence behind such reports. It also provides a practical checklist for teams adapting training workloads to new hardware.

    1. Distinguish Inference Validation, Training Adaptation, and Pretraining

    Industry discussions often blur three different milestones.

    Inference operator validation establishes that a model can execute its forward pass on new hardware. This is typically the focus of day-zero support for newly released open-source models.

    End-to-end training stability requires model loading, forward computation, backpropagation, gradient synchronization, and optimizer updates to work together across repeated steps without errors.

    Pretraining goes further: the cluster must support large-scale data throughput and sustained operation while training a model from scratch.

    Before interpreting a technical report, identify which milestone it actually validates. Inference results do not establish training capability. Likewise, a run lasting a few hundred steps does not establish readiness for long-running pretraining.

    2. Start With the Memory Budget

    Memory is the first constraint in training extremely large models.

    For mixed-precision Adam training, a common estimate is approximately 16 bytes per parameter, accounting for FP32 master weights, gradients, and two optimizer states. At 3 trillion parameters, that amounts to roughly 48 TB.

    With 64 GB of device memory per accelerator, approximately 750 accelerators would be needed just to hold those states, even with complete sharding of parameters, gradients, and optimizer states. That estimate excludes activations, communication buffers, and memory fragmentation.

    If a test uses only 16 accelerators, several explanations are possible:

    • The workload is not the complete, dense 3-trillion-parameter model.
    • CPU memory or NVMe offloading is being used.
    • The test uses a smaller proxy model or covers only selected modules.

    Mixture-of-experts (MoE) models require additional care. Total parameters determine storage and optimizer-state requirements, while active parameters determine computation per token. Both figures need to be disclosed.

    3. What FSDP2 Does

    FSDP2 is PyTorch’s sharded training approach built around the fully_shard interface. Unlike FSDP1, which flattens multiple parameters into a larger tensor, FSDP2 shards individual parameters and represents those shards using DTensor.

    This design makes it easier to combine sharding with tensor parallelism, activation checkpointing, and CPU offloading. It also makes parameter names and shape information easier to preserve after sharding.

    During the forward pass, each layer’s parameters are gathered from other devices as needed and released after computation. This substantially reduces peak memory usage compared with keeping all parameters resident in device memory. During backpropagation, gradient computation and communication can partially overlap, hiding some communication latency.

    FSDP2 and ZeRO-3 follow a similar principle: both shard parameters, gradients, and optimizer states. Their engineering differences primarily involve sharding granularity, integration with other framework components, and communication scheduling. Performance must be measured on the target hardware.

    Multimodal models introduce further structural differences. A vision encoder and a text decoder, for example, typically differ in layer count, parameters per layer, and computational intensity. Partitioning them uniformly by layer count may increase communication frequency for some modules while producing larger parameter-gather operations for others.

    In practice, sharding units are usually defined by parameter count or measured execution time, with an appropriate wrapping granularity for compute-intensive modules.

    4. How to Interpret a “400-Step Stability Test”

    According to the public materials, 16 flagship AI accelerators across two nodes completed 400 consecutive optimizer updates. Loss and gradient norms remained finite, with no NaN or Inf values observed.

    This establishes that no numerical breakdown was observed under the tested configuration. It does not, by itself, prove that:

    • The cluster can train the complete 3-trillion-parameter model.
    • Training will remain stable over long runs, larger clusters, or multiple failure scenarios.
    • Convergence quality matches that of other hardware under equivalent settings.

    At a minimum, the following information is needed to make such findings reproducible:

    Category Required disclosures
    Model Name, total parameters, active parameters, and architecture: dense or MoE
    Hardware Accelerator model, memory per device, node count, and inter-node bandwidth
    Software PyTorch and FSDP2 versions, communication backend, and operator library version
    Parallelism strategy Sharding scope, use of tensor parallelism, CPU offloading, and activation checkpointing
    Training configuration Global batch size, sequence length, precision—BF16 or FP16—optimizer, and learning rate
    Numerical strategy Whether loss scaling is used, the gradient-clipping threshold, and the basis for choosing it
    Test scope Step count, whether fault injection was performed, and whether checkpoint recovery was tested

    5. Monitoring Numerical Stability

    NaN and Inf values are common failure modes in mixed-precision training.

    BF16 has the same exponent width as FP32 and therefore a wide dynamic range. It generally does not require loss scaling in the way FP16 does. FP16 has a narrower dynamic range, making gradients more susceptible to underflow and requiring loss scaling.

    Precision should be chosen based on hardware support and measured model behavior.

    The following pseudocode illustrates the monitoring logic. It uses the return value of clip_grad_norm_ as the gradient norm rather than relying on an undefined helper function.

    The clipping threshold should be chosen from the gradient distribution observed in a baseline run, rather than copied from a fixed rule of thumb. The 1.0 value below is illustrative, not a universal recommendation.

    1. for step, batch in enumerate(dataloader, start=1):
    2. optimizer.zero_grad(set_to_none=True)
    3. outputs = model(batch)
    4. loss = compute_loss(outputs, batch)
    5. if not torch.isfinite(loss):
    6. logging.error(f"Step {step}: non-finite loss {loss.item()}")
    7. raise RuntimeError("Stopping: loss is NaN or Inf")
    8. loss.backward()
    9. # clip_grad_norm_ returns the total gradient norm before clipping
    10. grad_norm = torch.nn.utils.clip_grad_norm_(model.parameters(), max_norm=1.0)
    11. if not torch.isfinite(grad_norm):
    12. logging.error(f"Step {step}: non-finite grad norm, skip this update")
    13. optimizer.zero_grad(set_to_none=True)
    14. continue
    15. optimizer.step()
    16. if step % 10 == 0:
    17. logging.info(f"step={step} loss={loss.item():.4f} grad_norm={grad_norm.item():.4f}")
    18. if step >= 400:
    19. break

    6. From Running Successfully to Running Sustainably

    A successful test run is only a starting point. Scaling from 16 accelerators to thousands or more increases the impact of failures, communication topology, and slow nodes.

    A short stability test provides evidence about the configuration that was tested. Establishing sustained training capability requires evidence beyond that initial run.