Domestic Train-Inference Integrated Compute Completes Training Adaptation for a Nearly Trillion-Parameter Model

    This article examines a recent training adaptation milestone in which a domestic AI chip vendor ran a nearly three-trillion-parameter flagship model on 16 accelerators across two nodes for 400 consecutive optimizer steps. It clarifies the key distinction between training adaptation and base-model pre-training, breaks down what full-link adaptation actually covers—model loading, native FSDP2 sharding, cross-node gradient synchronization, and numerical stability—and outlines a reusable methodology for developers to validate adapted training workloads.

    1. Background: Training Adaptation Is Not Pre-Training

    A domestic AI chip vendor recently announced that, using its flagship train-inference integrated compute card and a self-developed software stack, it quickly completed training adaptation for a flagship large model with nearly three trillion parameters. The setup ran stably for 400 consecutive optimizer update steps across two nodes with 16 accelerators in total.

    What makes this worth developers’ attention is not that “it ran once,” but that it brings a long-confused concept back into focus: training adaptation is not the same as completing base-model pre-training on that chip.

    In industry usage, three common terms carry very different meanings:

    • Day 0 adaptation: inference-side integration completed on the day model weights are released, with the goal of “it loads and produces output”;
    • Training adaptation: verifying that the full chain—forward pass, backward pass, and optimizer update—runs and stays numerically stable, using existing weights or a small dataset;
    • Base-model pre-training: learning parameters from scratch at a scale of trillions of tokens, with the highest demands on compute sources and engineering systems.

    A comparable industry phenomenon is worth noting: the technical report of an open-source large model validated two different accelerator architectures side by side and provided a fine-grained expert parallelism scheme, but the industry generally regards that as validation at the inference operator level, and the official report did not clearly state the original compute source for base-model pre-training.

    So the value of a training adaptation should be judged by whether it connects four key stages—model loading, shard scheduling, gradient synchronization, and numerical stability—rather than simply equating it with “a domestic chip trained a large model.”

    2.1 Model Loading and Weight Sharding

    A nearly trillion-parameter model cannot reside entirely in a single card’s memory. The loading stage requires weight parsing, precision conversion (such as BF16/FP16 mixed precision), tensor sharding, and device mapping. The first hurdle in adaptation is whether custom operators (such as normalization, attention, and positional encoding) have equivalent implementations on the target backend and whether their numerical behavior is consistent.

    2.2 Native FSDP2 Shard Scheduling

    This adaptation built a native FSDP2 multimodal training path. Compared with earlier approaches, FSDP2 improves in several areas: it replaces flattened parameter groups with a DTensor-style sharding abstraction, making the alignment between shards and the computation graph clearer; it reduces implicit state introduced by automatic mixed precision; and it makes the scheduling of sharding, all-gather, and reduce-scatter more predictable. A sample configuration looks like this:

    1. from torch.distributed.fsdp import fully_shard
    2. for layer in model.layers:
    3. fully_shard(layer) # Shard layer by layer to reduce peak memory
    4. fully_shard(model) # Shard again at the top level to converge communication overhead

    Multimodal training also has to handle different parallelism strategies for the vision encoder and the language backbone, so shard granularity needs to be set differently per module.

    2.3 Cross-Node Gradient Synchronization

    Two nodes with 16 cards means cross-node bandwidth becomes the bottleneck. Engineering practice usually does three things: gradient bucketing to merge small messages, overlapping computation with communication, and gradient accumulation to reduce synchronization frequency. If the network topology is poor, all-reduce becomes the main waiting item.

    2.4 Numerical Stability Criteria

    The report mentions that 16 training processes completed 400 consecutive optimizer updates, with loss and gradient norms staying finite throughout and no numerical overflow or interruption. This is exactly the core acceptance criterion for training adaptation:

    1. Checklist:
    2. - Is loss NaN/Inf?
    3. - Does grad_norm spike or drift persistently?
    4. - Is the parameter update magnitude within a reasonable range?
    5. - Are there silent errors (wrong results without raising an error)?

    3. A Reusable Practical Methodology

    1. Inference first, then training: use inference deployment to verify operator coverage, then move into the training path, which quickly surfaces missing operators.
    2. Small steps, fast iteration: first run 50–100 steps on a small dataset and watch the gradient norm curve, then scale up.
    3. Establish a baseline comparison: align loss curves with common industry approaches under the same configuration to avoid “it runs but doesn’t learn.”
    4. Observability first: integrate a general logging service and monitoring alerts, and continuously collect loss, grad_norm, memory usage, and communication time.
    5. Elasticity and fault tolerance: combine a container platform with object storage for checkpoint persistence, supporting failure restart and resumable training.

    4. Conclusion

    An adaptation that stays stable for 400 consecutive steps on two nodes with 16 cards matters because it demonstrates that domestic train-inference integrated compute now has the engineering capability to move from fast inference deployment to full-link stable training. For developers, the key to turning compute into real model productivity is to view the boundary between adaptation and pre-training rationally and to build an acceptance system centered on numerical stability and observability.