Domestic GPU Completes Training Adaptation for a Nearly Trillion-Parameter Model: 400 Stable Steps on 16 GPUs Across Two Nodes

    This article explains what a recent training adaptation of a nearly 3-trillion-parameter multimodal model on a domestic full-function GPU actually proves—and what it does not. It clarifies the difference between Day 0 inference adaptation, training adaptation, and original pretraining, then walks through the native FSDP2 training path, a 400-step validation across 16 GPUs on two nodes, a troubleshooting checklist for common failures, and practical recommendations for developers. The goal is to help readers distinguish real engineering readiness from adaptation announcements and build repeatable “train out of the box” workflows.

    1. Background: A Training Adaptation, Not Pretraining from Scratch

    A domestic full-function GPU vendor recently announced that, using its flagship training-and-inference accelerator and its in-house software stack, it quickly completed the training adaptation of a flagship model with nearly 3 trillion parameters. Under a configuration of two nodes with 16 GPUs in total, the setup ran stably for 400 consecutive optimizer update steps.

    One common misunderstanding needs to be cleared up first: a successful training adaptation does not mean the model completed its original pretraining on this chip.

    The industry usually distinguishes three types of “adaptation”:

    • Day 0 inference adaptation: Operator mapping and inference deployment completed on the day model weights are released. The goal is to “get it running with matching results.”
    • Training adaptation (the focus of this article): Starting from an existing model structure and weights, establishing the full pipeline of loading, sharding, forward pass, backward pass, gradient synchronization, and optimizer updates. The goal is “stable and reproducible training.”
    • Original pretraining: Starting from random initialization and completing training at the scale of trillions of tokens on a large-scale cluster. This involves systematic engineering such as data mixtures, learning rate schedules, and long-term stability of parallel strategies.

    In the technical report of a DeepSeek model, inference operator solutions for two different accelerator architectures were validated side by side. The industry generally understood this as inference-side operator validation, not a statement about which compute was used for base model pretraining. This example shows that determining “who trained it” requires checking whether the original compute source, training token count, and parallel configuration are disclosed—not just reading an adaptation announcement.

    2. Technical Core: What the Native FSDP2 Training Path Enables

    The key to this adaptation was building a native FSDP2 (Fully Sharded Data Parallel, second generation) multimodal training path. Compared with traditional approaches, FSDP2 delivers value in three areas:

    1. Finer parameter sharding granularity: Parameters, gradients, and optimizer states are sharded within the data parallel group. Memory usage drops roughly linearly with the number of GPUs, making it possible to train a nearly trillion-parameter model within a limited number of nodes.
    2. Simpler communication primitives: Parameters are gathered with all-gather and gradients are returned with reduce-scatter, reducing complex tensor concatenation logic and lowering the error surface of multi-GPU coordination.
    3. Better fit for multimodal structures: Encoders for text, image, video, and other modalities differ greatly in parameter size. Fine-grained sharding prevents an individual large module from becoming a memory bottleneck.

    The full training pipeline can be abstracted as follows (pseudocode that only expresses stage boundaries):

    1. # 1. Model loading and structural partitioning
    2. model = build_multimodal_model(cfg)
    3. model = FSDP2(model, sharding_strategy="full_shard")
    4. # 2. Data sharding and scheduling (multimodal sampler)
    5. loader = MultiModalShardLoader(dataset, world_size=16, rank=rank)
    6. # 3. Main training loop
    7. for step, batch in enumerate(loader):
    8. loss = model(batch) # forward pass
    9. loss.backward() # backward pass, triggers reduce-scatter
    10. grad_norm = clip_grad_norm_(model, 1.0)
    11. optimizer.step() # update after parameter all-gather
    12. optimizer.zero_grad()
    13. assert isfinite(loss) and isfinite(grad_norm)

    If any stage in this pipeline is missing, it shows up as “loads but will not train” or “crashes after a few dozen steps.”

    3. Validation Method: What 400 Consecutive Steps Demonstrate

    In the experiment, 16 training processes completed 400 consecutive optimizer updates. The loss and gradient norm stayed finite throughout, with no numerical overflow or abnormal interruption. The design logic behind this validation is worth borrowing:

    • Choice of step count: 400 steps are enough to cover common instability windows such as learning rate warmup, repeated batches of initial data, and gradient accumulation boundaries. It is a low-cost, high-information smoke test.
    • Dual-metric monitoring: Loss indicates the convergence trend, while gradient norm indicates whether updates are exploding. Only when both remain finite is the numerical pipeline healthy.
    • Cross-node coverage: Two nodes with 16 GPUs mean that parameter all-gather and gradient reduce-scatter must traverse the network across nodes. This exposes issues with topology, network adapters, and collective communication libraries.

    In engineering practice, it is advisable to turn this kind of validation into an admission gate:

    Validation Item Pass Criteria
    Single-GPU forward and backward Loss error within tolerance versus the reference implementation
    Two-node collective communication No abnormal jitter in bandwidth or latency
    400-step continuous update Loss and grad_norm remain finite throughout
    Checkpoint resume Loss remains continuous after restoring from a checkpoint

    4. Common Failures and Troubleshooting Checklist

    High-frequency issues during the training adaptation stage and how to locate them:

    1. Numerical overflow (loss becomes NaN): First check the mixed-precision strategy, numerical stability of attention softmax, and normalization layer implementation, then check whether optimizer states are incorrectly sharded.
    2. Gradients out of sync: Confirm that reduce-scatter is correctly triggered during the backward pass, and check whether unused parameters are not marked, which can cause hangs.
    3. Memory fragmentation and OOM: Even with sharding enabled, pay attention to activation recomputation, reuse of temporary buffers, and padding strategies for variable-length multimodal inputs.
    4. Throughput below expectations: Determine whether the cause is unoptimized operators, excessive communication overhead, or data loading becoming the bottleneck. Use stage-by-stage timing rather than only end-to-end measurements.

    5. Engineering System: From “It Trains” to “Train Out of the Box”

    The article notes that the company already has the capability to support everything from “rapid inference deployment” to “full-pipeline stable training,” and has delivered multiple results under the theme of “domestic chips training domestic models”: from-scratch training of a 236-billion-parameter scientific foundation model, full-stack native training support for a 5D world model, and full-pipeline training of an embodied brain model completed together with research institutions, while also advancing trillion-parameter-scale model training.

    Abstracting these results into reusable engineering capabilities yields four layers:

    • Operator layer: Both correctness and performance meet targets for high-frequency operators such as attention, normalization, and loss functions.
    • Parallel layer: A strategy library combining data parallelism, tensor parallelism, pipeline parallelism, and expert parallelism.
    • Tooling layer: A toolchain for automated adaptation, precision alignment, performance profiling, and checkpoint resume.
    • Operations layer: Integration with common cloud product categories such as container platforms, object storage, logging services, and monitoring and alerting, enabling task scheduling and fault self-healing.

    In practice on cloud platforms such as Baidu AI Cloud, these capabilities are typically delivered as combinations of general-purpose product categories—for example, using a container platform to host distributed training tasks, object storage to hold checkpoints, and monitoring and alerting to track loss and hardware metrics. This turns a “one-off adaptation” into “repeatable delivery.”

    6. Practical Recommendations for Developers

    1. Align precision first, then discuss performance: Use a small-scale reference implementation for layer-by-layer numerical comparison to avoid optimizing throughput on an incorrect baseline.
    2. Add the 400-step test to CI: Run it after every operator or parallel strategy change to prevent regressions.
    3. Define adaptation boundaries clearly: When communicating externally, distinguish inference adaptation, training adaptation, and original pretraining to avoid distortion in technical communication.
    4. Prioritize building the toolchain: The degree of automation determines adaptation speed. Once the toolchain matures, the cost of onboarding new models drops significantly.

    7. Conclusion

    A domestic full-function GPU completing the training adaptation of a nearly trillion-parameter model, validated by 400 consecutive stable updates on 16 GPUs across two nodes, marks improved engineering maturity of domestic compute on complex large-model training pipelines. For developers, the real benefit is not a single adaptation announcement but the reusable sharding strategies, numerical stability methods, and automated toolchains behind it—the key to moving from “it trains” to “train out of the box.”