A Domestic GPU Completes Training Adaptation for a Near-Trillion-Parameter Model: 16 Cards Across Two Nodes Run 400 Steps Stably

    This article explains what a domestic full-function GPU vendor's training adaptation of a near-trillion-parameter open-source multimodal model actually demonstrates, and why 400 consecutive optimizer updates matter more than a single successful step. It covers the distinction between training adaptation and pre-training, the nonlinear failure modes of large-model training, a five-layer breakdown of the native FSDP2 fully sharded data parallel pipeline with illustrative pseudocode, cross-node communication bottlenecks in a two-node 16-card setup, a numerical stability checklist, and what "ready to train out of the box" requires in terms of operator coverage, configurable parallelism, and automated tooling.

    1. What Happened: A Training Adaptation, Not a Pre-Training Reproduction

    A domestic full-function GPU vendor recently announced that, using its flagship training-and-inference accelerator card and its in-house software stack, it quickly completed the training adaptation of an open-source ultra-large-scale multimodal model with a parameter count approaching the trillion level. The test environment consisted of 16 accelerator cards across two nodes. All 16 training processes completed 400 consecutive optimizer updates, with the loss and gradient norm remaining finite throughout, and no numerical overflow or abnormal interruption occurred.

    One common misunderstanding needs to be cleared up first: training adaptation is not the same as the model being pre-trained on that chip. Adaptation answers whether this hardware and software combination can get training running and keep it stable; where the original pre-training compute for the base model came from is a separate question. A common industry practice is to validate operators and parallelization schemes across multiple hardware routes side by side in a technical report (especially operator validation on the inference side). That only demonstrates ecosystem compatibility; it does not establish which compute produced the pre-training. The practical takeaway for developers is that when evaluating domestic compute, operator coverage, availability of parallel strategies, and long-run stability duration should be validated as separate metrics.

    2. Why One Step Is Not a Result, but 400 Consecutive Steps Are

    Failure modes in large-model training are highly nonlinear. A successful single forward and backward pass often only proves that shapes and operators work; the real risk appears after many steps accumulate:

    • Numerical accumulation risk: In low-precision mixed-precision training, dynamic adjustment of the loss scaling factor and accumulation of the optimizer’s second moment can trigger overflow after dozens of steps.
    • Mismatch between communication and computation overlap: If gradient bucketing and the overlap scheduling of communication with backward computation have timing offsets, they can surface at specific step boundaries as timeouts or hangs.
    • Memory fragmentation and cache growth: Repeated allocation and release of sharded states and activation recomputation caches only reveal fragmentation-induced OOM during long stable runs.
    • Data pipeline jitter: Long sequences and multimodal samples vary widely in length; without length bucketing, a given batch can create spikes in both computation and communication.

    So the statement “400 consecutive optimizer updates with loss and gradient norm finite throughout” is essentially a long-run stability baseline report. What it validates is the system’s convergence observability and its ability to run without interruption under a real iteration cadence.

    3. Technical Breakdown: A Native FSDP2 Fully Sharded Data Parallel Training Path

    The adaptation builds a native FSDP2 multimodal training path, connecting model loading, shard scheduling, and gradient synchronization end to end. From an engineering perspective it splits into five layers:

    1. Model loading and metadata initialization: Build model metadata in a low-memory mode first, completing parameter naming and layer mapping, then materialize layers one by one according to the sharding plan, avoiding a doubling of peak memory.
    2. Sharding topology design: Parameters, gradients, and optimizer states are all fully sharded within the data parallel group; differentiated sharding granularity is applied to the multimodal encoder and the language backbone to prevent load skew across modalities.
    3. AllGather/ReduceScatter orchestration for forward and backward: The forward pass prefetches parameter shards layer by layer, and the backward pass triggers gradient reduction per bucket, with computation and communication explicitly overlapped.
    4. Gradient synchronization and update: After reduction, updates happen in place per shard, reducing global broadcast; for very large parameter tensors, flattened bucketing is used to align communication granularity.
    5. Checkpointing and fault tolerance: Shard-level checkpoints, combined with periodic validation and automatic rescheduling, shorten fault recovery time.

    Illustrative pseudocode (expressing orchestration logic only, not a specific API):

    1. for step in range(total_steps):
    2. for layer in model.layers:
    3. param = all_gather(layer.shard) # Prefetch in forward pass
    4. out = layer.forward(inputs, param)
    5. release(param)
    6. loss = criterion(out, target)
    7. loss.backward() # Backward triggers bucketed reduction
    8. reduce_scatter_grads(model) # In-place gradient sync
    9. clip_grad_norm_(model, max_norm=1.0) # Clip before updating
    10. optimizer.step()
    11. optimizer.zero_grad(set_to_none=True)
    12. if step % log_interval == 0:
    13. assert isfinite(loss) and isfinite(grad_norm)

    4. Cross-Node Communication: Where the Bottleneck Is in a Two-Node 16-Card Setup

    Multiple cards within a single node usually rely on high-bandwidth interconnect, while cross-node communication is constrained by network topology. Three things need attention in practice: first, matching bucket size to message granularity—buckets that are too small amplify launch overhead, while buckets that are too large break overlap; second, topology-aware parallel mapping, constraining the most communication-intensive parallel dimension within the same node so that only low-frequency synchronization crosses nodes; third, continuous observation of link health, bringing bandwidth utilization, retransmissions, and timeouts into monitoring and alerting rather than investigating after training has already stopped.

    5. Numerical Stability Engineering Checklist

    • Adopt a unified mixed-precision strategy, keeping higher-precision accumulation for reduction operators;
    • Place gradient clipping before the optimizer update, and monitor the clipping trigger rate;
    • Set upper and lower bounds and fallback logic for the loss scaling factor;
    • Apply length bucketing and packing to long-sequence samples to suppress memory spikes;
    • Record three curves per step—loss, gradient norm, and parameter update norm—so anomalies can be traced to a specific layer.

    6. From “Able to Train” to “Ready to Train Out of the Box”

    The deployment results mentioned in the article—completing training of a two-hundred-billion-parameter scientific foundation model from scratch, supporting full-stack native training of a 5D world model, jointly completing end-to-end training of an embodied brain model with research institutions, and advancing trillion-parameter training—all point to one conclusion: the competitiveness of domestic compute has shifted from single-card peak performance to full-chain engineering maturity. True “ready to train out of the box” requires a complete operator library, configurable parallel strategies, and an automated toolchain covering environment setup and fault self-healing. For adopters, a practical path is to build an isolated environment on object storage and container platforms, connect logging and monitoring/alerting services, use a few hundred steps of stability testing as an admission gate, and then scale up gradually. Baidu AI Cloud’s general capabilities in heterogeneous compute scheduling and training observability can serve as a general reference path for this kind of engineering deployment.