Training Adaptation on Domestic AI Accelerators: A Full-Chain Analysis of What It Takes to Train Large Models
When a domestic AI accelerator vendor reports that it has adapted a nearly 3-trillion-parameter open-source multimodal model for training, the claim is easy to misread as "the chip trained the model." This article explains what training adaptation actually means, distinguishes it from base-model pretraining and from inference integration, and walks through the six links of the training chain: model loading, parallel sharding, operators and the compute graph, gradient synchronization and optimizer updates, numerical health, and fault tolerance. It explains why a dual-node, 16-process, 400-step run counts as representative evidence, outlines the engineering system needed to move from "can train" to out-of-the-box large-scale training, and gives enterprises a staged path for migrating large-model training onto domestic accelerators.
A domestic AI accelerator vendor recently announced that, using its flagship train-and-inference accelerator card and its in-house software stack, it had completed training adaptation for an open-source multimodal large model with nearly 3 trillion parameters. In a cross-node joint test across two machines with 16 accelerator cards in total, all 16 training processes completed 400 consecutive optimizer updates, with the loss and gradient norms staying finite throughout, without numerical overflow or any interruption in training.
What makes this worth attention is not that single-card compute went up by another notch, but that domestic accelerator cards have taken a key step toward “full-chain stable training”: a multimodal model with close to 3 trillion parameters, complete with a vision branch, finally ran the entire closed loop of “load weights — shard in parallel — forward and backward — gradient synchronization — parameter update” on domestic hardware.
There is, however, a common misreading of results like this in the industry — the assumption that a domestic chip has already “trained” a large model. To understand what this really means, we first need to clarify the technical meaning of “training adaptation,” then examine the key links in the training chain, and finally discuss how to use reproducible engineering methods to verify long-range stability, so that domestic compute genuinely moves from “can do inference, can run” to “can train, out of the box.”
1. First, Clarify the Concept: Training Adaptation Is Not “the Chip Trained the Model”
Whenever a domestic chip announces adaptation progress, two voices appear in the comments: one says “domestic chips can already train large models,” and another questions it as “just getting it to run — far from real training.” Both judgments are oversimplified. A more rigorous framing is that “successful adaptation” and “completing base-model pretraining on the chip” are fundamentally different things — a progressive relationship, not a substitute one.
1.1 Training Adaptation: Fully Reproducing the Training Process on Target Hardware
Training adaptation means porting the model’s complete training pipeline onto new hardware and a new software stack without changing the model structure or its mathematical semantics. Every stage — model loading, compute-graph construction, parallel partitioning, forward computation, backward propagation, gradient synchronization, parameter update, and checkpoint saving and restoration — must connect correctly. After enough iterations, the loss should decrease smoothly, the gradient norm should stay bounded, and training should not crash or interrupt.
Put simply, training adaptation answers one question: can this training pipeline run continuously and correctly on this hardware?
1.2 Base-Model Pretraining: The Source Stage That Shapes Model Capability
Base-model pretraining starts from random initialization (or initialization with only partial weights) and runs on massive, carefully curated data, consuming thousands to tens of thousands of cards over weeks to months, on the order of trillions of tokens. A model’s capability is primarily shaped in this stage. Pretraining involves a large number of engineering decisions — data cleaning and mixing ratios, curriculum scheduling, parallel strategies, hyperparameter search, loss-spike handling, and checkpoint recovery — and this experience is often harder to replicate than the chip’s peak compute.
In one sentence: training adaptation determines whether you can train; base-model pretraining determines how the model turns out.
1.3 Three Easily Confused Types of Work
The terms commonly used in the industry — “adaptation,” “integration,” and “validation” — actually cover three very different kinds of work:
| Work Type | Scope | Typical Output | Supportable Conclusion |
|---|---|---|---|
| Inference integration | Model loading, forward computation | Throughput, latency, accuracy comparison | The model can serve inference on this hardware |
| Training adaptation | Full chain: forward, backward, gradient sync, parameter update | Convergence curves, numerical stability, multi-step tests | The hardware can support the model’s training pipeline |
| Base-model pretraining | Massive data, long cycles, large-scale clusters | Final model weights and capability evaluation | The hardware has the engineering capability to support source-level training |
These three form a progression: inference integration asks “does it compute correctly and fast,” training adaptation asks “does it update stably,” and base-model pretraining tests the combined accumulation of cluster scale, long-cycle scheduling, and engineering experience.
A typical example: in the technical reports of some frontier models, accelerators of different architectures are put side by side for operator-level validation. A common case is fine-grained expert parallelism (EP) validation aimed at Mixture-of-Experts (MoE) architectures. This validation typically focuses on the correctness and performance of operators in the forward path — routing dispatch, grouped matrix multiplication, All-to-All communication, and so on. Backward propagation, optimizer states, and long-range numerical behavior are usually not the focus, and such reports generally do not state where the original compute for base-model pretraining came from. “Inference runs” and “training operators validated” are distinct from “base-model pretraining was completed on this hardware” — three facts at different levels.
1.4 A Simple Way to Judge
To determine which level a given result belongs to, ask three questions:
- Coverage depth: Does it cover backward propagation and parameter update? Forward-only coverage is inference validation; only full coverage counts as training adaptation.
- Duration: Has it sustained several hundred or more consecutive updates while keeping numerics healthy? A single forward pass or a few trial steps proves little.
- Scale and output: How large is the cluster, and does it produce usable weights? Only long-cycle runs at 10k-card scale that produce a complete base model qualify as base-model pretraining.
By this standard, a dual-machine, 16-card, 400-step consecutive update falls squarely within training adaptation. Its value lies in proving that the training chain is complete and numerically stable — not in claiming that the model was “trained” on these cards.
2. Technical Perspective: What Is Training Adaptation Actually Adapting?
If training were just “getting the code to run,” adaptation would be simple. The real difficulty is this: given the same model definition, the same data, and the same hyperparameters, the new hardware must produce a training process that is mathematically equivalent, numerically healthy, and sustainable over time. This chain can be broken into six links, each with its own pitfalls.
2.1 Model Loading: Weight Mapping Is the First Hurdle
A model with nearly 3 trillion parameters typically has thousands of parameter tensors. The adaptation team must first build a one-to-one mapping between the new framework’s parameter names, tensor shapes, and data types and the official checkpoint. Several error-prone cases deserve particular attention:
- Weight tying: When input word embeddings and output word embeddings share parameters, they must remain the same parameters after sharding. Otherwise it becomes two sets of weights updating independently, and model behavior silently drifts.
- Data type conversion: Checkpoints are often saved in bf16 or fp8, and inconsistent precision handling during loading introduces extra error.
- Expert weight layout: MoE expert tensors are usually stored in a multi-dimensional “expert dimension + hidden dimension” layout. If the split order is misaligned during resharding, routing results will diverge entirely from expectations — and it will not throw a direct error, only quietly degrade the loss.
For this reason, once loading is complete, the team must compare output logits against the reference implementation layer by layer using a few fixed inputs, and confirm numerical consistency before entering training.
2.2 Parallel Sharding: Making Trillions of Parameters Fit and Run
A trillion-parameter model cannot fit on a single card and must use multiple forms of parallelism at once:
| Parallelism | What It Shards | Main Communication | Main Purpose |
|---|---|---|---|
| Data parallelism | Input data batches | Gradient reduction | Expand the global batch size |
| Tensor parallelism | Matrix operations within a single layer | All-Reduce / Reduce-Scatter | Reduce per-card weights and activation memory |
| Pipeline parallelism | Stages divided by layer | Point-to-point send/receive | Cross-node scaling, reduce per-card layer load |
| Sequence/context parallelism | Token dimension of long sequences | All-Gather / Reduce-Scatter | Support long-context training |
| Expert parallelism | Each expert subnetwork | All-to-All | Handle large-scale MoE |
The native Fully Sharded Data Parallel (FSDP) path mentioned in the report has a core idea: within the data-parallel group, parameters, gradients, and optimizer states are all sharded at tensor granularity across processes. Parameters are temporarily gathered on demand during forward and backward and released immediately after use; gradients are synchronized with Reduce-Scatter after the backward pass; each optimizer updates only its local shard, then All-Gathers back the full parameters.
Compared with the earlier “shard by layer, flatten parameters” approach, fine-grained sharding allows more flexible scheduling of the timing of communication and computation, making it easier to hide gathering overhead behind computation. This is precisely why such schemes are used for training adaptation. Native support also means the process-group partitioning across parallel dimensions and the device mesh mapping are designed in a unified way, with no need to layer on patches around the framework — which is especially critical for large-scale jobs running hundreds of processes.
2.3 The Compute Graph and Operators: Determining Whether It Can Compute
Every operator in the model definition ultimately lands on an accelerator’s operator library or a compiler-generated kernel. Operator problems in training adaptation mainly fall into four categories:
- Missing: Structures introduced by new models (gating mechanisms, variable-length attention, multimodal fusion modules) have no corresponding implementation in the operator library and must be filled in.
- Semantic differences: Approximate activation functions or normalization implementations that use different numerical approximations introduce subtle but persistently accumulating numerical deviations.
- Missing backward: Custom structures with only a forward operator implemented cannot participate in training.
- Failed fusion: When the compiler cannot recognize new operator combinations, originally fused operators degrade into multiple memory accesses, worsening both memory and speed.
A practical approach is to select the closest reference implementation from the framework’s existing model zoo (for example, using a classic vision backbone for the vision branch) and enable backward layer by layer for numerical comparison. As soon as the gradient of a layer deviates, the problem can be precisely localized to a specific operator, rather than being lost against the whole model.
2.4 Gradient Synchronization and Optimizer Updates: Determining Whether It Can Train Continuously
Take an AdamW-style optimizer: each update step must maintain first-order momentum, second-order momentum, and an fp32 master-weight copy at the same time. For a trillion-parameter model, the optimizer state alone is several times the parameter count — which is the fundamental reason optimizer-state sharding is mandatory. For gradient synchronization, communication should happen bucket by bucket during the backward pass, overlapping All-Reduce/Reduce-Scatter with backward computation; otherwise communication easily becomes the bottleneck. In addition, load imbalance from MoE routing makes All-to-All one of the hardest communication patterns to optimize.
2.5 Numerical Health: Determining How Long It Can Train
Behind the phrase “loss and gradient norm stayed finite across all 400 steps” lies the stability problem that is hardest to quantify and easiest to overlook in training. Common numerical failures in large-model training include:
- Loss spikes: A sudden jump in loss caused by an individual batch or a learning-rate perturbation.
- Gradient explosion and failed updates: Under mixed precision, gradients overflow to inf, causing the entire update step to be skipped. Occasionally this is harmless, but frequent occurrences severely distort the effective learning rate.
- Expert routing collapse: In MoE models, a few experts get over-selected while the rest receive almost no gradient.
- Precision issues in RMSNorm/RoPE and similar operators: Positions with sensitive numeric ranges show tiny deviations when precision switches.
In engineering practice, loss, gradient norm, parameter update norm, gradient-clipping trigger frequency, and the communication time of each parallel group are usually kept as standing monitoring metrics, with sensible thresholds set for gradient clipping and loss scaling. The report specifically emphasizes that “the gradient norm stayed finite throughout” precisely because it is one of the most sensitive signals for judging whether training has entered an abnormal state.
2.6 Fault Tolerance and Reproducibility: Determining Whether It Can Scale
Training on dual-machine 16 cards can simply be restarted, but long-cycle training above 1,000 cards must solve the following:
- Checkpoint resume: Checkpoints must include model weights, optimizer states, and random number generator states, otherwise the loss will show a noticeable jump after recovery.
- Self-healing: Node failures, NIC jitter, and slow-node stragglers all require automatic detection and replacement.
- Experiment reproducibility: Data ordering, random seeds, and parallel configurations must be recorded so that a problem can be reliably reproduced.
3. Key Evidence: Why “Dual-Machine 16 Cards, 400 Steps” Is Representative
The most informative part of this result is the stacking of three constraints: cross-node, 16 processes, and 400 consecutive updates.
Why does cross-node matter so much? Single-machine multi-card setups usually communicate over a high-bandwidth interconnect domain, whereas cross-node relies on networks such as InfiniBand or RoCE. The latency, bandwidth differences, and collective-communication topology introduced by cross-node are precisely the parts most prone to problems in large-model training. With 16 processes spread across two machines, collective communications such as All-Reduce, Reduce-Scatter, All-Gather, and All-to-All must all execute across machines. At this point, whether gradient bucketing sizes, communication-computation overlap, and the topology-aware configuration of NCCL-style communication libraries are done right are all exposed directly in throughput and stability.
Why 400 steps rather than 40? Training crashes come in two typical forms:
- Early crashes: Framework misconfiguration, missing gradient synchronization, or misaligned optimizer-state sharding usually surface within the first few steps.
- Cumulative crashes: Slowly growing attention logits, progressively skewed expert load, and round-by-round accumulation of numerical error often only appear after several hundred steps.
400 consecutive updates happen to cover the typical “warm-up — heating up — stabilization” range. If the loss can also be observed to trend downward overall and the gradient norm stays within a reasonable range, this shows that training has entered a healthy steady state, not merely that “no errors were thrown.”
What does it mean that all 16 training processes completed? It means no rank fell behind or crashed. Under fully sharded parallelism, any process exiting abnormally causes collective communication to hang and the whole job to stall. All processes completing all 400 steps means that process lifecycle management, exception propagation, and the robustness of collective communication all held up under test.
Of course, its boundaries should also be viewed objectively. A 16-card scale is equivalent to only a small data-parallel group and cannot validate the following scenarios:
- Pipeline-parallel bubble scheduling;
- Latency of collective communication at 1,000-card scale;
- Fault accumulation and slow-node effects at large scale.
So the correct reading of this kind of result is “the full chain is connected and stable over a short cycle,” not “10k-card long training capability is already in place.” From 16 cards to 1,000 cards, communication topology, scheduling fault tolerance, and data-loading throughput all undergo qualitative changes and still require level-by-level validation.
4. From “Can Train” to “Out-of-the-Box Training”: The Engineering System That Needs to Be Built
A single successful adaptation run and large-scale adoption are separated by an entire engineering system. The industry usually breaks “out-of-the-box training” into four progressive levels:
- L1 — Can load: Model weights load correctly, and forward outputs match the reference implementation.
- L2 — Can train: The backward, gradient-sync, and parameter-update chain is connected, and short-range training can converge.
- L3 — Can train long: Numerics stay healthy over hundreds to thousands of steps, loss decreases smoothly, and basic fault tolerance and checkpoint resume are in place.
- L4 — Can scale: At 1,000-card to 10k-card levels, throughput, memory, stability, and scheduling efficiency all meet production requirements, distilled into standardized images, configurations, and operations manuals.
400 steps of continuous stable training are key evidence of crossing from L2 to L3. Reaching L4 requires sustained investment in the following areas:
- Continuous expansion of the operator library: Cover mainstream model structures, and guarantee semantic consistency through operator-level unit tests;
- Compiler and graph optimization: Operator fusion, memory reuse, and automatic scheduling of communication-computation overlap;
- Parallel-strategy automation: Automatically searching for the optimal parallel combination based on model structure, cluster topology, and target throughput, rather than relying on manual trial-and-error tuning;
- Full-chain observability: Collecting metrics in layers across compute, communication, storage, and network, and localizing slow nodes and abnormal ranks in seconds;
- Standardized deliverables: One-click container images, parameter templates, and benchmark suites, so users can “pull the image and start training.”
To help readers intuitively grasp the difference between “training adaptation acceptance criteria” and traditional “inference adaptation acceptance criteria,” an illustrative configuration can convey the idea:
# Illustrative training adaptation acceptance config (not a specific framework format)model:total_params: "~3T" # Trillion-scale parameter countdtype: bf16 # Training compute precisionmaster_weights: fp32 # Optimizer maintains fp32 master weightsparallel:data: 16 # Data parallel degree = total process countexpert: 8 # Fine-grained expert parallelismfsdp: shard_params_and_optimizer # Both params and optimizer states are shardedtraining:max_steps: 400 # Consecutive optimizer update stepsgrad_clip_norm: 1.0 # Global gradient norm clippingvalidation:loss_finite: true # Verify loss is finite each stepgrad_norm_finite: true # Verify gradient norm is finite each stepnan_hook: raise # Raise and locate rank immediately on NaN/Infcheckpoint:save_optimizer_state: true # Save optimizer state to support checkpoint resumesave_rng_state: true # Save RNG state to guarantee reproducibility
The key of this configuration is the “validation” section: the acceptance target of training adaptation is not model quality but numerical health and chain completeness. This is precisely the essential difference from inference adaptation.
5. Enterprise Practice: How to Plan Training Migration onto Domestic Accelerators
For enterprises and research institutions that want to run large-model training on domestic accelerator cards, the following path can be followed:
- Assess model structure and target scale: Determine whether the model is dense or MoE, whether it is multimodal, its context length, and the total tokens to train, and estimate memory, communication, and storage needs accordingly;
- Prefer model structures with native fully sharded parallelism support: Fine-grained sharding is friendlier for memory and scalability, and makes it easier to extend to more nodes later;
- Establish a baseline-alignment mechanism: First run short-range training of the reference implementation on the same data, and record the loss curve and gradient norm as a comparison baseline for after migration;
- Scale up in stages with validation: Single-machine multi-card → dual-machine 16 cards → multi-machine 64 cards → 1,000-card level, focusing at each stage on the share of communication overhead and the numerical metrics, rather than jumping straight to the end;
- Complete the observability and fault-tolerance system: Deploy layered monitoring, slow-node detection, and automatic checkpoint resume, and factor MTBF (mean time between failures) into the acceptance criteria;
- Coordinate cloud resources: When running training tasks in the cloud, generic cloud capabilities such as container platforms, object storage, log services, and monitoring and alerting can enable elastic scheduling of training jobs, centralized storage of checkpoints, and full logging of the training process, reducing the operational burden of self-built clusters.
Conclusion
From dual-machine 16-card, 400-step continuous stable training to the large-scale capability of “out-of-the-box training,” there is still a considerable road ahead. But the direction is clear: training adaptation is not “editing a few lines of code to get the model running,” but a systems-engineering effort spanning operators, parallelism, communication, numerics, and fault tolerance. Only by quantifying the acceptance criteria for each link and distilling every stability validation into reproducible engineering assets can domestic accelerator cards truly move from “can do inference” to “can train,” and ultimately support source-level innovation in trillion-parameter models.
