Domestic AI Compute Training Adaptation: From Inference-Capable to Stable Training
A report describes a domestic AI compute chip completing training adaptation for a model with nearly 3 trillion parameters, but it discloses limited experimental conditions. This article adds memory-state estimates, sharding mechanics, and engineering acceptance checks to help readers assess the credibility of similar claims. The numerical figures come from the original report; the memory estimates and checklist items are general engineering methods.
A report described a domestic AI compute chip completing training adaptation for a model with nearly 3 trillion parameters, but it disclosed few experimental conditions. This article adds memory estimates, sharding mechanics, and acceptance checks to help readers judge the credibility of similar results. The numerical figures in this article come from the original report; the memory estimates and checklist items are general engineering methods.
1. Passing Inference Does Not Mean Training Works
Many teams interpret “Day 0 adaptation” as meaning the model is already usable, but the requirements for inference integration and training adaptation differ substantially. Inference adaptation usually only requires the chip to load pretrained weights and complete forward computation. As long as the operator library covers enough operations and forward computation runs, inference integration can be considered complete.
Training adaptation also requires backpropagation to compute gradients correctly, optimizer states to update continuously, and numerical results to remain consistent across multiple cards and machines. During training, a gradient error in any operator, a communication timeout, or a numerical overflow can cause the entire training run to drift.
To determine whether a platform has training capability, one should check whether it can complete the full loop from model loading, parameter sharding, and gradient synchronization to optimizer updates. Being able to output text only shows that forward computation is correct.
2. Start with the Memory Budget
During training, a single card must hold model parameters, gradients, and optimizer states. Taking common mixed-precision training with the Adam optimizer as an example, each parameter occupies about 16 bytes: 2 bytes for the bf16 parameter, 2 bytes for the bf16 gradient, 4 bytes for the fp32 master weight, and 4 bytes each for Adam’s first and second moments.
For nearly 3 trillion parameters, the total state size is approximately 3 × 10^12 × 16 bytes = 48 TB. Assuming 80 GB per card, storing only these states would require about 600 cards, before accounting for activations, communication buffers, and memory fragmentation.
This estimate shows that fully training a dense model with nearly 3 trillion parameters on 16 cards is not feasible with conventional memory capacity. For the training reported in the original article to hold, at least one of the following conditions must be met:
- The states are offloaded to host memory or tiered storage such as NVMe, and the read/write bandwidth is sufficient to sustain the training pace.
- Only a subset of parameters is trained, for example by freezing most weights and applying LoRA or another parameter-efficient fine-tuning method. The number of trainable parameters decreases, and the state size decreases accordingly.
- The model architecture introduces additional parallelism dimensions, such as expert parallelism or pipeline parallelism, spreading parameters across more devices.
The original article does not state which of these conditions applies. Before citing this result, one should first confirm whether the experiment used full-parameter training or partial-parameter training.
3. How FSDP2 Shards and Its Boundaries
FSDP2 (native fully sharded data parallel) shards parameters, gradients, and optimizer states along the data-parallel dimension, so each card retains only the shard it is responsible for. When computing a layer, it temporarily gathers the full parameters for that layer via All-Gather, and releases them immediately after computation to reclaim memory.
The simplified flow for one training step is as follows:
# Pseudocode: simplified logic for one FSDP training step# Omits resharding, mixed-precision conversion, communication-compute overlap, offload, and other details; not directly runnablefor batch in dataloader:# Forward: gather full parameters layer by layer and release them immediately after usex = batch.inputsfor layer in model.layers:full = all_gather(layer.shard_params)x = layer.forward(full, x)release(full)loss = loss_fn(x
