From "It Trains" to "Train Out of the Box": Large Model Training Adaptation on Domestic GPUs

    This article examines how a domestic GPU vendor adapted a flagship open-source large model with nearly 3 trillion parameters to run on its hardware, and what that achievement does and does not prove. It clarifies the difference between inference adaptation, training adaptation, and base-model pretraining; walks through a native FSDP2 (Fully Sharded Data Parallel 2) training path from model loading to gradient synchronization; interprets the dual-node, 16-card, 400-step validation; and explains the numerical-stability engineering and toolchain needed to keep loss and gradients finite over long runs. It also outlines the path to scale through combined parallelism strategies and fault tolerance, and frames a five-stage progression from "it can train" to "train out of the box."

    A domestic GPU vendor recently announced that it had completed training adaptation for the open-source version of a flagship large model with nearly 3 trillion parameters. The work was done on the vendor’s flagship training-and-inference integrated AI accelerator card together with its in-house software stack, running stably and continuously for 400 steps on a dual-node, 16-card configuration. The vendor had previously delivered full training for a 236-billion-parameter foundation-science model, full-stack native training for a five-dimensional world model, and end-to-end training for an embodied-intelligence brain model. This progress has put a question at the center of industry attention: can domestic full-feature GPUs take on frontier large-model training?

    Three points are worth clarifying in this context:

    1. Training adaptation is a prerequisite for putting frontier models into real use. Frontier models are typically released as open weights along with open technical reports. To let developers reproduce them, continue pre-training, or fine-tune them, a compute platform has to make the full “model loading → distributed training → stable convergence” chain work on general-purpose hardware.
    2. Validating training is an order of magnitude more complex than validating inference. Inference only requires correct forward computation under a reasonable input distribution. Training requires every operator across the forward pass, backward pass, and parameter update to be correct, and the numerical behavior has to stay stable across a training run that lasts hours or even weeks.
    3. There is still a gap between “can train” and “works well.” Only when operator coverage, parallelism strategy, numerical stability, and the automation toolchain are all brought up to the same standard does training truly become “train out of the box.”

    1.1 Training Adaptation Is Not the Same as “Pre-training on This Chip”

    A common misreading in the industry goes like this: when a technical report lists validation results across multiple hardware platforms, people interpret it as the base model having been pre-trained on all of them. That is usually not the case, and it is worth distinguishing three kinds of work with different natures:

    Work type Core goal Typical validation Equivalent to base pre-training?
    Inference adaptation Make the model generate correct, efficient outputs on new hardware Inference operator coverage, precision alignment, throughput and latency No
    Training adaptation Make the model complete a full forward pass, backward pass, and parameter update on new hardware Training pipeline end-to-end, precision alignment, stable operation over hundreds to thousands of steps No
    Base pre-training Learn the model’s original weights from scratch over massive raw corpora Full pre-training data pipeline, training recipe, and compute scale Yes, and it must follow the official technical report

    Take publicly released model technical reports as an example: some validate several AI accelerator hardware paths at once and report the corresponding operator or parallelism results. Such work proves that “the training pipeline can run on this hardware,” not that the base model’s original weights were trained on it. Understanding this boundary matters for engineering teams:

    • When assessing a hardware platform’s training capability, focus on the depth of training adaptation—for example, how many classes of model structure it covers, how many steps it trains continuously, and whether gradient correctness was verified.
    • When assessing the model itself, rely on the compute and training recipe disclosed in the official technical report.

    1.2 The Three Layers of Training-Adaptation Capability

    Training adaptation is not a one-off action but an engineering process that deepens across three layers:

    • Operator layer: Cover every operator needed for the forward pass, backward pass, and parameter update, and ensure the numerical behavior under low precision matches the reference implementation.
    • Parallelism layer: Support combinations of data parallelism, tensor parallelism, pipeline parallelism, and expert parallelism, working efficiently with the collective communication library.
    • Stability layer: Control numerical anomalies during long runs, handle random failures, and guarantee checkpoint-based resumption, so that the training process is predictable and recoverable.

    The recently completed adaptation of the nearly 3-trillion-parameter open-source model is, at its core, a step that—on top of connecting the full pipeline at the operator and parallelism layers—further validates the stability layer.

    2. The Native FSDP2 Training Path: From Model Loading to Gradient Synchronization

    According to the vendor’s technical report, this adaptation built a native FSDP2 (Fully Sharded Data Parallel 2) multimodal training path that connects the full chain from model loading and shard scheduling to gradient synchronization. FSDP2 is also one of the parameter-sharding schemes widely adopted in large-model training today. Its training flow can be broken down into five stages.

    2.1 Model Loading: Sharded Construction to Avoid the Single-Card Memory Bottleneck

    A trillion-parameter-class model cannot fit its full weights on a single card, so the model is first built on a meta device (a device that holds only the structure, not the actual data) and then, per the sharding rules, the weights of each network unit are assigned to each training process. Weights are loaded in a sharded fashion as well: each process reads only the portion it is responsible for, avoiding the memory peak that comes from “load everything first, then split.”

    2.2 Shard Scheduling: Overlapping Computation and Communication

    Using sharding by Transformer layer as an example:

    • During the forward pass: Before entering a given layer, each process gathers the layer’s full weights via collective communication, then releases them immediately after use, keeping only the shard it holds.
    • During backpropagation: Each layer’s gradients go through a reduce-scatter operation, which sums the full gradients and then slices them, so each process receives only the slice it needs to update.
    • The scheduling key: Gathering the next unit’s parameters overlaps with the current unit’s computation, hiding as much communication overhead as possible beneath computation.

    2.3 Gradient Synchronization: Reduce First, Then Slice

    During the backward pass, each process obtains the local gradient for the shard it holds. After reduction completes, each process is responsible for updating the parameters it owns. This avoids the memory waste of traditional data parallelism, where every card keeps a full copy of the model and synchronizes the full set of gradients.

    2.4 Parameter Update: Sharded Parameters Work in Concert with Sharded Optimizer State

    Adaptive optimizers such as Adam must maintain first- and second-order moments for every parameter. Under the FSDP2 path, the optimizer state is sharded together with the parameters, so each process updates and maintains only the portion of parameters it is responsible for.

    2.5 The Training Loop, Illustrated

    The following illustrative pseudocode shows the core steps of the native sharded training path, including gradient clipping, abnormal-step skipping, and periodic checkpoint saving:

    1. # Illustrative pseudocode for the sharded training loop; interface names are used only to convey semantics
    2. # Initialization: build the model on a meta device -> shard it per the sharding rules -> load sharded weights
    3. # Optimizer state is sharded together with the parameters; each process only maintains the parameters it owns
    4. for step in range(start_step, total_steps):
    5. optimizer.zero_grad() # Clear the gradients from the previous iteration
    6. # Gradient accumulation: split into multiple micro-batches to reduce the per-step memory peak
    7. total_loss = 0.0
    8. for micro_batch in micro_batches:
    9. output = model(micro_batch.inputs) # Forward: gather sharded parameters on demand
    10. loss = compute_loss(output, micro_batch.labels)
    11. (loss / len(micro_batches)).backward() # Backward: reduce-scatter the gradients
    12. total_loss += loss.detach()
    13. mean_loss = total_loss / len(micro_batches)
    14. # Global gradient norm: reduced across all processes, used for clipping and monitoring
    15. grad_norm = clip_gradients(model, max_norm=max_grad_norm)
    16. # Numerical guard: skip this update on non-finite values to avoid corrupting the model weights
    17. if is_finite(mean_loss) and is_finite(grad_norm):
    18. optimizer.step() # Each process updates its local sharded parameters
    19. accepted_steps += 1
    20. else:
    21. optimizer.zero_grad()
    22. skipped_steps += 1
    23. # Periodically save checkpoints, supporting asynchronous write-out to reduce training stalls
    24. if step % save_interval == 0:
    25. save_checkpoint(step)

    3. What the Dual-Node, 16-Card, 400-Step Run Validated—and What It Did Not

    3.1 The Result: Numerically Valid Throughout

    The vendor ran a cross-node joint training test on 16 compute cards across two nodes. All 16 training processes completed 400 consecutive optimizer updates. Throughout the run, the loss values and gradient norms stayed finite, with no numerical overflow and no abnormal interruption.

    The phrase “400 consecutive optimizer updates” is worth noting: the optimizer performs an update only on steps that pass the numerical check, and steps with anomalies are skipped. So 400 updates mean the training produced valid progress continuously across 400 steps, rather than barely avoiding a crash.

    3.2 The Value: Short-Range Validation Is Still a Necessary Threshold

    Objectively, dual-node, 16-card, 400 steps is a small-scale, short-cycle validation, and it cannot substitute for conclusions from thousand-card, long-cycle training. But it does cover the following key aspects:

    • Model loading and sharding correctness: Whether the model can be built correctly per the sharding rules and whether weights can be loaded in a sharded fashion.
    • Cross-node collective communication: Whether parameter gathering and gradient reduction complete stably over the inter-node network.
    • Training-loop completeness: Whether the forward pass, backward pass, gradient clipping, and parameter update form a closed loop.
    • Early exposure of memory growth: Problems such as memory leaks and fragmentation usually surface within tens to hundreds of steps.
    • Initial proof of numerical stability: Finite loss and gradients indicate that the operators’ numerical behavior under low precision is basically reliable.

    3.3 Scenarios Not Yet Covered

    When scaling up to larger sizes, the following risks are often hard to expose in short-range validation:

    • Low-frequency abnormal operator paths: For example, operators triggered only by specific sequence lengths or specific modality combinations.
    • Very-long-cycle drift: Changes in numerical behavior as the learning-rate schedule moves into different phases.
    • Scale-related failures: At large scale, the probability of single-card failures and slow nodes rises markedly.
    • Combinations of parallelism strategies: The communication complexity that arises when tensor parallelism, pipeline parallelism, expert parallelism, and sharded data parallelism are stacked together.

    4. Numerical Stability Engineering: Keeping Loss and Gradients “Finite” Throughout

    “Finite throughout” may look like a basic metric, but behind it sits a full set of engineering mechanisms.

    4.1 Mixed Precision and Master Weights

    Large-model training generally uses mixed precision: the forward and backward passes run in low precision (such as BF16 or FP16) to boost throughput and reduce memory usage, while the master copy of the parameters and the optimizer state are kept in higher precision to preserve update accuracy. BF16 has the same number of exponent bits as FP32 and a large dynamic range, so it usually needs no loss scaling. FP16 has a smaller dynamic range, so it typically needs dynamic loss scaling together with overflow detection.

    4.2 Overflow Detection and Abnormal-Step Skipping

    A common implementation practice is: after backpropagation finishes, check whether the loss and gradients contain infinities or non-numeric values, and skip the parameter update for that step when they do. Illustrative logic:

    1. if not is_finite(loss) or not is_finite(grad_norm):
    2. # Skip the parameter update for this step; keep the existing weights and continue with the next batch
    3. optimizer.zero_grad()
    4. log_event("skip_step", step=step, loss=loss, grad_norm=grad_norm)
    5. continue

    4.3 Global Gradient Norm and Gradient Clipping

    Under sharded training, each process sees only part of the gradients, so the global gradient norm must be computed after reducing across all processes, and clipping must be applied uniformly based on it. This both suppresses abnormal spikes and provides an intuitive metric for monitoring.

    4.4 Key Monitoring Metrics

    It is advisable to bring the following metrics into real-time monitoring and set alerts for abnormal values:

    Metric Normal behavior Anomaly signals and troubleshooting direction
    Loss value Generally steady and decreasing, with small fluctuations A sudden jump or a sustained rise: check data quality, learning rate, and abnormal-step logs
    Global gradient norm Within a reasonable range, with no frequent spikes A sustained climb or frequent spikes: adjust the gradient-clipping threshold, or check loss scaling
    Loss scale factor (when FP16 is enabled) Stable over the long term A sustained decline or repeated resets: more low-precision numerical issues, so investigate overflow-prone operators
    Per-step time and throughput Steady, with small fluctuations One process noticeably slower: investigate slow nodes, data-loading bottlenecks, or communication jitter
    Memory usage Stable, or rising slowly and then leveling off A continuous climb with steps: investigate memory leaks and fragmentation
    Parameter consistency Fully consistent across shards once reassembled Deviations appear: investigate collective-communication correctness and shard-mapping logic

    5. The Engineering System: From “Fast Inference Deployment” to “Full-Chain Stable Training”

    The vendor states that it has built a mature engineering system capable of supporting frontier, complex large models across the whole path from “fast inference deployment” to “full-chain stable training.” This statement points to a complete path of capability evolution that can be broken into four pillars.

    5.1 Operator Adaptation: From “It Runs” to “It Computes Accurately”

    • Coverage-list management: Enumerate every operator involved in the model structure, and mark its support status across the three categories of forward, backward, and parameter update.
    • Precision-alignment testing: Compare the forward outputs and backward gradients of the domestic hardware against the reference implementation layer by layer, keeping the error within an acceptable range.
    • Boundary-case coverage: Run dedicated tests for boundary scenarios such as extreme sequence lengths and special numeric inputs.

    5.2 Multi-Card Coordination: From a Single Machine to Cross-Node

    • Communication-library adaptation: Collective communication primitives must be implemented efficiently on the hardware and network, and support topology-aware optimizations such as hierarchical communication.
    • Computation-communication overlap: Let parameter gathering and gradient reduction overlap fully with computation to reduce communication wait time.
    • Topology-aware scheduling: Arrange parallel splitting in light of the difference between high-bandwidth intra-node interconnects and inter-node network bandwidth, to reduce cross-node communication volume.

    5.3 Automation Toolchain: Turning Experience into Process

    • Checkpoint automation: Periodic saving and asynchronous write-out, compatible with the training framework’s native checkpoint format.
    • Fault tolerance and automatic recovery: Automatically relaunch a process after an abnormal exit and resume from the most recent checkpoint.
    • Automated smoke testing: After each software-stack update, automatically run small-scale training cases to catch regressions early.
    • Performance profiling: Automatically collect the time spent across communication, computation, and data-loading stages to locate bottlenecks.
    • Observability: Centrally collect metrics through logging services and monitoring alerts, so that anomalies reach on-call staff promptly.

    In cloud environments, general-purpose compute platforms (such as Baidu AI Cloud) typically provide general capabilities such as containerized scheduling, object storage, logging services, and monitoring alerts. These can be used to host distributed training jobs, store checkpoints and training data, and centrally aggregate runtime metrics.

    5.4 Developer Usability

    The ultimate goal of the engineering system is to lower the barrier to use: complete documentation, example configurations, and one-click launch scripts are in place, and common model structures can run without modifying the model code.

    6. The Path to Scale: From Hundred-Card Validation to Trillion Parameters

    6.1 Combined Parallelism Strategies Are the Prerequisite for Scaling

    • Parameter sharding solves the memory-capacity problem.
    • Tensor parallelism splits a single layer’s computation across multiple cards, easing the compute and memory pressure on any one card.
    • Pipeline parallelism splits the model by layer across different stages, and requires carefully designed micro-batch scheduling to reduce pipeline bubbles.
    • Expert parallelism distributes the experts in a mixture-of-experts model across processes, and requires focused optimization of communication operations such as all-gather and reduce-scatter.

    Trillion-parameter models often need several parallelism strategies stacked together. Their communication patterns are complex, placing extremely high demands on the coordination of hardware interconnects and the communication library.

    6.2 Failures Become the Norm: Fault Tolerance Determines Effective Training Time

    The larger the scale, the higher the probability of hardware failures or process anomalies per unit time, and the effective-training-time ratio (Goodput) drops noticeably. A mature fault-tolerance system typically includes:

    • Shortening the checkpoint-saving interval to reduce the loss caused by rolling back after a failure.
    • Automatically identifying and isolating faulty nodes, and reassembling the training job from healthy nodes.
    • Detecting and replacing slow nodes to avoid the whole cluster being dragged down.

    6.3 From Validation Scenarios to General Scenarios

    The landing of the nearly 3-trillion-parameter model adaptation rests on practical experience accumulated across three kinds of training scenarios:

    1. From-scratch, full training of a foundation-science model, which validated the long-duration training capability for general Transformer-class structures.
    2. Full-stack native training of a world model, which validated the processing and training capability for multimodal, multi-dimensional spatiotemporal data.
    3. End-to-end training of an embodied-intelligence brain model, which validated the training pipeline for multimodal perception and decision-making models.

    Different scenarios place different demands on operator coverage, data pipelines, and parallelism strategies, and the accumulation of this experience is precisely the foundation that supports trillion-parameter model adaptation. At present, the vendor is working with partners to advance the training of trillion-parameter-class models.

    7. Conclusion: From “It Can Train” to “Train Out of the Box”

    From operator adaptation to multi-card coordination, and on to the automation toolchain, “train out of the box” can be broken into five progressive stages:

    1. It can load.
    2. It can run.
    3. It can train stably.
    4. It can scale with fault tolerance.
    5. Train out of the box: ready to use as-is, no tuning required, with automatic recovery.

    The stable 400-step run on a dual-node, 16-card setup means that domestic full-feature GPUs have cleared the two thresholds of “can run” and “can train stably.” But to truly reach “train out of the box,” there is still a need to keep accumulating long-duration, unattended training data at thousand-card and larger scales, and to make fault tolerance, monitoring, and usability default capabilities. For developers and enterprises, when assessing a domestic compute platform’s training capability, rather than looking only at peak single-card compute, it is more worthwhile to focus on four metrics: how complete the training pipeline is, how many steps and how much time it can train stably and continuously, its fault-recovery capability, and how many steps it takes to go from obtaining the model to launching training.