A Domestic GPU Completes Training Adaptation for a Nearly Trillion-Parameter Model: 400 Stable Steps on 16 Cards Across Two Nodes
This article explains why a successful model adaptation does not automatically mean a chip can handle pretraining, and breaks down the capability chain from loadability and inference to stable, large-scale training. Using a reported case in which a domestic GPU vendor completed training adaptation for a flagship model of nearly three trillion parameters and ran 400 consecutive optimizer updates on 16 cards across two nodes, it examines the key technical paths behind full-pipeline training stability, including FSDP2-style sharded data parallelism, cross-node communication and parallel strategy combinations, and numerical stability engineering. It also outlines a reusable five-stage adaptation validation methodology and the infrastructure still required to move from "trainable" to "ready to train out of the box."
1. The Starting Point: A Successful Adaptation Does Not Mean “It Can Train”
In the domestic computing ecosystem, we often see announcements that a chip has “completed adaptation for a given open-source large model.” Such statements contain a detail that is easy to misread: a successful adaptation or integration usually means the model can be loaded and can run inference on the hardware. It does not mean the hardware supplied the original compute for the model’s base pretraining.
From an engineering perspective, capability can be broken into a clear progression:
- Loadable: Model weights, tokenizer, and configuration parse correctly, and tensor partitioning matches the target hardware’s memory layout.
- Inference-capable: The forward pass is correct, a single card or a small number of cards can complete one full forward pass, and the output matches the reference implementation.
- Trainable: Backpropagation, optimizer states, gradient clipping, and mixed precision are all working, and the loss decreases stably.
- Stable at scale: After cross-node scaling, communication does not become the bottleneck, and long-running jobs do not hit numerical anomalies or silent failures.
- Ready to train out of the box: Operators, parallel strategies, fault tolerance, and monitoring are fully automated, so users do not need to make deep code changes.
The work described in the original report delivers its value precisely at levels 3 and 4: a domestic GPU vendor, using its flagship training-and-inference compute card and an in-house software stack, completed training adaptation for a flagship model of nearly three trillion parameters from a large-model team. On a configuration of 16 cards across two nodes, it completed 400 consecutive optimizer updates, with loss and gradient norm remaining finite throughout and no numerical overflow or abnormal interruption. This is a sample of “trainability validation,” not a conclusion about “where the pretraining compute came from.”
2. Why “Stable Training Across the Full Pipeline” Is Much Harder Than “Running Once”
Running a single training step requires only one forward pass, one backward pass, and one parameter update. Stable training, however, is a probabilistic problem: across thousands of iterations, a single numerical anomaly can contaminate all the compute already invested.
The main risks fall into four categories:
- Numerical risk: Under mixed precision, activations, gradients, and the optimizer’s second moment can overflow or underflow; an improper loss scaling strategy can directly produce NaN.
- Communication risk: When tensor parallelism, pipeline parallelism, and expert parallelism are combined, communication primitive calls become dense, and any single timeout or misalignment can cause a hang.
- Scheduling risk: Peak memory usage from shard loading, parameter offloading, and recomputation can stack up, easily triggering fragmentation and OOM.
- Observability risk: Training is a long-running job. Without fine-grained metrics, failures are often detected only tens of minutes later, making rollback extremely costly.
Therefore, the standard for judging whether an adaptation is “really usable” is not whether it can start, but whether it can keep the loss finite, the gradient norm stable, and throughput free of noticeable degradation within a fixed number of steps.
3. Key Technical Paths
3.1 Native Sharded Data Parallelism (FSDP2-Style Approaches)
Memory usage for ultra-large models comes mainly from three sources: parameters, gradients, and optimizer states. Taking an Adam-style optimizer as an example, under mixed-precision training each parameter needs roughly 2 bytes for weights + 2 bytes for gradients + 4+4 bytes for the first and second moments, or about 12 bytes per parameter. Three trillion parameters, even counting only the backbone, far exceed the memory of a single machine.
The core idea of sharded data parallelism is to partition parameters, gradients, and optimizer states along the data-parallel dimension, with each rank holding only its own share, performing all-gather on demand during the forward and backward passes, and writing back with reduce-scatter after the update. Compared with the previous generation of implementations, newer approaches (commonly referred to in the industry as FSDP2-style) typically change the sharding unit from “a flattened 1-D tensor” to “a DTensor representation of module parameters,” bringing three practical benefits:
- Clearer sharding semantics, with a traceable correspondence between parameters and the computation graph;
- More natural composition of mixed parallelism, allowing orthogonal stacking with tensor parallelism and pipeline parallelism;
- More organized checkpoint and state management, making elastic scaling and fault recovery easier.
Illustrative pseudocode (expressing semantics only, not a specific framework API):
# Pseudocode: single-step semantics of sharded data parallelismfor batch in loader:with shard_context(model): # parameters all-gathered on demandout = model(batch) # forward passloss = criterion(out, label)loss.backward() # backward pass, gradients reduce-scatteredclip_grad_norm_(model, max_norm) # global gradient norm clippingoptimizer.step() # local shard updateoptimizer.zero_grad()log(loss, grad_norm, step) # key observability metrics
3.2 Cross-Node Communication and Parallel Strategy Combinations
Sixteen cards across two nodes is a typical “small-scale validation, large-scale extrapolation” scenario. Its value lies in exposing cross-node problems at a controllable cost: intra-node interconnect offers high bandwidth and low latency, while the inter-node network is usually an Ethernet/RoCE fabric with a higher oversubscription ratio. General engineering principles include:
- Place the parallel dimension with the largest and most frequent communication (usually tensor parallelism) inside the node;
- Place data parallelism and pipeline parallelism across nodes to reduce the frequency of cross-node synchronization;
- Overlap computation and communication for all-gather/reduce-scatter to hide latency;
- Use gradient accumulation to reduce the number of synchronizations per token.
3.3 Numerical Stability Engineering
The key engineering measures for keeping 400 steps stable typically include:
- Loss scaling and dynamic range monitoring to avoid fp16 overflow;
- Numerical boundary handling for logits and attention scores;
- Per-layer gradient norm statistics to locate the source module of anomalies;
- Periodic snapshots and checkpoint resume to reduce rollback cost.
A minimal viable monitoring snippet:
metrics = {"loss": float(loss.detach()),"grad_norm": float(total_norm),"param_max_abs": float(max_abs(model.parameters())),"step_time_ms": elapsed_ms,}assert math.isfinite(metrics["loss"]), "loss is not finite, abort immediately"
4. A Reusable Adaptation Validation Methodology
Teams are advised to standardize adaptation work into five stages, each with a clear “exit condition”:
| Stage | Goal | Exit condition |
|---|---|---|
| 1. Load validation | Weights and configuration are correct | A single card can complete a forward pass, and the output matches the reference implementation |
| 2. Single-card training | Backward pass and optimizer are working | A monotonic downward trend in loss holds within 50 steps |
| 3. Two-node scaling | Cross-node communication is correct | Throughput on 16 cards falls within the expected near-linear scaling range |
| 4. Long stability test | Numerical behavior and fault tolerance | More than 400 consecutive steps with no overflow and no interruption |
| 5. Toolchain hardening | Automation | One-click launch, automatic monitoring, automatic resume |
The “400 steps” in stage 4 is not a magic number but an empirical threshold: it is enough to cover typical transient processes such as learning-rate warmup, gradient clipping taking effect, and optimizer momentum accumulation.
5. What Is Still Missing to Go From “Trainable” to “Ready to Train Out of the Box”
The original report notes that the vendor has completed several “domestic chips training domestic models” results: full training from scratch of a 236-billion-parameter scientific foundation model, full-stack native training of a five-dimensional world model, and full-pipeline training of an embodied brain model in collaboration with research institutions, while also advancing trillion-parameter-scale training. Abstracting from this experience, four pieces of infrastructure are needed to reach “ready to train out of the box”:
- Operator coverage and automatic tuning: Missing operators are the first wall in adaptation, requiring a coverage checklist and automatic fallback/degradation strategies.
- Automatic parallel strategy search: Memory, bandwidth, and topology jointly determine the optimal partitioning, and manual tuning is not reproducible.
- Observability system: A logging service + monitoring and alerting + metrics dashboard turns silent failures into explicit alerts.
- Fault tolerance and elasticity: Automatic node-level fault isolation and automatic checkpoint resume bring the expected completion time of long jobs back into a controllable range.
For adopters, evaluating whether domestic compute is capable of supporting training can be reduced to a short checklist: What is the operator coverage? Does it support native sharded parallelism and orthogonal composition of multiple parallel dimensions? At which tier does the cross-node scaling efficiency curve show an inflection point? Are the step count and numerical metrics of the long stability test public? Does it offer automatic resume and fault isolation? Only a platform that can answer these five questions is qualified to enter a production training workflow.
6. Conclusion
A validation of “16 cards across two nodes, 400 consecutive steps, with loss and gradient norm finite throughout” may look like a small conclusion, but it marks a domestic full-feature GPU filling the hardest gap in the large-model training chain: stability. As operators, parallelism, fault tolerance, and toolchains gradually mature, training ultra-large models on domestic hardware will shift from “a research project tuned by experts” to “a default option engineers can use directly.”
