How to Evaluate 16-GPU Training Adaptation Results on a Chinese-Made GPU

    This article explains why a successful inference port does not show that a GPU can train large models, and how FSDP2 sharding changes per-GPU memory use without reducing total training state. It estimates the memory needed to train a model with about 3 trillion parameters and lists the settings, metrics, and records to request when judging a two-node, 16-GPU, 400-step validation result.

    1. Training Adaptation vs. Inference Adaptation

    “Day 0 adaptation” usually means a model can run inference on a given chip on the day it is released. Inference only requires correct forward computation, with outputs close to a reference implementation.

    Training has higher requirements. It requires full backpropagation, optimizer state updates, and large-scale distributed communication. Model loading, parameter sharding, gradient synchronization, and checkpoint saving and recovery must all work. A single missing operator or insufficient numerical precision can make training diverge or crash partway through.

    Successful inference support therefore does not show that a model was pretrained on that chip. To judge a chip’s training capability, check whether it can complete long, multi-node, optimizer-stateful training runs without interruption.

    Dimension Inference adaptation Training adaptation
    Computation Forward pass Forward pass, backward pass, optimizer update
    Memory use Mainly model weights Weights, gradients, optimizer state
    Communication Usually light Continuous collective communication
    Validation period Single or short requests Long, continuous iterations
    Must-check items Operator correctness, output consistency Numerical stability, checkpoint saving and recovery, restart after failure

    2. FSDP2 Sharded Training and Memory Estimation

    FSDP2 is the fully sharded data parallel scheme provided by PyTorch. Its API is torch.distributed.fsdp.fully_shard. It splits parameters, gradients, and optimizer state into shards and distributes them across GPUs. When a layer is computed, the system temporarily gathers that layer’s full parameters and releases them afterward. This lowers the peak memory on each GPU.

    Memory requirements can be broken down using the accounting in the ZeRO paper. Take bf16 mixed precision with Adam as an example. Each parameter’s training state takes about 16 bytes:

    • bf16 weights: 2 bytes
    • bf16 gradients: 2 bytes
    • Adam first moment (m) and second moment (v), in fp32: 8 bytes
    • fp32 master weights: 4 bytes

    The total is 16 bytes per parameter. For a model with 3 trillion parameters, the full training state is about:

    3 × 10^12 × 16 bytes ≈ 48 TB

    Assume 16 GPUs with 80 GB of memory each, for a total of about 1.28 TB. The gap is about 37 times. Even if FSDP2 spreads the 48 TB evenly across 16 GPUs, each GPU still holds about 3 TB, far above 80 GB. FSDP2 lowers the peak memory on each GPU. It does not reduce the total training state.

    These figures are theoretical minimums. They exclude activations, temporary communication buffers, and memory fragmentation. Actual usage will be higher.

    FSDP2 also has several costs to consider:

    • Both the forward and backward passes use all-gather to collect parameters. The backward pass also uses reduce-scatter to aggregate gradients. More shards mean more communication rounds and more data moved.
    • Sharding at too fine a granularity adds communication overhead. Sharding at too coarse a granularity reduces the memory savings.
    • CPU offload moves parameters or optimizer state to host memory. The cost is slower speed from PCIe transfers.

    MoE architectures reduce the compute per step, but they do not reduce total storage. The parameters of all experts must still be stored. Expert parallelism (EP) only spreads them across more devices. To hold the full training state of a model with nearly 3 trillion parameters, a cluster needs about 48 TB of GPU memory, or it must offload to CPU memory or NVMe storage.

    3. A 400-Step Validation on Two Nodes and 16 GPUs: What to Check

    The source material describes a two-node, 16-GPU, 400-step validation. The text is cut off in this section, however. It gives no vendor name, model name, configuration details, logs, or test scripts. This article therefore cannot verify the result. It only explains what readers should check.

    3.1 Configuration Checklist

    Item What to confirm
    Model architecture Dense or MoE, and the total and active parameter counts
    GPU model and memory GPU model, memory capacity, and whether all of it is usable
    Node interconnect Link type and bandwidth within a node and between nodes
    Parallelism strategy FSDP sharding group size, and the degrees of TP, PP, and EP
    Numerical precision Precision used for weights, gradients, and optimizer state
    Optimizer and offload Optimizer type, and whether state is kept in GPU memory, host memory, or disk
    Sequence length and batch size Sequence length, global batch size, and gradient accumulation steps
    Recomputation Whether activation recomputation is enabled
    Software versions Driver, compiler, framework, and operator library versions
    Training data Whether real pretraining data was used, and how much

    3.2 Metrics

    Metric Purpose What to look for
    Loss curve Shows whether values converge or diverge Any NaN values or sudden jumps, and whether the overall trend is reasonable
    Tokens per second Measures throughput Whether a steady-state average is reported, with warm-up steps excluded
    Peak per-GPU memory Shows whether memory is sufficient Whether the reported value is the maximum across all GPUs, not the average
    Communication time share Shows whether communication is a bottleneck Whether all-gather and reduce-scatter times are reported
    Stability Tests long-running capability Number of interruptions and restarts, and whether checkpoint recovery succeeded

    3.3 How to Read 400 Steps

    400 steps cover only a short stretch of early training. They can show whether the system starts, whether communication works, and whether the loss stays stable over the short term. They cannot show whether the model can complete full pretraining, or whether rare errors appear during long runs.

    To use such a result for hardware selection, at least three more types of evidence are needed: scaling data at different sizes, continuous runs over a longer period, and actual test results for checkpoint saving and recovery.

    4. Scope of the Result and What to Request

    A validation result like this applies only to the specific model architecture, parallelism strategy, and software versions tested. It cannot be extended to all models with nearly 3 trillion parameters, and it does not show the chip’s general training capability.

    When evaluating such a result, you can ask the vendor for the following:

    1. A description of the model architecture and a parameter count
    2. A completed version of the configuration checklist in Section 3.1
    3. Raw data for the 400 steps, including the loss curve, throughput, peak memory, and communication time
    4. Test records for checkpoint saving and recovery
    5. Logs of any failures, retries, and interruptions during the run
    6. Training scripts and dependency versions that allow the results to be reproduced

    References

    • PyTorch official documentation: torch.distributed.fsdp.fully_shard (FSDP2)
    • Rajbhandari S., et al. “ZeRO: Memory Optimizations Toward Training Trillion Parameter Models.” SC 2020. arXiv:1910.02054