Large Model Training Adaptation on Domestic GPUs: Key Technical Points

    This article explains what training adaptation for large models on domestic GPUs actually involves, and why it is distinct from both inference adaptation and pretraining a model on a given chip. It walks through the core technical challenges of training—broader operator coverage, distributed collective communication, mixed-precision numerical stability, and state management—then breaks down what a disclosed two-node, 16-card, 400-update test really proves. A staged validation framework (L0–L6) shows how to move from "it runs" to "it trains stably over the long term," and the article closes with the numerical-stability and engineering practices needed for long stable training and reusable, out-of-the-box support.

    Note: The adaptation progress described here comes from vendors’ public disclosures, and the example scenarios are for technical illustration only. The pseudocode illustrates the general structure of a training loop; the function names are indicative and do not represent any specific product or framework’s API.

    1. A commonly misread premise: training adaptation is not the same as completing pretraining

    A domestic full-featured GPU vendor recently announced that, built on its self-developed unified compute architecture and a flagship training-and-inference compute card, it had completed training adaptation for a flagship open-source large model with close to 3 trillion parameters. The test ran 400 consecutive optimizer updates on a two-node, 16-card configuration. News like this makes it easy to assume that “domestic chips have already trained trillion-scale models.” Before diving into the technical analysis, it is worth separating a few concepts that are often conflated.

    • Day 0 adaptation: On the day a new model is released, load and run it on the target platform. The focus is “does it run, and are the results correct,” and the deliverable is usually an inference deployment.
    • Training adaptation: Make the model’s full training pipeline—forward pass, backward pass, gradient synchronization, parameter updates, checkpoint saving and restoration—run correctly on the target platform, verified for numerical consistency.
    • Full-link stable training: The training process can run continuously for a long time, with loss decreasing steadily, no numerical overflow, communication timeouts, or task interruptions, and with fault-recovery capability.
    • Pretraining on a chip: The model’s base weights are trained primarily on that chip’s training cluster. This is a matter of training scale and resource investment; it must be based on an official technical report or statement and cannot be inferred from a successful adaptation.

    There are comparable cases in the industry. One open-source model’s technical report presents operator-level validation completed on different types of accelerators, but the public material does not state where the compute for its base pretraining came from. This shows that “a chip running a model” and “a chip training a model” are fundamentally different things. It is worth stressing that training adaptation is a necessary step for domestic compute to participate in large-model training; this article is about how to do it well, not about dismissing its value.

    2. Why training adaptation is much harder than inference adaptation

    Inference is a one-way computation: load the weights, run the forward pass layer by layer, and produce an output. Training adds a backward pass and a set of state that must be maintained over the long term, and the difficulty multiplies accordingly.

    1. Much broader operator coverage
    Beyond forward operators, training needs the corresponding backward operators. Take attention as an example: besides computing gradients with respect to the query, key, and value, the backward pass must cache the attention probability matrix, which uses significantly more memory than inference. There are also weight-gradient accumulation, the gradient formulas for normalization layers, and the backward implementations of fused Softmax and cross-entropy operators, among others. A single missing operator forces a fallback to a generic compute path, and the result is that training either fails to start or slows down considerably.

    2. Distributed collective communication must be correct
    Inference usually does not involve gradient synchronization; training requires gradient reduction within the data-parallel group, communication between adjacent stages in pipeline parallelism, and intra-layer communication in tensor parallelism—all of which must be accurate. A reduction error does not fail the program immediately; instead, the loss curve quietly drifts from what is expected, and it is often a long time before the problem is noticed.

    3. Numerical stability under mixed precision
    Training and inference typically use different numerical precisions. Training generally uses half-precision computation together with fp32 master weights and optimizer states. Error accumulates during gradient accumulation and reduction, and once it exceeds the representable range, NaN or Inf appears and the whole training run collapses.

    4. Complex state management
    Training must maintain model weights, gradients, optimizer momentum, learning-rate scheduler state, and the data read position. Long stable training also requires checkpoint resume; if training is interrupted, it cannot simply start over from the beginning.

    This also explains statements like “native multimodal training path”: when a model contains encoders and decoders for different modalities such as language and images, each part has different operator requirements, data preprocessing, and parallelization strategy. Verifying only one modality does not amount to complete adaptation.

    3. Two nodes, 16 cards, 400 updates: what was actually verified

    The vendor’s disclosed test setup was as follows: two nodes and 16 cards in total, with 16 training processes training jointly across the nodes and completing 400 consecutive optimizer updates. Throughout, both loss and gradient norm stayed finite, with no numerical overflow or abnormal interruption. Breaking these numbers apart reveals more information than appears at first glance.

    (1) Cross-node joint training is the core verification point
    Single-machine multi-card training relies on high-bandwidth interconnects, whereas cross-node training depends on the data center network. The volume of data in gradient reduction is roughly proportional to the number of parameters multiplied by the per-card parameter shard size, and the efficiency of cross-node communication is largely determined by network topology (such as rail-optimized networking), the communication library implementation, and the compute-communication overlap strategy.

    Another easily overlooked detail: distributing 16 processes across 2 nodes means each node must bear 8 processes and their memory overhead. A single 8-card machine and two 8-card machines sit in fundamentally different “communication domains.” So “it runs on a single machine” is not the same as “it runs across nodes.”

    (2) The significance of 400 updates lies in “continuous stability,” not in “a large number”
    By step count alone, 400 steps is only a small-sample validation. Its value is that it shows training was not just a few occasional steps but sustained over a continuous time window, with numerics staying healthy and the pipeline never breaking. These problems often surface only after tens to hundreds of steps:

    • After learning-rate warmup ends, the magnitude of parameter updates grows and numerical boundaries are easier to hit;
    • Extreme samples in the dataset and gradient spikes begin to accumulate;
    • After memory is occupied for a long time, memory fragmentation gradually appears.

    So 400 consecutive stable steps can serve as staged validation of training adaptation, but it does not directly equate to long stable training at thousand-card or ten-thousand-card scale.

    (3) Choosing the right metrics to observe
    “Loss and gradient norm stay finite throughout” actually captures the two most important signals of training health: loss reflects whether the model is learning effectively, and gradient norm reflects whether the backward pass and gradient synchronization are working correctly. For a more complete assessment, I recommend also recording:

    • The gradient norm before clipping and the number of times clipping is triggered;
    • Gradient consistency across the parallel groups;
    • Single-step time and its fluctuation;
    • Peak memory usage;
    • The share of communication time in the total single-step time.

    (4) Models with ~3 trillion parameters usually contain many shared or specialized modules
    These models typically use a mixture-of-experts (MoE) or parameter-sharing structure, in which only some parameters are activated in the forward pass for each token. For training adaptation, this means:

    • The router, expert parallelism, and the load-balancing auxiliary loss must all be correctly implemented;
    • The all-to-all communication introduced by expert parallelism places higher demands on the network;
    • Different parallelism dimensions must be coordinated with memory-capacity constraints.

    Training adaptation for this kind of model is, in itself, a test of the platform’s overall capabilities.

    4. Staged adaptation validation: from “it runs” to “it trains stably over the long term”

    The phrase “native fully-sharded data parallel (FSDP) multimodal training path” refers precisely to the core capabilities of the “end-to-end training” and “small-scale multi-card / cross-node” stages in the table below.

    Fully-sharded data parallelism: parameters, gradients, and optimizer states are all sharded along the data-parallel dimension, so each card stores only its own share and parameters are reassembled layer by layer before training begins. This significantly reduces per-card memory pressure but raises the requirements on communication frequency and bandwidth.

    Stage Validation goal Key checkpoints Pass criteria (illustrative; model-specific)
    L0 Environment baseline Consistent software stack and hardware state Inter-card bandwidth/interconnect; single-node and cross-node collective-communication benchmarks Bandwidth reaches the expected level for the hardware spec; benchmarks are reproducible
    L1 Operator level Correct forward and backward operators Per-operator numerical comparison against a reference implementation Single-operator error stays within the agreed tolerance
    L2 Single-card end-to-end The model can train end to end Forward, backward, optimizer update, checkpoint save/restore Loss aligns step by step with the reference implementation
    L3 Small-scale multi-card Distributed correctness Gradient-reduction result compared against single-card result; tensor/pipeline parallelism Parameter-update results match, or differences stay within statistical error
    L4 Cross-node Network and topology adaptation Cross-node collective communication, compute-communication overlap, node-affinity scheduling Communication is not the bottleneck; scaling efficiency meets expectations
    L5 Long stable + fault injection Long continuous training Checkpoint resume; recovery after a card failure or a process anomaly; slow nodes Automatic recovery with continuous loss after resume
    L6 Scale extension Trillion-parameter model Parallel-strategy tuning; memory and communication balance Reaches the target scale and stays stable

    A few additional notes:

    • Get it running on a single card before discussing distributed training: running 2–3 steps on a single card exposes operator-level problems early.
    • Distributed consistency validation needs a reference: at small scale, “multi-card results equal single-card results” is strong evidence that collective communication is correct—provided the model structure and data order stay the same.
    • Rerun the baseline at every larger scale: changes in scale often expose new bottlenecks.

    Illustrative pseudocode (for showing the general structure only):

    1. # Illustrative pseudocode; function names and APIs do not represent any specific product
    2. model = sharded_parallelize(
    3. build_model(config), # Model definition (language/vision and other multimodal modules)
    4. strategy="full_shard", # Params, gradients, and optimizer states fully sharded
    5. )
    6. optimizer = AdamW(model.parameters(), lr=base_lr)
    7. for step in range(max_steps):
    8. batch = next(iterable_loader) # Data comes from an iterable streaming reader
    9. with no_sync_if_accumulating(): # Skip reduction during gradient accumulation to cut communication
    10. output = model(batch)
    11. loss = compute_loss(output, batch.target)
    12. # Anomaly check: loss and gradient norm must be finite
    13. if not is_finite(loss):
    14. raise TrainingError(f"step={step} loss is not finite")
    15. loss.backward()
    16. grad_norm = clip_grad_norm(model.parameters(), max_norm=1.0)
    17. optimizer.step()
    18. optimizer.zero_grad(set_to_none=True)
    19. log_metrics(step, loss=loss.item(), grad_norm=grad_norm,
    20. throughput=tokens_per_sec(), peak_mem=max_memory())
    21. if step % ckpt_interval == 0:
    22. save_checkpoint(model, optimizer, dataloader_state, step)

    Three details in this code are worth highlighting:

    1. Skipping gradient reduction during gradient accumulation: For memory-constrained large models, gradient accumulation is a common technique, and the semantics of “reducing only on the last micro-batch” must be implemented correctly by the training framework; otherwise, gradients are reduced repeatedly.
    2. Putting anomaly detection up front: Checking whether loss is finite before the backward pass lets you stop before the problem grows and preserves diagnostic information.
    3. Saving the checkpoint together with the data-loader state: If the data position cannot be restored on resume, the model will re-consume or skip samples, which affects convergence.

    5. Numerical stability: the key to long stable training

    “Full-link stable training” comes down to numerical stability. Common measures include:

    • Precision strategy: half-precision computation, fp32 master weights and optimizer states, and keeping fp32 for computations that are sensitive to accumulation.
    • Gradient clipping: keeping the global gradient norm within a threshold to prevent anomalous samples from causing parameter jumps.
    • Learning-rate warmup: avoiding overly aggressive parameter updates early in training.
    • Auxiliary loss for mixture-of-experts models: the load-balancing loss must be scaled correctly for the expert-parallel size; otherwise, routing tends to collapse onto a few experts.
    • Edge cases in multimodal data: empty images, missing modalities, and very long sequences can each trigger a numerical problem at some step.

    It is worth noting that a NaN is often only the “result,” while the real cause may lie in the data, an operator, or the communication. I recommend building a layer-by-layer traceback mechanism that goes from loss, gradient norm, and per-layer activation statistics down to the specific data batch.

    6. From “it can train” to “ready to train out of the box”: the engineering support system

    A single successful adaptation is a “project”; what can be reused repeatedly is a “capability.” Aiming at the goal of moving “from fast inference deployment to full-link stable training,” an engineering system usually contains the following modules:

    1. Reproducible experiment management
    Fix the random seed and save an environment snapshot (software-stack versions, card model, topology information) so that every experiment is traceable and comparable.

    2. Automated validation pipeline
    Turn the L0–L6 stages from Section 4 into automated tests that run regression automatically after a model or software-stack update, avoiding the “fixed A, broke B” situation.

    3. Observability
    Set up a unified dashboard and alert thresholds for loss, gradient norm, memory, communication time, and single-step time. Using general cloud capabilities such as a container platform, object storage, monitoring and alerting, and logging services, a team can build an observable long-stable training environment without maintaining a full monitoring stack on its own.

    4. Checkpoints and fault tolerance
    Save checkpoints periodically, support asynchronous saving and checkpoint resume, and automatically restart the task and restore state when a process or node fails.

    5. Performance profiling and bottleneck localization
    Combine the single-step time breakdown (compute, communication, data read) with communication-operator timing analysis to determine whether the bottleneck is in the operators, the communication, or data supply.

    7. The levels and verifiable boundaries of “domestic chips training domestic models”

    Domestically, there are already public results of “training domestic models with domestic chips,” which fall into roughly the following categories:

    • Complete training from scratch: for example, a 236-billion-parameter scientific foundation model trained from randomly initialized weights all the way to convergence;
    • Full-stack native training of a new architecture: for example, a 5D world model, which involves modeling across spatiotemporal dimensions;
    • End-to-end training for embodied intelligence: for example, the full-pipeline training of an embodied “brain” model.

    These cases show that domestic chips can now take on base-model training, the hardest task. But each category of case has a different scope of applicability: an adaptation validation targets a specific model, whereas “ready to train out of the box” calls for a reusable, general-purpose capability. To judge whether a platform has reached “ready to train out of the box,” check the following:

    • Whether validated training templates exist for mainstream model structures (dense, mixture-of-experts, multimodal);
    • Whether ready-to-use parallel strategies and hyperparameter references are provided;
    • Whether an automated regression and fault-recovery mechanism is in place;
    • Whether publicly verifiable stability metrics exist, rather than a one-time demonstration result.

    Conclusion

    There are four stretches of road between “two nodes, 16 cards, 400 optimizer updates” and “ready to train out of the box”: larger scale, longer duration, broader model coverage, and more complete engineering support. For developers, rather than focusing on conclusions like “some chip ran some model,” it is better to build a validation process of your own: first a single card, then a small scale, then cross-node, then long stable, and finally scale. Write down the criteria for each step clearly, and you will have a solid basis for long stable training on domestic compute, as well as a way to judge whether a given adaptation solution truly suits your business.