Domestic AI Chip Training Adaptation for Trillion-Parameter LLMs: How to Evaluate

    This article reviews a recent domestic AI chip training adaptation for a flagship model with nearly 3 trillion parameters, in which 16 devices completed 400 optimizer updates with finite loss and gradient norms. It explains how to evaluate training adaptation, verify trillion-parameter training stability, distinguish training adaptation from inference adaptation and base pretraining, and assess native FSDP sharding, cross-node communication, numerical stability, fault tolerance, and toolchain maturity. It also provides a six-dimension evaluation framework and pilot steps for developers and technology decision-makers.

    1. Event Breakdown: What This Adaptation Actually Completed

    A domestic AI chip vendor recently announced that, using its self-developed flagship training-and-inference integrated accelerator card and software stack, it completed training adaptation for a flagship large model with nearly 3 trillion parameters.

    According to publicly disclosed information, in a dual-node, 16-card joint training test, 16 training processes completed 400 consecutive optimizer updates. During the test, loss values and gradient norms remained finite, with no numerical overflow or interruption.

    For developers and technology decision-makers, more important questions are: How should domestic AI chip training adaptation be evaluated? How should trillion-parameter large-model training stability be verified? What common mistakes should be avoided? These questions matter more than simply stating that a model ran successfully. Training adaptation is not merely replacing a chip in an inference framework. It must verify backward operators, sharding strategies, gradient synchronization, mixed precision, cross-node communication, long-range numerical stability, and toolchain maturity.

    1.1 What the adaptation covered

    Please note: This article is based on the vendor’s public disclosure. Before using this information for procurement or technology selection, it is advisable to further verify the source, time, test logs, model specifications, and reproduction materials.

    From a technical perspective, the adaptation can be broken down into four layers:

    1. Target model: A flagship large model with nearly 3 trillion parameters. If it uses a sparse activation mixture-of-experts (MoE) architecture, all expert parameters still need to be stored during training. Optimizer states will not decrease linearly just because the number of activated parameters is reduced. This places high demands on memory, sharding, and communication.
    2. Hosting platform: A domestic flagship training-and-inference integrated accelerator card. Such chips often serve both inference and training workloads, but training is significantly more difficult than inference.
    3. Software path: A native full-parameter sharded data parallel training path, covering model loading, parameter sharding, gradient synchronization, and optimizer updates.
    4. Validation result: All 16 processes on a dual-node, 16-card setup continuously executed 400 optimizer updates, and both loss values and gradient norms remained finite.

    1.1 Training imposes far greater hardware challenges than inference

    The inference stage has a relatively fixed computation graph and mainly executes forward operators such as matrix multiplication and attention. Training must simultaneously handle backward operators, cross-device gradient reduction, optimizer state updates, and long-range iterative stability.

    Common pressure points in the training pipeline include:

    1. Backpropagation introduces a large amount of gradient computation;
    2. Data parallelism generates cross-device gradient reduction;
    3. Adam-like optimizers continuously maintain first- and second-order momentum;
    4. Numerical stability must be maintained over thousands to tens of thousands of iterations.

    Many hardware and software stack issues do not appear in the first few dozen steps. They often become concentrated after several hundred steps. Therefore, “capable of inference” does not mean “capable of training.”

    Distributed training is a synchronous system. Every step must wait for all participating devices to complete computation and communication. A 16-card scale is not large, but cross-node communication, process group management, topology discovery, and fault-tolerant recovery are already involved in practice.

    A simplified formula can help explain the issue:

    1. P(no severe straggler in cluster) ≈ (1 - p)^N

    Here, p is the probability that a single node becomes a severe straggler, and N is the number of nodes. If p is 1% and N is 100, the probability of having no severe straggler is about 36.6%. When N is 500, the probability drops to about 0.66%. This shows that in thousand-card-scale training, a node may become a bottleneck at any time.

    1.3 What 400 consecutive steps mean

    A single correct forward pass only shows that single-card operators are basically usable. Several hundred consecutive stable updates indicate at least the following issues have been preliminarily controlled:

    1. Gradient values remain finite during long-range iterations;
    2. Parameter replicas across processes remain consistent, without obvious parameter drift;
    3. Repeated interleaving of computation and communication does not cause deadlock or timeout;
    4. Optimizer states continue to update without abnormal accumulation.

    However, 400 steps are still only a starting point for engineering validation. Large-scale pretraining usually requires thousands to tens of thousands of steps, as well as long-running unattended operation, automatic disaster tolerance, and checkpoint recovery capabilities.

    2. Concept Clarification: Training Adaptation, Inference Adaptation, and Base Pretraining Are Not the Same

    A key conclusion should be stated first: Successful training adaptation does not mean that the base model was pretrained on this chip.

    Concept Main Work Validation Focus Typical Output
    Inference adaptation Forward operators, quantization, graph optimization, memory and throughput tuning Accuracy, latency, throughput Inference services can be provided on the chip
    Training adaptation Backward operators, mixed precision, gradient reduction, sharding scheduling, optimizer updates, fault tolerance Convergence trends, numerical stability, long-term robustness Models can be fine-tuned or trained on the chip
    Base pretraining Training from scratch on massive corpora, possibly involving trillions of tokens Final quality, training efficiency, convergence curves A new base model’s weights

    Some model technical reports present inference validation results across multiple hardware platforms. This proves that the model can run inference efficiently on that hardware, but it is not equivalent to base pretraining being completed on that hardware. Some vendors also release versions specifically adapted to a hardware platform. These versions may differ from the original base model in attention implementation, normalization placement, activation functions, or positional encoding.

    Therefore, when reading model cards and technical documents, it is important to focus on: weight source, training hardware, reproduction notes, parallel strategy, training data, and evaluation specifications.

    3. Technical Breakdown: Key Parts of the Native FSDP Training Path

    The native FSDP training path constructed for this adaptation shares a core idea with the Zero Redundancy Optimizer in the DeepSpeed/ZeRO paper. This work was proposed by Rajbhandari et al. in 2020. Its goal is to eliminate redundant parameters, gradients, and optimizer states stored by each device in data parallelism, converting memory pressure into communication overhead.

    In traditional data parallelism, each card stores a complete model replica and performs gradient all-reduce after backpropagation. Full-parameter sharding splits parameters, gradients, and optimizer states across the data parallel group, and each card only handles one part:

    1. Forward stage: Temporarily restore the complete parameters of the current layer through all-gather as needed, and release them promptly after computation;
    2. Backward stage: Gather parameters again to compute gradients, then use reduce-scatter to sum and distribute gradients;
    3. Update stage: The optimizer only updates the parameter shard held by the current card;
    4. Next iteration: Gather parameters again as needed.

    For ultra-large parameter models, sharded training can significantly reduce single-card memory usage. For mixed-precision training with Adam-like optimizers, suppose parameters and gradients use 2 bytes each, while the optimizer’s master weights and first- and second-order momentum each use 4 bytes. Then each parameter requires about 16 bytes. For 3 trillion parameters, the model state alone requires about 48TB. If optimizer states are sharded across 16 cards, the per-card optimizer portion can be reduced from about 36TB to about 2.25TB.

    However, communication volume requires more careful explanation: When the parameter count is much larger than the data parallel degree, parameters are all-gathered on demand, and communication is sufficiently overlapped with computation, the communication volume of all-gather plus reduce-scatter can approach that of traditional all-reduce. However, because forward and backward passes may repeatedly all-gather parameters, the actual total communication volume may increase. In engineering practice, gradient bucketing, communication-computation overlap, topology awareness, parameter prefetching, and reducing cross-machine synchronization are needed to control overhead.

    Taking “per-parameter sharding” as an example, the logical flow of one training step can be abstracted as:

    1. # Conceptual example: single-step flow of full-parameter sharding training (pseudocode, not directly runnable)
    2. import torch
    3. def train_step(sharded_model, batch, criterion, optimizer, grad_norm_dtype=torch.float32):
    4. optimizer.zero_grad(set_to_none=True)
    5. # 1. Forward: aggregate parameters by layer, and release aggregation buffers promptly after computation
    6. output = sharded_model(batch)
    7. # 2. Backward: aggregate parameters again as needed, and reduce gradients through reduce-scatter
    8. loss = criterion(output, batch.label)
    9. loss.backward()
    10. # 3. Check gradient norm and NaN/Inf after backward reduction but before gradient clipping
    11. grad_norm = check_gradients(sharded_model, dtype=grad_norm_dtype)
    12. # 4. The optimizer only updates the parameter shard held by the current device
    13. clip_gradients(sharded_model, grad_norm, max_norm=1.0)
    14. optimizer.step()
    15. return float(loss.detach().float().cpu().item()), float(grad_norm)

    A native implementation needs to focus on five issues:

    1. Trade-off between offloading and recomputation: Parameter aggregation buffers should not be repeatedly allocated and released. Without unified memory management, memory fragmentation can easily occur. Observable signals include memory allocation curves, OOM logs, reserved/allocated differences, and activation recomputation ratio.
    2. Mixed precision and master weight consistency: Forward and backward passes use low-precision computation, while the optimizer uses high-precision master weights. The rounding path for the same parameter on each device must be consistent. Observable signals include differences between master weights and cast weights, sudden changes in gradient norm, and parameter drift alerts.
    3. Combination of tensor parallelism and pipeline parallelism: Sharding groups must be consistent with the overall parallel topology. It is necessary to check rank mapping, process group configuration, and pipeline stage boundaries to avoid reducing gradients over the wrong objects.
    4. Coordination with expert parallelism: In MoE models, expert parameters are usually split along the expert dimension. When sharding, expert parallelism, and data parallelism are stacked, expert gradients may be repeatedly reduced or missed. It is necessary to check the number of expert gradient buckets, all-reduce counts, and expert token distribution.
    5. Completeness of collective communication primitives: In addition to all-gather and reduce-scatter, broadcast, all-reduce, send/recv, and other primitives are also required. It is necessary to check collective communication error rates, cross-node RDMA status, NCCL-like logs, and timeout retry records.

    4. Stability Validation: Why loss and gradient norm must be watched closely

    The core metrics disclosed in this test are that loss and gradient norms remained finite throughout the run. These are the most basic and most critical signals in a training pipeline health check.

    • Loss: Reflects the gap between predictions and targets and shows convergence trends. A sudden loss spike or a NaN loss often points to an excessive learning rate, improper initialization, mixed-precision overflow, or data anomalies.
    • Gradient norm: Reflects the overall scale of all parameter gradients. If some parameter gradients become Inf or NaN, the gradient norm will also become Inf or NaN. Therefore, it is both a monitoring metric and a basis for deciding whether an abnormal update should be skipped.

    Using PyTorch-style code as an example, gradient finiteness checks can be understood as follows:

    1. # Conceptual example: gradient finiteness check (pseudocode, not directly runnable)
    2. import torch
    3. def finite_grad_norm(grads, dtype=torch.float32):
    4. total_norm = torch.zeros(1, dtype=dtype)
    5. squares = []
    6. for grad in grads:
    7. if grad is None:
    8. continue
    9. if not torch.isfinite(grad).all():
    10. return float("nan")
    11. squares.append(grad.detach().to(dtype).pow(2).sum())
    12. if squares:
    13. total_norm = torch.stack(squares).sum().sqrt()
    14. return float(total_norm)

    This pseudocode contains three key design choices:

    1. Per-gradient finiteness checking: If any shard is abnormal, the global gradient norm should become non-finite.
    2. Unified computation precision: Use a data type with higher precision than the parameter precision to accumulate squared sums, reducing precision loss.
    3. Global aggregation: After reduction, take the square root to obtain a global gradient norm that is consistent from the perspective of all devices.

    In engineering practice, it is recommended to move gradient monitoring to the point immediately after backpropagation, rather than relying only on internal framework fallbacks:

    1. Early detection: Intercept anomalies before entering gradient clipping or reduction logic;
    2. Precise localization: Record the layer name, parameter name, and device owning the shard when an anomaly occurs;
    3. Observability: Connect loss, gradient norm, clipping coefficient, learning rate, single-step duration, and peak memory usage to monitoring and alerting systems.

    The real difficulty is not keeping loss finite for one or two hundred steps, but preventing divergence throughout long-range training of tens of thousands of steps while ensuring that the loss reduction curve aligns with baseline results on other hardware platforms. This usually requires:

    1. Producing a baseline loss curve on reference hardware under the same data sampling order, random seeds, and hyperparameters;
    2. Comparing forward outputs and gradients layer by layer to locate the operators with the largest numerical deviation;
    3. Recomputing operators with significant deviations using higher precision or more stable equivalent implementations until the error converges to an acceptable range.

    5. Cross-Node Communication: Engineering Work Behind Stable Operation on 16 Cards

    At a dual-node, 16-card scale, cross-node communication is often the first area where problems appear. A simplified model can help:

    1. Single-step duration ≈ max(computation duration, communication duration) + communication duration that cannot be overlapped
    2. Scaling efficiency ≈ (N × single-card duration) / (N-card cluster single-step duration × single-card baseline duration)

    If computation and communication are sufficiently overlapped, the cluster is closer to being computation-bound. If communication cannot be hidden by computation, the benefit of adding each card will decrease.

    Common optimization directions include:

    1. Topology-aware process orchestration: Try to place the same sharding group or tensor parallel group within a high-bandwidth interconnect domain;
    2. Gradient bucketing and overlap scheduling: Bucket gradients according to the order in which parameters become ready during backpropagation, improving overlap rates;
    3. Hierarchical reduction: First perform local reduction within nodes, then aggregate across nodes, reducing data volume on inter-machine links;
    4. Reliable transmission and fault isolation: Enable reliable connections, congestion control, timeout retries, and link health detection.

    To make communication evaluation reproducible, it is recommended to add measurement specifications rather than relying only on qualitative descriptions:

    1. Collective communication benchmarks: Use nccl-tests or vendor-equivalent tools to test bandwidth and latency for all-reduce, all-gather, and reduce-scatter;
    2. RDMA metrics: Measure cross-node latency, bandwidth, jitter, packet loss, and retransmission rate;
    3. Tail latency: Record p95 and p99 communication durations, avoiding focus only on averages;
    4. Communication ratio: In a single-step profile, count communication time, computation time, waiting time, and non-overlapped communication time;
    5. Scaling efficiency curve: Verify level by level from single card, single-node multi-card, dual node, to more nodes, and record scaling efficiency at each level.

    Only when metrics at every level meet expectations can migration to a larger-scale cluster be considered.

    6. From “Can Run” to “Ready to Train”: Key Pieces of the Engineering System

    Passing a single test is only the starting point. The vendor’s public materials mention that it has completed cases such as scientific foundation model training, 5D world model training, and embodied AI brain model training, and that it is advancing trillion-parameter model training. Different models place very different requirements on operator sets, parallel strategies, and numerical stability. If these cases are used for formal promotion or procurement evaluation, sources, time, model specifications, and test details should be added.

    It is recommended to record information using the following specification checklist:

    Item Recommended Verification Details
    Source and time Official website, technical white paper, release time, version number, third-party reproduction materials
    Model specifications Parameter count, model architecture, whether it is MoE, activated parameters, context length, data scale
    Hardware specifications Chip model, single-card memory, dual-node 16-card, intra-machine interconnect, cross-node network
    Parallel specifications FSDP, tensor parallelism, pipeline parallelism, expert parallelism, and their combinations
    Precision specifications BF16/FP16, FP32 master weights, gradient accumulation precision, numerical anomaly handling
    Batch specifications Micro batch size, global batch size, sequence length, gradient accumulation steps
    Stability specifications 400 optimizer updates, finite loss, finite gradient norm, no interruption, no NaN/Inf
    Toolchain specifications Performance analysis, fault injection, automatic restart, checkpoint recovery, log tracing

    To move from “can train” to “ready to train,” four pieces usually need to be completed:

    1. Operator coverage and precision alignment: Backward operators must have stable implementations and be compared layer by layer with reference implementations;
    2. Automated toolchain: Configuration validation, parallel strategy recommendation, sharding and recomputation tuning, performance profiling, fault injection;
    3. Observability and fault tolerance: Unified metrics, logs, distributed tracing, automatic restart, and checkpoint continuation training;
    4. Developer ecosystem: Training script templates, fine-tuning tools, documentation, and examples to reduce migration costs.

    7. Reader Benefits: Six Dimensions for Evaluating and Deploying Training Adaptation

    For other chip vendors and platform teams, it is useful to first establish an evaluation framework with a summary card:

    Six evaluation dimensions: operator completeness, parallel capability, communication efficiency, stability, fault recovery, and toolchain.

    Three pilot steps:

    1. Use a small-scale model to run the complete chain of “loading, sharding, gradient synchronization, and optimizer updates”;
    2. Use a model at the target scale to conduct several hundred steps of long-range stability testing, observing loss and gradient norm curves;
    3. Compare the actual training time and memory usage of the pilot model against a baseline platform, and evaluate the total cost of ownership.
    Dimension Key Question Reference Standard
    Operator completeness Are forward, backward, and mixed-precision implementations complete? No missing operators, and layer-by-layer numerical alignment with the reference implementation
    Parallel capability Does it support full-parameter sharding, tensor parallelism, pipeline parallelism, and their combinations? Multiple parallel strategies can be combined flexibly, and memory usage decreases as parallelism increases
    Communication efficiency Are computation and communication sufficiently overlapped? Is it topology-aware? Most communication time is hidden by computation, and scaling efficiency meets expectations
    Stability Do loss and gradient norms remain finite during long-range iterations? No NaN/Inf for hundreds to thousands of consecutive steps, and the loss curve matches the baseline
    Fault recovery Can single-point failures be automatically detected and recovered? Automatic fault detection, automatic restart, and continuation training from checkpoints
    Toolchain Are debugging, tuning, and deployment convenient? Performance analysis, breakpoint debugging, one-click deployment, and other capabilities are provided

    When enterprise users evaluate whether domestic AI chips can support training tasks, they should not look only at peak compute numbers. They should run end-to-end pilots using their own real models and data. The question of how to evaluate domestic AI chip training adaptation ultimately comes down to reproducible metrics: operator alignment, parallel strategy, communication bandwidth, tail latency, gradient norm, fault recovery time, and end-to-end training cost.

    Conclusion

    From “capable of inference” to “capable of training,” and then to “ready to train,” each step is backed by long-term accumulation in operators, communication, numerics, and toolchain. A domestic chip completing adaptation for trillion-parameter large-model training, and verifying the training pipeline through 400 consecutive stable updates on a dual-node, 16-card setup, shows that domestic AI chips are moving from supporting inference services to supporting model training itself.

    For developers, this is both a signal of infrastructure upgrade and a direction worth investing in: mastering a distributed training methodology decoupled from specific hardware, and evaluating each generation of new compute in a quantifiable and reproducible way. Only by advancing training adaptation from a “runnable demo” to “verifiable, reviewable, and scalable for replication” can we maintain initiative as compute diversification accelerates.