Domestic GPU Completes Training Adaptation for a Near-Trillion-Parameter Model: Engineering Practice for Stable 400-Step Runs on 16 Cards Across Two Nodes

    This article examines a recent training adaptation effort in which a domestic full-function GPU, paired with a self-developed software stack, ran 400 consecutive optimizer updates on a near-trillion-parameter open-source flagship model using 16 accelerators across two nodes. It clarifies the critical distinction between inference adaptation, training adaptation, and native pretraining; explains why FSDP2 was chosen over DDP and tensor parallelism; outlines the four metrics that must be monitored to judge stability; details four real bottlenecks in cross-node training; and proposes a five-stage evaluation framework for bringing up new hardware. It closes with what is still missing to move from "it can train" to "trains out of the box."

    Domestic GPU Completes Training Adaptation for a Near-Trillion-Parameter Model: Engineering Practice for Stable 400-Step Runs on 16 Cards Across Two Nodes

    I. Background: A Training Adaptation, Not a Native Pretraining Run

    A domestic GPU vendor recently announced that, using its flagship training-and-inference accelerator card together with its in-house software stack, it had completed the training adaptation of an open-source flagship large model with a parameter count approaching the trillion scale. The experimental setup was two nodes with 16 accelerator cards in total. All 16 training processes completed 400 consecutive optimizer updates, with the training loss and gradient norm remaining finite throughout, and no numerical overflow or abnormal process termination.

    One easily misread boundary must be settled first: a successful training adaptation does not mean the model’s native pretraining was performed on this chip.

    Three types of “adaptation” that are common in the industry mean entirely different things:

    Type Meaning Verification strength
    Inference adaptation (Day 0) Model weights load correctly on the new hardware and forward inference runs Low; a single forward pass is enough
    Training adaptation Backpropagation, optimizer updates, and gradient synchronization all run end to end with numerical stability Medium; multi-step iteration is required
    Native pretraining Training from random initialization to the trillion-token scale on that hardware cluster Highest; requires thousand-card-plus long-duration stability

    A relevant industry phenomenon: a DeepSeek-style team, in its technical report, validated a fine-grained expert parallelism scheme with domestic NPUs listed alongside mainstream GPUs. The industry generally reads this as a side-by-side validation at the inference operator level, and the original pretraining compute source of its base model has not been publicly confirmed. This shows that “appearing side by side” and “serving as the primary training compute” are two different things.

    The correct framing of this adaptation is therefore: it demonstrates that a domestic full-function GPU has the engineering capability to carry full-pipeline training of a frontier complex model, not a claim that it has replaced any specific training path.

    II. Technical Core: A Native FSDP2 Multimodal Training Path

    The key implementation disclosed by the vendor is a native FSDP2 (Fully Sharded Data Parallel, second generation) multimodal training path that connects three stages:

    1. Model loading: Weights of this parameter scale cannot reside entirely in a single card’s memory, so they must be split according to sharding rules and loaded in a streaming fashion.
    2. Shard scheduling: During the forward and backward passes, parameter shards are all-gathered on demand and released immediately after use to cap peak memory.
    3. Gradient synchronization: After the backward pass, reduce-scatter aggregates gradients, and each rank keeps only the shard it is responsible for.

    Why FSDP2 Instead of the Traditional Options

    • Versus pure data parallelism (DDP): DDP keeps full parameters, gradients, and optimizer states on every card, with memory usage of roughly parameter count × (2 + 2 + 12) bytes (fp16 parameters + fp16 gradients + fp32 momentum and variance). A trillion-parameter model does not fit at all.
    • Versus tensor parallelism (TP): TP requires model-structure-aware partitioning (by attention head, by expert), which is extremely unfriendly to new operators and carries a high adaptation cost.
    • The FSDP2 advantage: The sharding granularity drops to the nn.Module level, making it nearly agnostic to model structure; parameters are managed as sharded tensors (DTensor), with clearer semantics and significantly lower debugging and migration costs than the first-generation implementation.

    Illustrative code (pseudocode, structure only):

    1. for layer in model.layers: # wrap layer by layer to cap peak memory
    2. layer = fully_shard(layer, mesh=mesh) # mesh: (dp_replicate, dp_shard)
    3. model = fully_shard(model)
    4. for step in range(total_steps):
    5. with no_sync_if_accumulating(step): # skip synchronization during gradient accumulation
    6. loss = model(batch)
    7. loss.backward() # all-gather parameters and reduce-scatter gradients in backward
    8. optimizer.step() # each rank updates only its local shard
    9. optimizer.zero_grad()
    10. log(step, loss, grad_norm) # must be logged, used for stability judgment

    III. Stability Verification: What 400 Consecutive Updates Actually Show

    The statement “400 consecutive optimizer updates, with loss and gradient norm finite throughout” carries a high density of information and deserves a closer look.

    III.1 Why Step Count Rather Than Throughput

    What most easily exposes problems in a training adaptation is not the first step but somewhere between the tens and the hundreds of steps:

    • Passing step 1 may only mean operator shapes happened to match.
    • Around steps 50 to 100, the learning rate schedule enters its update window and mixed-precision loss scaling begins to adjust frequently.
    • Beyond step 200, issues such as memory fragmentation, communication buffer reuse, and gradient accumulation boundaries start to accumulate and surface.

    400 consecutive steps without interruption essentially covers the short-range stability window. It is the minimum acceptable bar for a training adaptation, not the finish line. Genuine production-grade validation usually requires thousands of steps, or even ten-thousand-step long-duration stability testing.

    III.2 Four Categories of Metrics That Must Be Monitored

    1. 1) loss — is it finite, is it diverging, is the descent monotonic (reasonable jitter allowed)
    2. 2) grad_norm — are there spikes; does spike frequency rise with step count
    3. 3) parameter/gradient overflow rate — proportion of inf/nan under mixed precision
    4. 4) communication and memory — all-gather wait time, peak memory and fragmentation rate

    The pass criteria should be quantified rather than relying on “it looks fine”:

    1. assert torch.isfinite(loss), f"step {step} loss not finite"
    2. assert grad_norm < CLIP_THRESHOLD * 10, f"grad spike at {step}: {grad_norm}"
    3. assert nan_ratio < 1e-6, "overflow ratio too high"

    IV. Four Real Bottlenecks in Cross-Node Training

    Two nodes with 16 cards is a typical minimal cross-node unit, and the density of problems is very high.

    IV.1 Communication Topology and Parallelism Mix

    Cross-node bandwidth is usually an order of magnitude lower than intra-node bandwidth. The common practice is to place the most communication-intensive dimension inside the node:

    1. Recommended mapping: TP (intra-node NVLink-class interconnect) < node boundary < DP/PP (cross-node)
    2. Anti-pattern: TP across nodes → high all-reduce frequency, insufficient bandwidth, throughput collapse

    IV.2 Initialization and Randomness Consistency

    A multimodal model contains a vision encoder, projection layers, and a language backbone, whose parameter initialization distributions differ. If random seeds are handled poorly across ranks, the weight distribution will be misaligned once shards are stitched together. The same shard must be initialized identically on all relevant ranks.

    IV.3 Mixed-Precision Strategy

    BF16 has a larger dynamic range than FP16 and is the preferred choice for long-duration stable training; optimizer states should stay in FP32. If loss scaling is used, confirm that the scaling factor update logic behaves consistently on the domestic software stack.

    IV.4 Operator Coverage and Fallback Paths

    The most common failure during adaptation is a custom operator lacking a high-performance implementation and being forced to fall back to a generic one, causing memory to spike or speed to drop sharply. An operator coverage checklist is recommended:

    1. operator_audit:
    2. - name: RMSNorm status: native fallback: none
    3. - name: RoPE status: native fallback: none
    4. - name: GQA status: native fallback: naive
    5. - name: MoE_Dispatch status: partial fallback: dense
    6. - name: FlashAttention status: native fallback: math

    Any item with fallback != none should be treated as a risk point and needs separate numerical alignment and performance baseline testing.

    V. A Reusable Adaptation Evaluation Framework

    For a piece of new hardware, the recommended approach is five stages, each with a clear exit condition:

    1. Single-card operator alignment: Compare each operator against the reference implementation, with the exit condition being relative error within threshold.
    2. Single-card end to end: A small model runs a complete forward and backward pass plus 20 updates, with a loss curve trending consistently with the reference implementation.
    3. Single-node multi-card: Verify collective communication correctness and peak memory.
    4. Cross-node scaling: Verify the parallelism mix and communication overlap, and observe the scaling efficiency curve.
    5. Long-duration stability and fault tolerance: Run thousands of steps continuously, inject a single-card failure, and verify checkpoint saving and recovery.
    1. # Minimal skeleton of a long-duration stability test
    2. ckpt_interval = 200
    3. for step in range(target_steps):
    4. train_one_step()
    5. if step % ckpt_interval == 0:
    6. save_checkpoint(step) # save in shards to avoid an oversized single file
    7. if not is_finite_all_metrics():
    8. rollback_to_last_ckpt() # roll back automatically instead of exiting outright

    VI. From “It Can Train” to “Trains Out of the Box”: What Is Still Missing

    The article notes that the vendor has already delivered several “domestic chips training domestic models” results: a 236-billion-parameter scientific foundation model trained completely from scratch, full-stack native training support for a 5D world model, and, together with research institutions, full-pipeline training of an embodied brain model, with trillion-parameter-scale model training currently in progress. The shared value of these cases is that they cover dense, multimodal, and embodied structures, giving a sufficiently broad stress-test surface.

    To truly reach “trains out of the box,” three areas still need to be filled in:

    • Automated tooling: automatic parallel-strategy search, automatic memory estimation, and automatic failure rollback to reduce manual tuning.
    • Observability: unified collection of training metrics, communication metrics, and hardware metrics, plugged into common logging services and monitoring/alerting systems, so anomalies can be located automatically.
    • Ecosystem compatibility: zero-modification integration with mainstream training frameworks, checkpoint formats, and data loading pipelines, bringing user migration cost close to zero.

    VII. Practical Advice for Technical Teams

    • Do not use “one step runs” as the acceptance criterion; judge jointly across three dimensions: consecutive step count + metric finiteness + scaling efficiency.
    • During adaptation, fix random seeds and data order first to decouple numerical problems from environment problems.
    • Maintain an operator coverage ledger and manage fallback items as first-class citizens.
    • Checkpoints must be saved in shards and recovery drills run regularly; verify fault tolerance before long-duration stability testing.
    • In external communication, strictly distinguish “inference adaptation / training adaptation / native pretraining” to avoid distortion in technical discussions.

    Conclusion

    Two nodes, 16 cards, and 400 consecutive stable updates amount to essentially a key validation of engineering feasibility: they show that a domestic full-function GPU already has the foundational capability to carry full-pipeline training of a frontier complex model. The real challenge lies not in any single operator but in the systemic coordination of communication topology, numerical stability, fault-tolerant recovery, and tooling maturity. Only when these stages are polished to the point of being automated, observable, and rollback-capable does “from can-train to trains-out-of-the-box” truly land.