Training Trillion-Parameter Models on Domestic GPUs: A Two-Node, 16-Card Stability Practice

    This article reviews a disclosed two-node, 16-card training test for a model with nearly 3 trillion parameters on a Chinese vendor's flagship AI training and inference accelerator and self-developed software stack. It distinguishes Day 0 adaptation from pretraining, describes how to set up a native FSDP2 training path with layer-wise sharding, mixed precision, and optimizer creation after sharding, and examines the reported 400-step stability results along with the missing conditions needed for verification.

    When training trillion-parameter models, a single accelerator card cannot hold the full model parameters, gradients, and optimizer states in memory. Whether the distributed training path is stable directly determines whether a training job can run to completion. According to a disclosure from a Chinese chip vendor, the company completed training adaptation for a flagship model with nearly 3 trillion parameters based on its flagship AI training and inference accelerator card and self-developed software stack, and published cross-node training test results for two nodes and 16 cards. This article reviews the technical points, identifies which conclusions can be referenced directly, and explains which require additional conditions for verification.

    1. Training Adaptation Is Not Pretraining

    The industry often treats “Day 0 adaptation” as proof of compute capability, but adaptation and training are two different things. A model completing inference on a certain chip only shows that the relevant operators can run. Inference validation usually focuses on the numerical precision of individual operators or the feasibility of a fine-grained expert parallelism (EP) scheme.

    Base pretraining, by contrast, requires the chip, communication library, and memory management to remain stable over long-duration, large-scale tasks. The complete training chain includes forward propagation, backward propagation, and gradient updates, as well as cross-node gradient synchronization and fault tolerance. To judge whether a platform has training capability, one should check whether it can run these stages end to end and maintain numerical stability for enough steps.

    2. How to Build a Native FSDP2 Training Path

    FSDP2 (Fully Sharded Data Parallel 2) shards parameters, gradients, and optimizer states, so each card stores only a subset. During forward computation, parameters are gathered on demand and released after computation, reducing peak memory per card.

    The setup usually proceeds in three steps.

    First, shard layer by layer according to model structure. For Transformer-like models, fully_shard is generally called separately for each decoder layer, and then for the root module. This allows communication and computation to overlap and also controls the number of parameters that need to be aggregated each time.

    Second, set mixed precision. A common practice is to compute parameters in bf16 and use fp32 for gradient reduction. bf16 has the same exponent bits as fp32 and a wider dynamic range, so it usually does not require loss scaling as fp16 does, and the cost of debugging overflow issues is lower.

    Third, create the optimizer after sharding is complete. The optimizer must reference the sharded parameters; otherwise, it updates stale copies of the parameters. In addition, the data loader must work with DistributedSampler to ensure that each process reads non-duplicate data.

    For multimodal models, note that the vision encoder, text encoder, and fusion layer differ significantly in parameter scale and compute density. Sharding granularity should be divided by module to avoid a single layer becoming too large and slowing overall communication.

    The following code shows the main flow of sharded wrapping. It is skeleton code and cannot be run directly. When using it, details need to be added according to the specific model structure, data loading, and process group configuration. For domestic chips, the corresponding device type also needs to be substituted.

    1. # Pseudocode: FSDP2 sharding wrapper flow, not directly runnable
    2. # Dependency: PyTorch >= 2.6, launch with torchrun
    3. import torch
    4. from torch.distributed.device_mesh import init_device_mesh
    5. from torch.distributed.fsdp import fully_shard, MixedPrecisionPolicy
    6. # world_size is injected by torchrun, e.g., 2 nodes x 8 cards = 16 (assuming 8 cards per node)
    7. mesh = init_device_mesh("cuda", (world_size,)) # For domestic chips, replace with the corresponding device type
    8. mp_policy = MixedPrecisionPolicy(
    9. param_dtype=torch.bfloat16,
    10. reduce_dtype=torch.float32,
    11. )
    12. model = build_multimodal_model() # Assume the multimodal model has already been built
    13. # Shard layer by layer first, then shard the root module
    14. for block in model.blocks:
    15. fully_shard(block, mesh=mesh, mp_policy=mp_policy)
    16. fully_shard(model, mesh=mesh, mp_policy=mp_policy)
    17. # Create the optimizer after sharding
    18. optimizer = torch.optim.AdamW(model.parameters(), lr=1e-4)
    19. for step, batch in enumerate(dataloader):
    20. loss = compute_loss(model(batch), batch)
    21. loss.backward()
    22. grad_norm = model.clip_grad_norm_(max_norm=1.0)
    23. optimizer.step()
    24. optimizer.zero_grad()

    For multi-node launch, refer to the following command. Node rank, master address, and port need to be filled in according to the actual cluster.

    1. torchrun --nnodes=2 --nproc_per_node=8 --node_rank=$NODE_RANK \
    2. --master_addr=$MASTER_ADDR --master_port=29500 train.py

    3. Stability Results for Two-Node, 16-Card Training

    The vendor reports that all training processes on 16 cards across two nodes completed 400 consecutive optimizer updates. Four hundred steps can expose some problems, such as operator numerical anomalies, communication timeouts, and memory fragmentation, but it cannot represent long-term training stability. The report gives three results:

    • The loss curve declined smoothly, without obvious jumps or oscillations.
    • The gradient norm remained finite across all steps, with no NaN or Inf.
    • No interruption caused by numerical overflow occurred during training.

    These results indicate that under the test conditions, the training chain did not show obvious numerical or communication failures. However, the original disclosure lacks the information needed for reproduction, including the model name and parameter count definition, precision configuration, parallel strategy (the combination of data parallelism, tensor parallelism, and pipeline parallelism), network type and bandwidth, batch size and sequence length, framework and driver versions, and alarm thresholds for loss and gradient norm.

    When evaluating similar results, one can ask the vendor or testing party for this information. Without it, the conclusion can only be understood as “the run passed under those conditions” and cannot be generalized.