Domestic GPU Training Adaptation for a Near 3-Trillion-Parameter Flagship Model: A Full-Pipeline Analysis

    A domestic GPU vendor reports completing the training adaptation of a flagship large model approaching 3 trillion parameters, running 400 consecutive optimizer updates across a dual-node, 16-card setup while loss and gradient norm stayed finite throughout. This article clarifies how training adaptation differs from inference access and from actual pretraining, then breaks down the adaptation pipeline across four layers—operators, parallelism, numerics, and engineering. It walks through a native FSDP multimodal training path, explains the methodology behind the 400-step stability check, and offers a reusable validation matrix, common numerical troubleshooting steps, and engineering practices for moving from "can train" to "trains accurately and stably."

    Introduction: Why One Training Adaptation Is Worth Attention

    A domestic GPU vendor recently announced it had completed the training adaptation of a flagship large model with a parameter scale approaching 3 trillion. Built on flagship training-and-inference compute cards and a self-developed software stack, the setup ran 400 consecutive optimizer updates in a dual-node, 16-card environment, with the loss value and gradient norm staying finite throughout, without numerical overflow or abnormal interruption.

    The news quickly split industry discussion into two camps. One held that domestic chips could finally “train large models.” The other asked whether this was training adaptation or merely inference access, and whether a successful adaptation meant the base model’s pretraining actually happened on such chips. Both camps point to the same question: how to understand the technical meaning and capability boundary of domestic GPU training adaptation. This article first clarifies the concepts, then breaks down the adaptation pipeline along the thread of “operators—parallelism—numerics—engineering,” and summarizes reusable deployment methods.

    1. Clarifying the Concepts: Training Adaptation, Inference Access, and Where Pretraining Compute Comes From

    Training adaptation: letting a model “learn from scratch”

    The goal of training adaptation is to fully and correctly execute a model’s forward computation, backward propagation, and optimizer updates on domestic GPUs and their accompanying software stack, and to run stably over long periods. Its core is numerical correctness and runtime stability. Key metrics include whether the loss curve decreases normally, whether gradients and optimizer states are effective, and whether overflow or interruption occurs during long runs.

    Inference access: letting a model “deploy”

    Inference access focuses on model loading, operator replacement, quantization, and throughput/latency. It is essentially a performance verification of forward computation on the target hardware. As long as operator results match within tolerance, an inference service can go live. Inference access is therefore usually lighter than training adaptation; many models can complete it within weeks.

    Why the two cannot be conflated

    There is precedent in the industry. One DeepSeek model technical report validated two different accelerator architectures side by side, and the validation target was a fine-grained expert-parallel scheme. The industry generally regards this as inference-side operator and parallelism strategy validation; officially it did not make clear where the base model’s original pretraining compute came from. This shows that “running or validating a model on a chip” and “pretraining a model with that chip” are two different propositions. To judge whether a training adaptation is truly complete, look at the following evidence:

    • Whether the complete forward and backward gradients are correct;
    • Whether optimizer updates are effective and loss decreases stably;
    • Whether multiple cards and multiple nodes stay consistent;
    • Whether training of tens of thousands of steps or longer cycles can be completed within acceptable time.

    2. The Four-Layer Capability Model of Domestic GPU Training Adaptation

    Table 1. The four levels of training adaptation

    Level Core goal Key question Typical acceptance method
    Operator layer Numerical correctness, performance targets Whether operators are complete, whether precision is aligned Operator-by-operator comparison, automatic differentiation checks
    Parallelism layer Model fits, smooth inter-card coordination Sharding strategy, communication-computation overlap Memory footprint, scaling efficiency
    Numerical layer No divergence over long training Mixed precision, overflow, loss spikes Consecutive-step loss and gradient norm
    Engineering layer Reproducible, recoverable, operable Checkpoint resumption, monitoring, fault localization Fault injection, checkpoint comparison

    Operator layer: the starting point of adaptation

    The basic skeleton of modern large models is the Transformer. Its operator system covers matrix multiplication, LayerNorm/RMSNorm, Softmax, attention, activation functions, and various collective communications. At the trillion scale it also involves routing, gating, expert dispatch and aggregation, attention slicing in context parallelism, and more. Operator adaptation usually goes through three steps: “functional availability—precision alignment—performance tuning”:

    • Functional availability: ensure operators are callable, with correct result shapes and semantics;
    • Precision alignment: compare element by element against the reference implementation under the same inputs, with error falling within the acceptable range for low-precision formats such as bf16;
    • Performance tuning: optimize the implementation for the memory hierarchy and compute-unit characteristics of the domestic GPU.

    Operator adaptation is the starting point of the entire pipeline; every subsequent layer is built on operator correctness.

    Parallelism layer: deciding whether the model “fits and runs fast”

    Parallelism Sharding target Main communication primitives Adaptation challenges
    Data parallelism (DP) Input batch Gradient AllReduce Single-card memory limit; hard to support large models alone
    Fully Sharded Data Parallel (FSDP) Parameters, gradients, optimizer states AllGather, ReduceScatter Frequent communication; depends on computation-communication overlap
    Tensor parallelism (TP) Weight matrices within a layer AllReduce, AllGather, AllToAll Sensitive to inter-card bandwidth; operators need rewriting
    Pipeline parallelism (PP) Model stages split by layer P2P send/receive Pipeline bubbles; recompute and activation memory management
    Context parallelism (CP) Sequence dimension Ring/AllGather-style attention communication Causal masks and positional encodings must be handled correctly
    Expert parallelism (EP) MoE expert groups AllToAll Uneven routing causes load skew

    In ten-thousand-card clusters, a common practice is to combine multiple parallelism modes into three-dimensional or higher-dimensional parallelism.

    Numerical layer: the real “watershed”

    Memory and compute decide whether the model “can start running”; numerical stability decides whether it “can keep running.” Large-model training uses a mixed-precision scheme that combines low-precision computation with a high-precision master copy, but the following factors can still trigger numerical anomalies:

    • Extreme values of attention logits;
    • Variance estimation bias in normalization layers;
    • Accumulated error from long sequences.

    These can cause loss spikes, or even turn directly into NaN or Inf.

    Engineering layer: turning one success into a repeatable capability

    Getting a single run working often relies on a great deal of manual debugging; the point of engineering is to turn this “chance” into a “certainty.” It includes checkpoint resumption, training monitoring, fault self-healing, performance profiling, configuration and version management, and more, directly determining whether a training job can run safely for weeks or even months.

    3. Core Path Analysis: The Native FSDP Multimodal Training Pipeline

    In this adaptation, the vendor focused on building a “native” FSDP training path that connected the full pipeline from model loading and sharding scheduling to gradient synchronization. By “native,” it means training directly on the framework’s native sharded data parallel capability, rather than resorting to compromises such as “train on a single card and then stitch the pieces together.”

    The core mechanism of FSDP

    FSDP (Fully Sharded Data Parallel) shards the parameters, gradients, and optimizer states of each compute unit, with each card holding only a part:

    1. Forward phase: AllGather the complete parameters on demand, then immediately release the non-local shards after computation;
    2. Backward phase: AllGather the parameters again, then ReduceScatter the gradients to each shard owner after computing them;
    3. Update phase: Each card updates only the parameter shards it is responsible for.

    Compared with the approach of “storing complete parameters on each card and only sharding optimizer states,” FSDP yields greater memory savings. The cost is more frequent communication, which must rely on strategies such as prefetching, computation-communication overlap, and bucketing to hide communication overhead beneath computation.

    Additional challenges of the multimodal training path

    Multimodal training is not as simple as “a text model plus a vision encoder”:

    • Freezing and unfreezing: the vision encoder is often frozen for the first several steps and then unfrozen; FSDP must correctly switch the gradient behavior of the corresponding parameter shards;
    • Loss composition: text loss and contrastive loss are usually combined with weights, and the data ratio of each modality differs, which easily causes training instability;
    • Dynamic resolution: image sizes vary, causing differences in per-card compute time, which requires load balancing and dynamic batching;
    • Attention masks: mixed image-text sequences require correct masks and positional encodings.

    The value of this native path lies in converging the above complexity into unified handling at the framework level. This is also one of the typical technical routes of current domestic GPU training adaptation.

    Training pipeline illustration

    1. # Illustrative pseudocode: only to explain the stages of the FSDP training pipeline, not the real API of any specific framework
    2. # 1. Model loading: load base weights, complete dtype and device mapping
    3. model = load_base_model(path="...", dtype="bfloat16")
    4. # 2. Sharding scheduling: wrap by Transformer layer, balancing memory and communication efficiency
    5. model = wrap_with_fsdp(
    6. model,
    7. wrap_policy=transformer_layer_policy,
    8. sharding_strategy="FULL_SHARD", # shard all three: parameters/gradients/optimizer states
    9. backward_prefetch=True, # prefetch the next compute unit's parameters ahead of time
    10. limit_all_gathers=True, # control peak memory
    11. )
    12. optimizer = build_optimizer(model) # optimizer states are sharded along with parameters
    13. # 3. Data loading: multimodal samples mixed and sampled, balanced by token count to reduce inter-card idle wait
    14. loader = build_multimodal_dataloader(mix_ratio={"text": 0.8, "image": 0.2})
    15. # 4. Training main loop
    16. for step, batch in enumerate(loader):
    17. loss = weighted_loss(model(batch)) # forward: AllGather parameters
    18. loss.backward() # backward: ReduceScatter gradients
    19. grad_norm = clip_gradients(model, 1.0) # gradient clipping to suppress spikes
    20. if not isfinite(loss) or not isfinite(grad_norm):
    21. raise NumericalError(step) # early stop, avoid training idling in NaN
    22. optimizer.step() # local shard update
    23. optimizer.zero_grad()
    24. if step % 50 == 0:
    25. save_shard_checkpoint(step) # sharded save, supporting checkpoint resumption

    4. Stability Verification: The Methodology Behind 400 Consecutive Updates

    The vendor disclosed that in a dual-node 16-card environment, 16 training processes completed 400 consecutive optimizer updates, with loss and gradient norm staying finite throughout, without overflow or interruption. The 400 steps cannot be directly converted into how many tokens, nor do they prove that ten-thousand-card scale is necessarily stable, but it is a typical and effective “smoke test” stage in training adaptation, with three specific values.

    Crossing the “initial blow-up point” and testing long-range effectiveness

    The early stage of training is the most numerically unstable: learning-rate warmup, optimizer second-order momentum accumulating from zero, and the attention distribution not yet converged. If adaptation stops at “forward output matches the reference implementation,” it often gradually exposes gradient scale anomalies or loss spikes after several hundred steps. 400 consecutive steps without interruption show that the computation graph remains self-consistent under dynamic evolution.

    Validating communication topology across nodes

    Running on a single machine does not mean it runs across multiple machines. Cross-machine scenarios introduce new variables such as the inter-machine network, the connection setup and bucketing strategy of collective communication libraries, and inter-process initialization order. The dual-node 16-card validation covers the scenario of data parallel groups spanning nodes—the smallest-granularity “cross-node joint training.”

    Defining a reproducible acceptance baseline

    Fixing “loss and gradient norm finite within N steps, with no abnormal exit” as an acceptance standard allows horizontal comparison of adaptation work across different chips and software stack versions.

    Stage Scale Core validation content Pass criteria (example)
    ① Operator check Single card / single machine Operator numerical comparison, gradient check Error within precision tolerance
    ② Single-step equivalence Small scale Step-by-step comparison of loss and gradient against the reference implementation Per-step deviation within tolerance
    ③ Long-range smoke test Dual-node 16-card level Consecutive several-hundred optimizer updates Loss and gradient norm finite, no interruption
    ④ Scaling validation Larger scale Scaling efficiency, checkpoint resumption consistency Loss curve after resumption matches continuous training

    5. From “Can Train” to “Trains Accurately”: Numerical Stability and Tuning Practices

    Key observation metrics

    • Loss value: whether it decreases steadily overall, and whether there are sudden spikes;
    • Gradient norm: the global norm before and after clipping, and whether it keeps increasing;
    • Parameter difference before and after the update: whether the optimizer is truly effective;
    • Throughput and memory: per-card tokens/s and peak memory, to judge whether the run is healthy.

    Common numerical problems and responses

    Symptom Common cause Response approach
    Loss spikes Abnormal individual batches, learning rate too high Data cleaning, lower learning rate, skip that step’s update on a spike
    Gradient norm keeps increasing Learning rate too large, missing warmup Warmup schedule, gradient clipping, weight decay
    Direct NaN/Inf Low-precision overflow, division by zero, abnormal logits High-precision master copy, loss scaling, numerically stable Softmax
    Large fluctuation in multimodal training Large difference in per-modality loss magnitude Loss weighting, modality ratio adjustment, staged unfreezing
    Loss jump after resuming training Optimizer state or data order not aligned Save RNG state and data read position, fix deterministic configuration

    Troubleshooting flow illustration

    1. loss / grad_norm anomaly appears
    2. │
    3. ▼
    4. Keep the most recent healthy checkpoint
    5. │
    6. ▼
    7. Output per-layer gradient norm statistics to locate the anomalous layer ──► Operator implementation issue: single-operator comparison + gradient check
    8. │ Mixed precision issue: raise compute precision of key layers
    9. │ Data issue: locate anomalous samples and data batches
    10. ▼
    11. Roll back to the checkpoint, retrain-verify with a small number of steps after adjustment
    12. │
    13. ▼
    14. Observe for consecutive multiple steps, confirm the curve recovers to stability, then scale up

    6. Engineering System: Making Stable Training Reproducible

    Single-run stability does not equal long-term stability. The vendor emphasized that it has built a mature engineering system capable of supporting frontier complex large models from “fast inference deployment” to “full-pipeline stable training.” A complete engineering system usually includes the following modules:

    • Checkpoint resumption: parameters, gradients, optimizer states, RNG states, and data read position are all persisted to disk, with sharded storage to shorten save time. The loss curve after resumption should largely overlap with uninterrupted training;
    • Observability: metrics collection, logs, and visualization dashboards present each rank’s loss, gradient norm, throughput, and memory in a unified way, with anomaly alerts;
    • Fault localization: going from “error message” to “root cause” requires correlating the abnormal step, the corresponding data batch, and per-layer gradient statistics, rather than seeing only a “Loss is NaN”;
    • Performance profiling: distinguish among three kinds of overhead—compute, communication, and data loading—and locate whether the bottleneck comes from AllGather/ReduceScatter or from slow data loading;
    • Automated toolchain: covering operator adaptation, sharding configuration generation, mixed-precision strategy recommendation, and hyperparameter and parallelism strategy search, to reduce manual trial and error.

    7. Deployment Landscape: The Parameter Ladder from Tens of Billions to Trillions

    From public information, the domestic GPU practice of “domestic chips training domestic models” unfolds roughly along a parameter-scale ladder:

    1. Tens-of-billions to hundreds-of-billions dense models: on a base model (236 billion parameters), completed full training from scratch, validating the completeness of the basic training pipeline;
    2. Frontier new-paradigm models: supported the full-stack native training of a 5D world model, showing that adaptation capability is extending toward new structures such as multimodal and strong spatiotemporal modeling;
    3. Embodied intelligence models: jointly with a research institution, completed the full-pipeline training of an embodied brain model, bringing training capability into embodied intelligence scenarios that integrate “model—data—simulation—deployment”;
    4. Trillion-parameter models: relevant partners are currently advancing training at this scale, where the mixture-of-experts architecture, expert parallelism, and ultra-large-scale communication will be the main challenges.

    The significance of this ladder is that each leap checks and strengthens different capabilities: dense models check the basic pipeline, multimodal models check heterogeneous data and loss design, embodied models check end-to-end engineering coordination, and trillion-scale models test parallelism strategy and fault tolerance.

    8. Conclusion: Toward “Out-of-the-Box Training”

    Domestic GPU training adaptation is going through an evolution in three stages:

    • 1.0 Can train: operator coverage and precision alignment; the model can run;
    • 2.0 Trains accurately: loss converges normally and stays consistent with the reference implementation’s curve;
    • 3.0 Trains stably and fast: runs long-term without interruption, with reasonable scaling efficiency and an automated toolchain.

    From “dual-node 16-card, 400 steps” to “out-of-the-box training,” operators, multi-card coordination, and automated toolchains still need continuous polishing. For developers and enterprises evaluating whether domestic compute can take on training tasks, they should not only look at “whether it runs,” but should verify item by item against the validation matrix in this article across the four dimensions of operators, parallelism, numerics, and engineering. As the industry ecosystem gradually matures, domestic cloud vendors such as Baidu AI Cloud are also continuously improving their support for diverse heterogeneous compute, offering richer options for training compute.