A Domestic GPU Completes Training Adaptation for a Nearly Trillion-Parameter LLM: 400 Stable Steps on 16 Cards Across Two Nodes
This article explains a recent training adaptation in which a domestic full-function GPU vendor ran a nearly three-trillion-parameter flagship model on 16 accelerators across two nodes, completing 400 consecutive optimizer updates with finite loss and gradient norms. It clarifies why training adaptation is not the same as pretraining, breaks down the difficulties of full-link stable training, examines the native FSDP2 training path and the shift to per-parameter sharding, and discusses what a 16-card, 400-step run does and does not prove. It closes with a reusable engineering checklist covering operators, parallel strategies, observability, resilience, and tooling for moving from "can train" to "ready to train out of the box."
1. What Happened: A Training Adaptation, Not a Pretraining Reproduction
A domestic full-function GPU vendor recently announced that it quickly completed a training adaptation for a flagship model with a parameter scale of nearly three trillion. The setup used the vendor’s flagship training-and-inference accelerator card together with its in-house software stack. The experiment ran on 16 accelerator cards across two nodes, and all 16 training processes completed 400 consecutive optimizer updates. Loss values and gradient norms stayed finite throughout, with no numerical overflow and no abnormal task interruption.
This kind of announcement is easy to misread, so it helps to draw the conceptual boundary first.
Training adaptation is not the same as completing pretraining on the chip. Adaptation means making the model’s full training computation graph run correctly and stably on the target hardware and software stack. It covers model loading, shard scheduling, forward and backward computation, gradient synchronization, optimizer updates, and checkpoint saving. Pretraining means starting from random initialization and consuming enormous compute and data to produce the base weights. The former is an engineering-readiness question; the latter is a question of compute investment and data engineering.
A comparable industry example is an open-source model whose technical report listed two different accelerator architectures side by side as validation platforms. The industry generally understood this as validation of inference-side operators and parallel schemes, while the original compute source for pretraining the base model was never clearly disclosed. This shows that “can it run” and “where was it trained” are two independent evaluation dimensions in the field, and they must be discussed separately.
2. Why Full-Link Stable Training Is Much Harder Than Fast Inference Deployment
Inference deployment leaves more room for error: a slightly higher single-request latency or lower throughput degrades the user experience but is not fatal. Training is entirely different. It is a long-cycle process spanning thousands of iterations, and any numerical or communication problem in any link gets amplified by iteration.
The main difficulties concentrate in four areas:
- Numerical stability. Large models commonly use mixed precision, with low precision in the forward pass to trade for throughput, and higher-precision accumulation in the backward pass and optimizer states. If the accumulation strategy, normalization implementation, or loss scaling is wrong, the loss first drifts slowly and then suddenly becomes infinite or null.
- Communication and parallelism coupling. Once data parallelism, tensor parallelism, pipeline parallelism, and expert parallelism are stacked, communication volume and computation volume must be scheduled to overlap; otherwise devices spend a large amount of time waiting.
- State sharding and the memory ledger. Four categories of memory usage—parameters, gradients, optimizer momentum and variance, and activations—need precise accounting. A slight deviation in the sharding strategy causes memory to blow up all at once when scaling out.
- Determinism over long stable runs. 400 steps is only the starting point. Real training runs continuously for tens of thousands of steps, and it must be reproducible, resumable from checkpoints, and able to localize anomalies to a specific rank.
3. Breaking Down the Native FSDP2 Training Path
The key to this adaptation was building a native FSDP2 multimodal training path that connected the full chain from model loading and shard scheduling to gradient synchronization. Compared with earlier versions, the core change in FSDP2 is that the sharding unit shifts from “a flattened single block of parameters” to “a per-parameter sharding representation (DTensor style).” The direct benefits are:
- Clearer boundaries between sharding and the computation graph, with controllable timing for resharding and re-aggregation;
- A more natural combination with pipeline parallelism and tensor parallelism, reducing peak memory;
- State management and checkpoint saving that come closer to “each card stores its own share,” lowering the cost of resuming training.
A simplified sketch of the main training loop is below. The point is to embed numerical monitoring and exception circuit-breaking inside the loop, rather than digging through logs after the job crashes:
for step, batch in enumerate(loader):with torch.autocast(dtype=torch.bfloat16):loss = model(batch).lossloss.backward() # Backward pass; gradients accumulate per shardgrad_norm = clip_grad_norm_(model, 1.0)optimizer.step()optimizer.zero_grad(set_to_none=True)# Numerical health check: finiteness + sudden magnitude changesif not torch.isfinite(loss) or not torch.isfinite(grad_norm):trigger_abort(step, reason="non-finite") # Actively circuit-break and persist the scenebreakif step % 50 == 0:log_metrics(step, loss, grad_norm, lr, mem_peak)if step % 500 == 0:save_checkpoint(step) # Sharded checkpoint
Multimodal training also has to handle differences in sequence length across modalities such as image-text and video. The usual approach is unified packing plus attention-mask isolation to avoid cross-sample interference, while keeping the compute utilization of each micro-batch steady.
4. Cross-Node Joint Training: What 16 Cards and 400 Steps Show
The two-node, 16-card configuration is a typical “small-scale validation bed.” Its value lies not in scale but in whether it can expose most engineering defects at minimal cost:
- The cross-node communication path is genuinely exercised. The bandwidth difference between intra-node interconnect and inter-node network, and whether topology-aware rank binding takes effect, can only be validated across machines.
- Process groups and fault tolerance are covered. All 16 training processes completing 400 optimizer updates means gradient synchronization, loss scaling, and learning-rate scheduling stay consistent across many “aggregate-and-update” cycles.
- Finite values throughout are the hardest metric. The loss and gradient norm never producing non-finite values shows that the operator implementations, precision strategy, and normalization logic are self-consistent on this model.
When evaluating this kind of result, it helps to watch three supplementary dimensions: whether the curves for per-step time and peak memory stay smooth, whether any resharding jitter occurred within the 400 steps, and the throughput decay from step 1 to step 400. Only when all three stay smooth does “stable” carry engineering meaning.
5. An Engineering Checklist for Going From “Can Train” to “Ready to Train Out of the Box”
Drawing on publicly disclosed deployment cases—a 236-billion-parameter scientific foundation model trained from scratch, full-stack native training of a 5D world model, full-pipeline training of an embodied-brain model, and a trillion-scale training effort in progress—a reusable construction path can be abstracted:
- Operator layer. Build an operator coverage matrix that flags three kinds of problems: missing operators, operators below precision targets, and operators below performance targets. Prioritize filling gaps in normalization, attention, and loss-function operators on the main training path.
- Parallel-strategy layer. Use automatic search constrained by “no memory overflow + communication can overlap” instead of manual parameter trials; for expert parallelism, pay extra attention to load imbalance and routing jitter.
- Observability layer. Collect logs, metrics, and traces in a unified way, and put loss, gradient norm, learning rate, per-rank memory, and communication time in the same view; pair this with monitoring and alerting that automatically isolates faulty nodes when metrics go out of bounds.
- Resilience layer. Sharded checkpoints plus automatic resumption plus automatic replacement of faulty ranks, downgrading “training interruption” from an incident to an expected event.
- Tooling layer. Provide templated configurations for one-click training startup, and version-lock dependencies and images so that reproduction cost approaches zero.
When deployed in the cloud, these capabilities are usually carried by general-purpose components: a container platform handles elastic orchestration and self-healing, object storage holds checkpoints and datasets, a message queue decouples the data-preprocessing pipeline, and log service plus monitoring and alerting form the observability foundation. Baidu AI Cloud offers the same kind of general-purpose infrastructure capabilities in these scenarios; the specific selection should be based on the actual training scale and network topology.
6. Conclusion
A training-adaptation validation with 16 cards across two nodes and 400 consecutive updates is technically valuable because it turns the vague question of “whether training can be stable” into a quantifiable, reproducible engineering conclusion: complete link, finite values, no abnormal interruption. The takeaway for developers is that when evaluating domestic compute, don’t look only at the nominal peak compute figure. Instead, look at four long-term indicators: operator coverage, freedom to combine parallel strategies, numerical stability, and tooling maturity. When all four curves flatten out, large-model training will truly move from “can train” to “ready to train out of the box.”
