Training Large Models on Domestic GPUs: 16 Cards Across Two Nodes, 400-Step Stability Validation

    This article examines a recent milestone in which a domestic GPU vendor completed training adaptation for a flagship open-source large model with close to 3 trillion parameters, running 16 accelerator cards across two servers for 400 consecutive optimizer updates without numerical overflow or interruption. It clarifies the difference between inference deployment, training adaptation, and base-model pretraining; breaks down the four links of a full-pipeline distributed training run built on FSDP (model loading, shard scheduling, gradient synchronization, and parameter updates); explains why sustained multi-step stability matters more than a single successful step; and offers a practical framework of metrics and troubleshooting guidance for evaluating and maintaining long-run training stability. It also maps out a stepwise path from "can train" to "out-of-the-box ready."

    1. Introduction: A Milestone for Domestic GPU Training

    A domestic GPU vendor recently announced that, using its flagship training-and-inference AI accelerator and its in-house software stack, it had completed training adaptation for a flagship version of an open-source large model with a parameter scale close to 3 trillion. In a cross-node environment of two training servers and 16 accelerator cards in total, all 16 training processes completed 400 consecutive optimizer updates. Throughout, the training loss and gradient norm stayed finite, with no numerical overflow and no abnormal interruptions.

    As attention on domestic compute continues to rise, this result carries three signals.

    • Scale signal: Models approaching 1 to 3 trillion parameters place far greater demands on memory capacity, parameter-sharding strategy, and cross-node communication bandwidth than small- and mid-scale models. Getting a training pipeline to run at this scale means the foundational capability has reached a new level.
    • Pipeline signal: This validation did not test the operator correctness of a single card. It covered the full training pipeline, from model loading and parameter-shard scheduling to gradient synchronization and parameter updates. It shows the vendor’s engineering capability extending from “single-card inference deployment” toward “stable full-pipeline training.”
    • Maturity signal: The vendor describes ongoing work across operator adaptation, multi-card coordination, and automated toolchains, with the goal of moving frontier large models on domestic GPUs “from trainable to trainable out of the box.” This suggests domestic GPU training capability is in a transition from “usability validation” toward “production readiness.”

    For algorithm engineers and infrastructure teams, this event matters for more than its parameter scale. It offers a representative case for testing full-pipeline training stability at the dual-node, multi-card scale. Using this event as a starting point, this article first disentangles concepts that are easy to confuse, then breaks down the key techniques, and finally presents a reusable stability-validation methodology.

    2. Concept Clarification: Training Adaptation Is Not Base-Model Pretraining

    When vendors publicize this kind of progress, common phrasing includes “adaptation,” “integration,” “supports training,” and “completed pretraining” — but these do not mean the same thing. Confusing them can lead to over- or under-estimating the hardware’s true capability, so it helps to establish a clear layered framework first.

    Stage Core goal Role of the hardware Key judgment
    Inference deployment Load existing weights and verify forward-pass correctness Inference compute Whether inference operators are complete; whether throughput and latency meet targets
    Training adaptation Complete the full pipeline of forward pass, backward pass, gradient sync, and parameter updates on the target hardware Training compute Whether it can run stably and continuously across multiple nodes and cards
    Base-model pretraining Train a model at scale on massive corpora starting from random initialization Pretraining compute Whether the compute source, training duration, and scale are clearly stated

    It is worth stressing that a successful adaptation or integration does not mean the model was pretrained on that chip. Base-model pretraining is typically completed before release; the hardware vendor’s adaptation happens after release, giving the target hardware the ability to reproduce or continue training the model.

    A similar situation has come up in industry discussions. When a new-generation open-source large model published its technical report, it listed both a domestic accelerator and international mainstream GPUs as validation paths, with a focus on a fine-grained expert-parallelism (EP) scheme. It is widely understood that the main purpose of such parallel validation was to verify inference operator availability on both hardware types, not to describe the compute makeup of the model’s base-model pretraining. The vendor did not disclose the source of the compute used for the original base-model pretraining.

    For readers, then, judging the real substance of a given “adaptation” requires examining at least four points:

    1. Task type: Is it inference validation, or the full training run that includes the backward pass?
    2. Scale boundary: Is it single-card/single-node or multi-node/multi-card? Do the model parameters exceed a single card’s memory?
    3. Stability evidence: Is it a single successful run, or sustained stability over many consecutive steps? Are key metrics such as loss curves and gradient norm disclosed?
    4. Compute source: Was the model “pretrained from scratch,” or “continued training on existing weights”?

    By this framework, the earlier event is “training adaptation at the multi-node/multi-card scale.” Its substance is higher than inference-level operator validation, but it should not be equated with “base-model pretraining.” Maintaining this measured interpretation is the rational attitude to take when assessing domestic compute capability.

    3. Technical Breakdown: What a Full-Pipeline Dual-Node, Multi-Card Training Run Needs to Connect

    The technical details disclosed by the vendor indicate that this adaptation used the industry-mainstream Fully Sharded Data Parallel (FSDP) approach as its core parallelism strategy. Compared with traditional DDP, FSDP’s central idea is to shard the model parameters, gradients, and optimizer states across the data-parallel dimension, so each card holds only a small portion of the model. During the forward pass, the full parameters must be temporarily aggregated; after the backward pass, gradients are reduce-scattered into shards, and parameters are re-aggregated before the update. The full training pipeline can be broken into four links.

    3.1 Model Loading: Fitting Trillions of Parameters into Limited Memory

    With close to 3 trillion parameters computed in BF16 precision, the model weights alone occupy roughly 5.6 TB — far beyond any single card’s memory capacity. The core problem at the loading stage is: how do you “fit” the model into the distributed environment when the parameter count far exceeds a single card’s capacity? Two common approaches:

    • Load per a sharding plan: Following the sharding rules, each process loads only the portion of parameters it is responsible for, avoiding a full read of all weights on every card.
    • Unified distributed checkpoint format: Organize model weights, optimizer states, and training progress into a format that can be loaded across different parallel configurations. This way, training can resume seamlessly even after the parallelism degree changes.

    In this link, the vendor’s phrase “native FSDP2 multimodal training path” is worth attention. “Native” emphasizes that the training path supports FSDP at the framework level rather than being stitched together from external patches, which reduces the coupling complexity of memory management and communication logic.

    “Multimodal” means the pipeline must simultaneously carry the encoders and decoders of text and other modalities. The parameter counts, sequence lengths, and compute-to-memory-access ratios across modules often differ greatly, so mixed-precision strategies and recomputation strategies also need to be set per module.

    3.2 Shard Scheduling: Memory Budget Determines the Parallelism Scheme

    In a dual-node, 16-card environment, multiple parallelism strategies are usually combined:

    • FSDP: Shard model parameters, gradients, and optimizer states across the 16 cards;
    • Pipeline parallelism: Partition by layer to relieve memory pressure;
    • Tensor parallelism: Split single-layer computation within the node’s high-bandwidth interconnect domain;
    • Expert parallelism (EP): For MoE architectures, distribute different experts across cards, using All-to-All communication to dispatch and reclaim tokens.

    Memory estimation is the starting point for parallelism-scheme design. Taking a common AdamW-class optimizer and mixed-precision training as an example, the steady-state per-card memory can be approximately decomposed as:

    1. Per-card memory ≈ sharded (parameters + gradients + optimizer states) + peak activations + communication buffers + fragmentation headroom
    2. Sharded portion ≈ parameter count × 16 bytes / number of sharded cards
    3. (BF16 parameters 2 bytes + BF16 gradients 2 bytes + FP32 master weights 4 bytes
    4. + FP32 first moment 4 bytes + FP32 second moment 4 bytes)
    5. Activation memory estimate (with gradient checkpointing) ≈ batch size × sequence length × hidden dim × num layers × constant factor × (1 - pipeline parallelism degree) / pipeline parallelism degree

    The specific constants depend on the implementation, so engineers should calibrate them against actual profiling results.

    Shard scheduling must also account for two factors:

    • Hotspot parameters: Components such as the embedding layer and output layer are often not sharded together with the backbone network, making them prone to memory and communication hotspots.
    • MoE load balancing: Uneven token distribution can cause a sharp increase in the compute load on the card hosting certain experts, so the duration of the whole batch ends up determined by “the slowest card.”

    3.3 Gradient Synchronization: Keeping 16 Processes “in Step”

    Under fully sharded data parallel training, one complete iteration roughly includes:

    1. Forward pass: Each card All-Gathers parameter shards layer by layer, releasing the temporary parameters immediately after compute;
    2. Backward pass: Reduce-Scatter on the gradient shards, so each card keeps only the gradients for the portion it is responsible for;
    3. Gradient handling: Optional gradient clipping, cross-modal or cross-expert gradient normalization;
    4. Parameter update: Update the local parameter shards, then All-Gather to aggregate, preparing for the next forward pass;
    5. Communication optimization: Bucketing, compute-communication overlap, cross-node gradient compression, and so on.

    Model loading, shard scheduling, and gradient synchronization are tightly interlinked: a defect in the implementation of any one of them can surface at some iteration as a communication timeout, a numerical anomaly, or a training hang.

    3.4 Illustrative Code: An Observable Full-Pipeline Training Loop

    The following framework-agnostic pseudocode illustrates which points in each iteration a full-pipeline training run needs to watch:

    1. from distributed_env import init_process_group, get_rank, get_world_size
    2. from model_builder import build_fsdp_model, build_optimizer
    3. from utils import load_distributed_checkpoint, clip_grad_norm, save_checkpoint
    4. from metrics import record_metrics
    5. rank, world_size = init_process_group(backend="collective_comm_lib")
    6. # Two servers, 8 accelerator cards each → world_size = 16; typically one training process per card
    7. model = build_fsdp_model() # Shard parameters, gradients, and optimizer states per the parallel strategy
    8. optimizer = build_optimizer(model)
    9. start_step = load_distributed_checkpoint(model, optimizer, ckpt_dir)
    10. for step in range(start_step, max_steps):
    11. batch = next(dataloader) # Data loading and host-side preprocessing should run asynchronously
    12. # 1) Forward: gather parameter shards layer by layer, release them after compute
    13. loss = model.compute_loss(batch)
    14. # 2) Backward: reduce-scatter gradient shards
    15. loss.backward()
    16. # 3) Gradient clipping (by global norm, synchronized statistics across all shards)
    17. grad_norm = clip_grad_norm(model.parameters(), max_norm=1.0)
    18. # 4) Parameter update: update only the shards held on this card
    19. optimizer.step()
    20. optimizer.zero_grad()
    21. # 5) Stability assertions: loss/grad norm finite, training not interrupted
    22. assert loss.is_finite(), f"step {step}: loss is not finite"
    23. assert grad_norm.is_finite(), f"step {step}: grad norm is not finite"
    24. # 6) Metrics collection: aggregated by rank 0, then emitted
    25. if rank == 0:
    26. record_metrics(step=step, loss=loss.item(),
    27. grad_norm=grad_norm.item(), lr=optimizer.get_lr())
    28. # 7) Periodically save full state to support resuming from failure
    29. if step % save_interval == 0:
    30. save_checkpoint(model, optimizer, step, ckpt_dir)

    The design principle this code embodies is: turn “whether values are finite” into an automatically decidable assertion at every step, and turn “whether it is stable” into a quantifiable metric, rather than reviewing the logs only after training finishes.

    4. Why Watch “400 Consecutive Steps”: From “Can Run” to “Can Run Stably”

    When migrating a training platform, many teams are satisfied with “a single step runs without errors.” But in practice, a single successful step only shows that the computation graph is correct and the operators are implemented correctly; only sustained multi-step stability exposes the truly tricky engineering problems. The reason is that training is a stateful iterative process:

    • Optimizer momentum accumulates generation after generation;
    • Parameters change with every update;
    • The memory allocator gradually settles into a steady state through repeated allocation and release.

    In terms of training volume, 400 consecutive steps roughly corresponds to on the order of “hundreds of MB to hundreds of millions of tokens” (depending on batch size and sequence length). This is usually not enough to reflect convergence in model capability, but it is enough to verify whether the training system is reliable in a steady state. It mainly covers five categories of risk:

    1. Memory leaks and fragmentation: Abundant memory at the first step does not mean step N will not hit OOM. Whether peak memory slowly rises with step count reflects whether memory management and the recomputation strategy are stable.
    2. Numerical stability: BF16 has a wide dynamic range but low precision, while FP16 is prone to underflow. Over long accumulation, whether loss scaling, gradient clipping, and division-by-zero protection are effective all become concentrated here.
    3. Optimizer-state correctness: Whether momentum and second moments are handled correctly during sharding, reduction, and restoration directly affects whether the gradient-norm changes stay smooth.
    4. Communication stability: Repeatedly executing collective communication in a cross-node environment can manifest as intermittent timeouts if there are topology-awareness deviations or buffer-management defects.
    5. Data pipeline stability: With multiple processes loading data concurrently, duplicate samples, out-of-range shards, or sudden throughput drops can appear.

    A reasonable assessment of domestic GPU training capability should therefore use stepwise validation:

    • Step one: short-range validation (tens of steps) — confirm that the forward pass, backward pass, and optimizer update are correct and that loss can decrease;
    • Step two: mid-range validation (hundreds to a thousand-plus steps) — confirm that values stay finite, throughput is stable, and memory does not grow; this is the stage disclosed in this event;
    • Step three: long-range validation (thousands of steps or a full training run) — observe on real corpora whether the loss curve closely matches a reference platform, and verify checkpoint restoration and fault tolerance.

    The training capability of domestic full-feature GPUs is precisely accumulated through this kind of progressively deeper validation.

    5. Long-Run Training Monitoring: Which Metrics to Watch and How to Judge Anomalies

    To turn “stable” from a subjective impression into an objective conclusion, you need an observable metric system. The following metrics apply to most large-model training scenarios:

    • Training loss: Judge whether the model is learning. A sustained upward trend, or a shift to NaN/Inf, indicates a numerical anomaly.
    • Gradient norm: Reflects gradient magnitude. A sudden order-of-magnitude jump usually means an abnormal sample or a division-by-zero problem; staying close to the clipping threshold for a long time suggests the learning rate is too high.
    • Learning rate schedule: Confirm that the actual learning rate is consistent between the optimizer and all processes, ruling out errors in the parameter-update logic.
    • Throughput (tokens/s): Measures whether compute and communication are balanced. Periodic drops are usually related to data loading or communication stalls.
    • Peak and growth trend of memory: Judge whether a leak or fragmentation accumulation exists.
    • Communication share: Used to locate the time distribution across All-Gather, Reduce-Scatter, and All-to-All, and to optimize the communication-overlap strategy.

    Supporting recommendations:

    • Set reasonable thresholds on key metrics and configure alerts so on-call staff are notified the moment an anomaly appears;
    • Save checkpoints at fixed intervals to support quick recovery from the latest state;
    • Bring per-card utilization, temperature, and power draw into unified monitoring to catch individual cards downclocking or dropping out early.

    When hosting this kind of training workload in the cloud, you can draw on some general cloud product capabilities to reduce engineering cost:

    • Use a container platform to schedule multi-node/multi-card compute resources in a unified way;
    • Use object storage to centrally manage training data and checkpoints;
    • Use monitoring, alerting, and logging services to achieve centralized observation and anomaly notification of the training process.

    For example, capabilities such as the container, storage, monitoring, and logging offerings from Baidu AI Cloud can all be incorporated into a training platform along these lines.

    6. Common Failures and Troubleshooting Approaches

    Symptom Possible cause Troubleshooting direction
    Loss or gradients become NaN/Inf FP16 underflow, division by zero, abnormal samples Check the loss-scaling strategy; add numerical assertions and sample filtering
    Training hangs mid-run Collective communication timeout, inconsistent control flow Check whether collective calls are symmetric across ranks; extend the timeout threshold and capture stack traces to localize
    Memory keeps growing until OOM Temporary parameters not released, activation recomputation not taking effect Monitor the per-step memory curve; check the lifecycle of sharded aggregation
    Throughput drops periodically Data loading bottleneck, checkpoint saving blocks Use asynchronous loading and prefetching; stagger checkpoint saves
    One node trains noticeably slower Hardware downclocking, network link anomaly, uneven expert load Compare the time distribution across ranks; check hardware state and routing distribution

    A practical troubleshooting principle: in dual-node, multi-card training, most anomalies ultimately manifest as “one rank out of sync with the others,” because collective communication requires all processes to participate in a consistent order and with matching shapes. So when troubleshooting, prioritize comparing the call traces across ranks rather than analyzing a single process in isolation.

    7. Outlook: From “Can Train” to “Out-of-the-Box Ready”

    In terms of training practice, the vendor has publicly announced multiple results under the theme of “domestic chips training domestic models”: it completed the full training of a science foundation model of about 236 billion parameters from scratch, supported a university team’s full-stack native training of a 5D world model, and jointly completed the end-to-end training of an embodied large model with a research institution. Together with this dual-node, 16-card 400-step stability validation, these cases mutually corroborate a clear progression path:

    1. Full pretraining of a mid-scale model — validates the ability to train from scratch;
    2. Long-range stable training at the multi-node/multi-card scale — validates engineering reliability at cross-node scale;
    3. Trillion-parameter model training — validates sharding and communication efficiency at ultra-large scale.

    For developers and enterprise users, true “out-of-the-box readiness” involves at least four aspects:

    • Operator completeness: Full, precision-compliant implementations of the operators required by mainstream model structures;
    • Framework compatibility: Native support for the parallelism and mixed-precision features of mainstream training frameworks;
    • Mature toolchain: Provision of tools for debugging, performance profiling, fault localization, and more;
    • Complete documentation and community: A clear migration path and timely responses to problems.

    From “single-card inference ready” to “stable dual-node/multi-card training,” and then to “out-of-the-box readiness,” domestic full-feature GPUs still need continued investment in ecosystem and engineering maturity. As the training-adaptation pipeline is progressively connected and stability-validation methods become increasingly standardized, training large models on domestic GPUs is moving from isolated cases to the norm. For teams planning to deploy large models in a domestic-compute environment, now is the window to build up engineering capability and accumulate migration experience in advance.