Domestic GPU Completes Training Adaptation for Nearly 3 Trillion-Parameter Model: 16 GPUs Across Two Nodes, 400 Continuous Steps
This article explains how a domestic GPU vendor completed training adaptation for a nearly 3 trillion-parameter flagship open-source model using 16 accelerators across two nodes and 400 continuous optimizer updates. It distinguishes inference adaptation from training adaptation, outlines the core challenges of memory usage, operator coverage, communication, and long-run stability, and shows how Fully Sharded Data Parallel can build a complete native training path. It also analyzes why a 16-GPU, 400-step run is a meaningful stability milestone, what it can and cannot prove, and what additional reliability engineering is needed for long-cycle production training.
Domestic GPU Completes Training Adaptation for Nearly 3 Trillion-Parameter Model: 16 GPUs Across Two Nodes, 400 Continuous Steps
1. Introduction: Training Adaptation Is Moving from “Can It Run?” to “Can It Train Stably?”
In the AI infrastructure domain, “adaptation” is one of the most frequently discussed and most frequently misunderstood terms. Recently, a domestic GPU vendor completed training adaptation for a flagship open-source large model with nearly 3 trillion parameters. On a cluster consisting of two nodes and 16 accelerators in total, the workload completed 400 consecutive optimizer updates. Throughout the run, the loss and gradient norm remained finite, with no numerical overflow and no abnormal interruption.
The vendor also stated that it had previously accumulated engineering experience in several areas, including:
- Complete training of multiple thousand-parameter-scale models;
- Full-stack training of multimodal world models;
- End-to-end training of embodied AI models.
According to the vendor, it is now advancing training for trillion-parameter models.
Taken together, these efforts point to a shift in the role of domestic full-featured GPUs in large-model training. In the past, the common standard for evaluating a domestic AI chip was often whether it could complete inference adaptation on Day 0, meaning whether it could run forward inference for a newly released model on its release day. Today, the focus is shifting toward a more complete question: can the hardware complete a full training loop that includes backward propagation and parameter updates, and can it do so stably and continuously?
Engineering teams are also re-examining what kind of adaptation should be considered a deliverable “training-ready” result.
From an engineering perspective, the credibility of a training adaptation result depends on three things:
- What was actually run: Was it only forward inference, or did it cover the full path from model loading to optimizer updates?
- At what scale was it run: Was it validated on a single GPU, on multiple GPUs within one node, or across multiple nodes?
- How long did it run continuously: Was it a single step, or did it remain numerically and operationally stable for hundreds of steps or longer?
This article breaks down the technical challenges of training adaptation, explains how to build a Fully Sharded Data Parallel training path, and uses the example of “16 GPUs across two nodes running continuously for 400 steps” to show how such stability validation should be designed and interpreted. It then discusses the evolution from “able to train” to “ready to train out of the box.”
2. Clarifying Concepts: Training Adaptation, Inference Adaptation, and Model Pretraining Are Not the Same
Before discussing what “completing adaptation” means, it is important to separate three concepts.
2.1 Training Adaptation vs. Inference Adaptation
Inference mainly involves forward computation. It primarily tests operator coverage, numerical precision alignment, throughput, and latency.
Training is much more demanding. In addition to the forward pass, it includes backward propagation, gradient reduction, optimizer updates, and activation storage. The requirements on the software stack increase by orders of magnitude.
Hardware that has completed inference adaptation does not necessarily have training capability.
2.2 Completing Training Adaptation Is Not the Same as Pretraining a Model on That Hardware
These two ideas are often conflated.
- Completing training adaptation means that the hardware and software stack can support the training workload of the model and can run stably at a certain scale and for a certain number of steps. What it proves is engineering usability.
- Model pretraining is a much larger system-level process. It starts from random initialization, uses thousands of GPUs, and continues for weeks or even months to produce the final base-model weights. It is ultra-large-scale systems engineering.
A common industry observation is that when a technical report presents verification results for two different accelerator architectures side by side, such work usually points to inference-side operator coverage and adaptation validation, rather than the compute used for base-model pretraining. The original compute source for base-model pretraining is often not disclosed alongside the technical report.
Therefore, when reading this kind of information, it is useful to ask three questions before judging the depth of the adaptation:
- Is the verification about training or inference?
- Is the scale single-node or multi-node?
- Is it a single successful step or continuous stable execution over multiple steps?
For developers and enterprise users, this distinction has practical implications. Inference adaptation determines whether a model can be brought into production service. Training adaptation determines whether a model can be continuously iterated on a user’s own platform. The latter is the prerequisite for building an autonomous training capability.
2.3 Three Levels of Training Adaptation
Training adaptation can be divided into three progressive levels based on capability depth:
| Level | Core capability | Typical validation method | What it can answer |
|---|---|---|---|
| L1 Single-step trainable | Forward, backward, and optimizer update can be executed | Complete 1 to dozens of steps on a single GPU or at small scale | Are operators and numerical results correct? |
| L2 Multi-GPU trainable | Parameter sharding and gradient synchronization across GPUs or nodes | Continuously complete hundreds of steps on multiple machines and multiple GPUs | Are parallel strategies and communication reliable? |
| L3 Long-cycle stable training | Checkpointing, fault tolerance, monitoring, and tuning toolchain | Long stability tests and fault drills over thousands of steps or more | Can it support real production training? |
L2 is the dividing line between “demonstration” and “production.”
The earlier 16-GPU run across two nodes, executed continuously for 400 steps, belongs to this level of validation.
3. Why Training Adaptation Is Difficult: Four Engineering Challenges
Inference adaptation can often be approached operator by operator, breaking through one item at a time.
Training adaptation faces an iterative system containing tens of billions or even trillions of floating-point operations. The difficulty is not usually a single isolated component. It lies in the coupling between components and the cumulative effects that appear over long execution periods.
The challenges can be grouped into four areas.
3.1 Memory: Training May Require More Than Ten Times the Size of the Model Weights
For mixed-precision training, each parameter generally requires more than just the low-precision weights. It usually also needs:
- Low-precision gradients;
- FP32 master weights;
- FP32 first-order and second-order optimizer states.
For these components alone, each parameter can require about 16 bytes. A 100-billion-parameter model can therefore correspond to about 1.6 TB of memory, and that is before accounting for activations and temporary buffers.
In addition, memory fragmentation, communication buffers, and intermediate results inside fused operators can further reduce available space.
As a result, the memory budget and the parallel sharding plan need to be designed together.
3.2 Operators: The Backward Path Requires Zero Gaps
Inference only needs to cover the forward operators used by the model.
Training requires every operator to have a numerically correct and sufficiently performant backward implementation.
Customized components such as fused operators, MoE routing, and long-sequence positional encodings can all become sources of failure. If any operator is missing or implemented incorrectly, it may show up as abnormal loss behavior.
Compared with “missing operator causes a direct error,” “operator exists but produces numerical deviation” is more subtle. Such problems may only become visible as loss drift or even divergence after dozens of steps.
Therefore, operators must be jointly validated across both the forward and backward paths.
3.3 Communication: Fine-Grained, High-Frequency, and Strongly Synchronized
In data parallelism, gradient synchronization is relatively coarse-grained. Gradients are reduced after the backward pass of each step.
Fully Sharded Data Parallel communication is much more fine-grained. It may break communication into all-gather and reduce-scatter operations at layer granularity or even parameter-block granularity. This places higher demands on the scheduling and computation-communication overlap capabilities of the communication library.
In cross-node scenarios, intra-node bandwidth and inter-node bandwidth usually differ by orders of magnitude. Without topology-aware optimization, collective communication can easily become a bottleneck.
An even more difficult issue is synchronization semantics.
Collective communication requires all processes to participate in the same order and with consistent tensor shapes. If even one rank follows a different code path or uses a different data shape, the job may hang or deadlock.
Such failures may be relatively easy to expose during small-scale debugging. At the scale of hundreds of processes, however, they can become extremely difficult to diagnose.
3.4 Stability: Tiny Deviations Accumulate Over Long Timescales
Training is an iterative process that can continue for tens of thousands of steps.
Tiny errors in each step, such as approximate non-fused implementations, low-precision accumulation, or inconsistent random-number states, can accumulate and amplify over tens of thousands of steps. The final result may be a shifted loss curve, abnormal gradient norm, or even training divergence.
A typical phenomenon in large-model training is the “loss spike”: training remains stable for a long time, but at some step the loss suddenly jumps and the gradient norm explodes. This is often triggered by factors such as abnormal data samples, learning rate that is too high, or numerical overflow.
A single short test cannot cover this kind of long-tail risk. Continuous multi-step experiments and a complete monitoring system are required to detect such issues.
4. Core Path: Building a Complete Training Chain with Fully Sharded Data Parallel
The mainstream approach to training adaptation in the industry today is to build a native training path using Fully Sharded Data Parallel, or FSDP.
Compared with traditional solutions that manually combine data parallelism, tensor parallelism, pipeline parallelism, and other modes, this approach has several advantages:
- It shards parameters, gradients, and optimizer states evenly across ranks.
- It can use fewer parallel dimensions and a simpler topology to support larger models, making it easier to balance memory efficiency and engineering complexity.
- It fits naturally with the modular structure of multimodal models.
A complete native FSDP training path can be broken down into four main stages.
4.1 Model Loading: Decoupling Model Definition from Physical Sharding
The model-loading stage needs to handle two types of problems:
- Configuration parsing: The network structure, hyperparameters, and weight-file version and format must be strictly validated.
- Sharded loading: Based on the parallel configuration and sharding policy, the system must determine how parameter blocks are assigned across ranks and establish a one-to-one mapping between elements inside each parameter block and the original weights.
The key feature of a native path is that model code can be written as a logically complete model. The sharding mechanism then automatically manages parameter-block assignment, gathering, and release at runtime. Business code does not need to perform manual sharding.
A typical illustrative example looks like this:
# Illustrative style: the model is defined as a logically complete model;# the sharding mechanism manages partition and aggregation at runtime.model = TransformerForCausalLM(config)model = fully_shard(model, mesh=device_mesh, dtype=bf16, reduce_dtype=fp32)model.load_original_state_dict("base_weights.bin") # Load original weights that have not been split for training parallelism
For multimodal models, this stage also needs to solve loading order and dependency issues between heterogeneous encoders.
For example, the vision encoder usually needs to be loaded before the language backbone, and its initialization needs to remain consistent with components such as the preprocessor and audio front end.
4.2 Sharding Scheduling: Load Layer by Layer, Release Immediately After Use
During forward computation, the system gathers complete parameter blocks from all ranks layer by layer using all-gather. After computing a layer, it immediately releases the corresponding parameters.
During backward computation, the system gathers parameter blocks again in reverse order.
Because the same parameter block may be gathered at least twice in one iteration, the key challenge is hiding communication behind computation. A common approach is:
- Prefetch the parameter blocks needed by the next layer while the current layer is being computed;
- In the backward pass, reduce gradients as soon as they are ready.
Peak memory usage can be conceptualized as follows:
Peak memory ≈ local parameter / gradient / optimizer state shards+ prefetched parameter blocks that have not yet been released+ gradient reduction buffers+ activations and recomputation overhead+ temporary communication buffers and memory fragmentation
Tuning should focus on these components. Examples include:
- Reducing prefetch depth;
- Compacting memory after released blocks;
- Applying activation recomputation for some layers to trade compute for memory.
The sharding strategy itself should also be adapted to the model structure. Modules with very different parameter scales should use different sharding granularities to avoid uneven load across ranks.
4.3 Gradient Synchronization: Numerical Control Under Reduce-Scatter
Gradients computed during backward propagation first enter a reduction buffer. They are then reduced across ranks according to the sharding rules using reduce-scatter. Each rank only keeps the gradients corresponding to its local parameter shards.
Several details require special attention:
- Gradient accumulation should make an explicit choice between low-precision accumulation and higher-precision accumulation.
- Gradient clipping must be based on the global gradient norm, not the local norm. Otherwise, the effective clipping scale would change with the number of ranks.
- The reduction order, reduction data type, and reduction-tree structure should be fixed and recorded so that they can serve as a baseline for cross-platform numerical alignment.
4.4 Optimizer Update and State Consistency
Each rank performs the optimizer update on its local shard. This involves FP32 master weights, first-order and second-order moments, and weight decay.
After the update, parameter blocks are gathered again as needed for the next forward pass.
When saving a checkpoint, the system needs to preserve not only the model parameters but also:
- Optimizer states, including master weights and momentum;
- Learning-rate scheduler state;
- Data-loader position;
- Random-number states for each rank.
If any of these states is missing, resumed training may produce step discontinuities in the loss curve or fluctuations in precision.
4.5 Example Code: Minimal Training Loop
# This is illustrative pseudocode. It only expresses the logical structure# and does not correspond to any specific framework API.mesh = init_device_mesh(shape=(dp, fsdp), mesh_dim_names=("dp", "fsdp"))model = fully_shard(model, mesh=mesh, dtype=bf16, reduce_dtype=fp32)optimizer = AdamW(model.parameters(), lr=1e-4, weight_decay=0.1, betas=(0.9, 0.95))scheduler = cosine_schedule(optimizer, warmup_steps=..., total_steps=...)for step, batch in enumerate(dataloader):# 1) Forward: gather parameter blocks layer by layer, then release after computation.loss = model(batch) / accum_steps# 2) Backward: gather parameter blocks again, compute gradients, then reduce-scatter.loss.backward()if (step + 1) % accum_steps == 0:# 3) Global gradient norm and clipping.grad_norm = clip_grad_norm_(model.parameters(), max_norm=1.0)# 4) Numerical guard: skip the update and record if gradients are non-finite.if isfinite(grad_norm):optimizer.step()else:optimizer.skip_step()scheduler.step()optimizer.zero_grad(set_to_none=True)# 5) Metrics reporting: loss / grad_norm / lr / step time / peak memory.report(step, loss=..., grad_norm=grad_norm, ...)# 6) Periodically save the full state# (model + optimizer + scheduler + data-loader position + RNG).if (step + 1) % ckpt_interval == 0:save_state(step + 1)
This loop covers the complete closed path of model loading, sharding scheduling, gradient synchronization, optimizer updating, and state persistence. These are also the exact areas that need to be validated one by one when accepting a training adaptation result.
5. The 400-Step Continuous Stability Test: Design and Interpretation
5.1 Why Two Nodes and 16 GPUs
The choice of validation scale follows the principle of “minimum sufficient scale.”
Single-node multi-GPU testing is convenient for debugging, but it cannot cover cross-node issues such as inter-node networking and multi-node scheduling.
The structural significance of using two nodes and 16 GPUs is that it:
- Provides the smallest complete coverage of both intra-node high-bandwidth interconnect and inter-node networking;
- Can expose problems related to communication topology awareness, collective-communication ordering, and cross-node synchronization, while still making it feasible to collect logs per process and locate issues in time;
- Keeps resource overhead controllable, making it easier for the team to repeat regression tests.
If single-node multi-GPU testing is functional validation, then cross-node testing is system validation.
5.2 Why 400 Steps
A single successful step can only prove that the computation graph and operator path are complete. It cannot validate errors that accumulate during iteration.
Running 400 consecutive optimizer updates means completing about 400 full cycles of gather, compute, reduce, and update. This continuously checks the stability of numerical values and communication under high-frequency iteration.
For short training runs or alignment experiments, this is a commonly used observation window.
The emphasis on “loss and gradient norm remain finite throughout the run” is important because training failures rarely appear as clean crashes. More often, they appear as loss becoming NaN or Inf, or as gradient norm suddenly increasing to an abnormal magnitude.
Once such anomalies occur, they propagate along the parameter-update chain and can contaminate all subsequent computation. Therefore, “finite throughout” is a basic but indispensable acceptance criterion.
5.3 Example Monitoring Logic
# Illustrative monitoring logic. It can be replaced with an actual toolchain.for step, batch in enumerate(dataloader):loss = train_step(batch)grad_norm = model.global_grad_norm() # Global gradient normassert isfinite(loss) and isfinite(grad_norm), f"non-finite at step {step}"if step % log_interval == 0:logger.info("step=%d loss=%.6f grad_norm=%.4f lr=%.2e step_time=%.1fms peak_mem=%.1fGB",step,loss.item(),grad_norm,scheduler.get_lr()[0],timer.avg(),memory_peak_gb(),)
Monitoring metrics can be grouped into three categories:
| Metric category | Specific metrics | Abnormal signals | Possible causes |
|---|---|---|---|
| Training quality | Loss, global gradient norm, parameter norm | NaN/Inf, spikes, step-wise jumps | Numerical overflow, abnormal data, learning rate too high |
| System performance | Step time, tokens/s, communication ratio, peak memory | Step time gradually increases, memory usage keeps growing | Memory fragmentation, communication not overlapped, memory leak |
| Process health | Per-rank heartbeat, process survival, error count in logs | A rank stops producing output, process exits | Hang or deadlock, node lost, hardware failure |
5.4 What 400 Steps Can and Cannot Prove
This kind of validation can strongly demonstrate several things:
- Operator path completeness: Forward, backward, and optimizer updates all run successfully.
- Sharding and communication correctness: Parameter sharding, gradient reduction, and optimizer state remain consistent across 16 processes.
- Numerical stability: No overflow occurs within 400 steps, and gradients are not abnormally amplified.
- Process robustness: No hangs, crashes, or unexpected exits occur.
However, there are clear boundaries as well:
- It cannot cover data-distribution drift, precision changes caused by learning-rate decay, or occasional hardware failures that may only appear after tens of thousands of steps.
- It cannot replace large-scale stress testing with thousands of GPUs. Increasing the number of nodes changes the topology of collective communication and may reveal bottlenecks that are invisible at small scale.
- It cannot fully evaluate the throughput and stability of a real production data pipeline.
Therefore, the 400-step run is better positioned as a system-level integration acceptance test. It is a milestone on the path from “able to train” to “daring to train,” not the endpoint of long-term stability testing.
6. From 400 Steps to Long Cycles: Reliability Engineering for Production Training
6.1 Checkpoints and Resume Training
For long-cycle training, checkpoints are like a time machine. They allow the progress of weeks of training to be compressed into one recovery operation starting from the most recent state.
A complete checkpoint should include:
- Model parameters in the same sharded format as training parallelism;
- Optimizer states, including FP32 master weights and momentum;
- Learning-rate scheduler state;
- Data-loader read position;
- Random-number generator states for each rank.
For save policies, the frequency needs to balance the cost of recomputing failed work against I/O overhead. If the frequency is too low, a single failure may lose hours or even days of progress. If the frequency is too high, repeated saving may consume significant compute and storage bandwidth.
Common practices include:
- Using distributed or sharded saving so that each rank writes its own data shard in parallel, avoiding serial writes from a single machine;
- Using asynchronous saving so that data copying and writing can overlap with the next computation step;
- Using a retention strategy such as a sliding window plus periodic full saves.
Resume consistency should be validated through a standard test: save a checkpoint during training, then resume from that checkpoint while allowing the original training run to continue. Compare the loss curves over the next several steps. The two curves should overlap closely. If a clear step appears, it may indicate that the scheduler state, data-loader position, or random-number state was not fully restored.
6.2 Failure Recovery and Elastic Fault Tolerance
Distributed training is a typical fully synchronized system. If one rank exits, the entire job is interrupted.
Production environments need to build three lines of defense:
- Fast failure: Use heartbeat detection or collective-communication timeout mechanisms so that all ranks become aware of the failure as early as possible, avoiding long hangs and wasted compute.
- Automatic restart: The job scheduling system detects the failure and automatically restarts the job from the most recent checkpoint.
- Elastic scaling: If nodes become temporarily unavailable, the job should be able to reconstruct its parallel topology at a new scale and continue training. This requires checkpoint saving and loading logic to be decoupled from the specific parallel scale.
6.3 Slow-Node Detection
Sometimes performance problems do not come from hardware that cannot run at all. They come from one machine being slightly slower than the others.
Synchronous training is held back by the slowest rank. A single slow node can reduce overall throughput by a significant factor.
Common practices include:
- Continuously collecting step time and collective-communication time for each rank;
- Identifying slow nodes that consistently deviate from the average, performing hardware health checks, and isolating them when necessary;
- Setting up independent monitoring for communication latency and jitter so that teams can distinguish whether the slowdown is caused by computation or by communication.
6.4 Monitoring, Logging, and Alerting
When thousands of processes run at the same time, manually inspecting logs is not feasible.
A reasonable approach is:
- Metrics reporting: Each rank reports structured metrics such as loss, gradient norm, and step time to the monitoring system, aggregated by job and node dimensions.
- Centralized log retrieval: Training logs are collected centrally and can be searched by rank or by step.
- Alert rules: Automated alerts should be configured around signals such as non-finite loss or gradient norm, throughput dropping below a threshold relative to baseline, insufficient process count, and continuously rising memory usage. This allows issues to be detected before they expand.
7. Engineering Systems: From “Able to Train” to “Out-of-the-Box Training”
There is a gap between a one-off adaptation and systematic engineering capability. That gap is often defined by reproducibility.
Systematic engineering should include at least four areas:
- Operator and numerical alignment system: Build an automated precision test set covering forward, backward, and composite operators, and run regular regressions.
- Performance analysis and tuning system: Use layered profiling, including per-operator time, communication waiting time, and memory allocation, to identify bottlenecks and form reusable tuning strategies.
- Automation toolchain: Provide one-click environment deployment, automatic parallel-strategy configuration, checkpoint management, and failure recovery to reduce manual intervention.
- Standardized delivery: Convert adaptation results into standardized configuration templates, test scripts, and documentation so that the same model can reproduce the same results on a new cluster. This is the meaning of “out-of-the-box training.”
7.1 Engineering Readiness Checklist
| Stage | Check item | Acceptance standard |
|---|---|---|
| Environment preparation | Driver, runtime, collective-communication library versions | Versions are locked and reproducible |
| Model loading | Original weight loading and sharding mapping | Loss after loading matches the reference implementation |
| Single-GPU / small scale | Operator precision and backward correctness | Single-step loss stays within the expected error range |
| Multi-node multi-GPU | Sharding, gradient synchronization, numerical stability | No NaN/Inf and no hangs over hundreds of continuous steps |
| Long-term stability validation | Checkpoints, resume training, failure recovery | Training can resume seamlessly from a checkpoint after failure |
| Production operation | Monitoring, alerting, slow-node governance | Abnormalities are detectable, diagnosable, and recoverable |
8. Conclusion
The maturity path for domestic full-featured GPUs in software stacks is becoming clearer: from inference adaptation, to training adaptation, and then to long-cycle stable training.
- Native training paradigms such as Fully Sharded Data Parallel connect the complete training path.
- Multi-node continuous-step validation verifies system stability.
- Checkpoints, fault tolerance, and monitoring support long-duration runs.
- Standardized toolchains make “out-of-the-box training” possible.
The training adaptation for a nearly 3 trillion-parameter model, the continuous stable run of 400 steps across 16 GPUs on two nodes, and prior practice in complete training of thousand-parameter-scale models, full-stack training of multimodal world models, and end-to-end training of embodied AI models together form milestones along this path.
For developers and enterprises, it is more useful to ask not only “how large a model was adapted,” but also:
- At what scale was the adaptation validated?
- How long did it remain stable?
- Does it come with a reproducible engineering system?
These questions provide a more reliable standard for evaluating the training readiness of a domestic AI chip.
