Domestic GPU Large Model Training Adaptation: 16 Cards Across Two Nodes, 400 Stable Steps

    This article explains what a domestic GPU training adaptation for a large multimodal model actually proves—and what it does not—using a recent case in which 16 cards across two nodes completed 400 consecutive optimizer updates with finite loss and gradient norms over a native FSDP2 path. It separates training adaptation from base-model pretraining, breaks down where adaptation gets hard (operator coverage, interconnect, parallel strategy, and numerical stability), walks through the FSDP2 multimodal training path with pseudocode, and interprets what the 16-card/400-step numbers can and cannot confirm. It then maps training maturity from L1 (runs) to L4 (out-of-the-box), and closes with a hardware evaluation matrix, practical usage advice, and a troubleshooting table.

    A domestic full-function GPU vendor recently disclosed that its flagship training-and-inference AI accelerator card and its self-developed software stack had completed training adaptation for an open-source multimodal large model: 16 cards across two nodes ran 400 consecutive optimizer updates, with loss and gradient norms staying finite throughout, no numerical overflow or abnormal interruption, and a native FSDP2 multimodal training path established end to end. The news reignited the industry debate over “how large a model can domestic cards train.” But more important than the card count and step count is the engineering meaning behind these numbers: what a single adaptation validation can and cannot prove, and how to turn “it can train” into “ready to train out of the box.”

    1. First, separate the concepts: training adaptation is not base-model pretraining

    When asking “can a given accelerator train large models,” two things must be distinguished first: completing training adaptation on target hardware, and completing base-model pretraining on that hardware.

    • Base-model pretraining: Starting from random initialization, pouring thousands to tens of thousands of cards into massive corpora over weeks to months. It tests a combination of compute scale, cluster stability, data engineering, and parallel strategy.
    • Training adaptation: Wiring up model loading, parallel sharding, forward and backward passes, gradient synchronization, and parameter updates on the target hardware and software stack. It then uses a public model and relatively limited resources to validate numerics and stability. What it tests is whether the hardware and software stack can run a full training pipeline completely and correctly.

    Take a public case as a reference. A leading international model vendor validated two different architectures of AI accelerator hardware side by side in a public technical report and provided a fine-grained expert parallelism (EP) scheme. The industry generally views this as inference-side operator validation, and the original compute source for its base-model pretraining has not been officially disclosed. This shows that, in the compute domain, adaptation success and training provenance must be viewed separately. Otherwise it is easy to misread “this hardware can run a training pipeline” as “it trained a frontier large model.”

    The value of the two also cannot substitute for each other. Base-model pretraining determines the capability ceiling of a model, while training adaptation determines which training tasks a compute cluster can take on. The target of this validation is an open-source multimodal flagship model of roughly 3 trillion total parameters. This scale sits between the tens-of-billions open-source models that are common today and ten-thousand-card base-model pretraining, placing non-trivial demands on both the completeness of the software stack and the interconnect capability of the hardware.

    Where training adaptation gets “hard”

    Many developers assume that as long as the framework supports it and the cards light up, training is done. In practice, implementation often gets stuck at these stages:

    1. Operator coverage and numerical precision: The attention variants, normalization, positional encoding, and mixture-of-experts (MoE) routing used by the model all need available implementations on the target hardware whose results match the reference implementation. When some operators lack efficient kernels, falling back to a generic path often degrades performance noticeably.
    2. Interconnect and communication primitives: Gradient synchronization relies on collective communication such as AllReduce, ReduceScatter, and AllGather. Cross-node bandwidth, the choice of communication algorithm, and how well communication overlaps with computation directly determine multi-card scaling efficiency.
    3. Combining parallel strategies: Data parallelism (DP), tensor parallelism (TP), pipeline parallelism (PP), expert parallelism (EP), and fully sharded data parallelism (FSDP) need to be combined according to model structure. Poor sharding leads to wasted memory or communication bottlenecks.
    4. Numerical stability: Mixed precision, gradient clipping, and loss scaling must behave consistently under the floating-point behavior of different hardware, avoiding loss spikes and gradient anomalies.

    2. The technical core: wiring up a native FSDP2 multimodal training path

    In the publicly disclosed scheme, the key link is building a native FSDP2 multimodal training path that connects model loading, shard scheduling, and gradient synchronization into a complete chain. Breaking it down stage by stage:

    • Model loading: The model definition and weight format need no rewriting for adaptation, and the loading path stays transparent to the user—this is the first meaning of “native.”
    • Shard scheduling: FSDP2 shards per parameter and describes the parallel topology through a “device mesh.” This design brings the memory each card holds down to the order of “model size ÷ card count,” so the single-card memory ceiling no longer directly limits the model size that can be trained. It also makes it easy to combine FSDP with TP, PP, and other methods into two-dimensional or even multi-dimensional partitioning. Parameters are aggregated before training and re-sharded afterward, so communication can overlap with computation.
    • Gradient synchronization: Each card computes gradients for its own parameter shards, which are then aggregated through reduce-scatter-type communication and used to update the local shard. Data parallelism is thus unified with model sharding under the same mechanism, reducing the room for error that comes from hand-stitching different parallel methods.
    • The extra challenges of multimodality: Samples across modalities such as image and text differ greatly in length, and variable sequence lengths increase wasted computation per card. In practice, sample packing and length bucketing are usually combined to lower the padding ratio and balance the load across cards. Structures such as visual encoders also introduce dynamic control flow, adding demands on dynamic-shape operator support.

    The handoff between these stages can be illustrated with the following schematic pseudocode:

    1. # Illustrative pseudocode: native FSDP2 training path (interface details omitted)
    2. train_loader = build_packed_loader(config) # sample packing to reduce padding ratio
    3. model = build_multimodal_model(config) # vision encoder + text backbone, etc.
    4. for module in wrap_targets(model): # shard at Transformer-block granularity
    5. fully_shard(module, mesh=device_mesh, ...) # shard and register pre/post-training hooks
    6. optimizer = build_optimizer(model, config)
    7. for step, batch in enumerate(train_loader, start=1):
    8. optimizer.zero_grad(set_to_none=True)
    9. loss = model(batch).loss
    10. loss.backward() # sharded-gradient reduction/aggregation happens automatically in backward
    11. grad_norm = clip_grad_norm_(model, config.max_grad_norm) # clip and return the pre-clip norm
    12. if not isfinite(loss) or not isfinite(grad_norm):
    13. raise TrainingAnomaly(step, loss, grad_norm) # surface anomalies directly, no silent fallback
    14. optimizer.step()

    The value of this pseudocode lies in two principles:

    • The training loop needs no “hacking” for adaptation;
    • “Whether the numerics are finite” becomes a hard constraint checked explicitly at every step, rather than something discovered only after training ends.

    3. Two nodes, 16 cards, 400 steps: what these numbers say

    In the public experiment, the vendor used 16 accelerator cards across two nodes for a cross-node joint training test, with 16 training processes each completing 400 consecutive optimizer updates. Interpreting this result requires weighing both what it proves and what it does not.

    What it proves:

    1. Numerical correctness in a heterogeneous environment: Finite loss and gradient norms throughout indicate that communication, reduction, and parameter updates across cards had no misalignment or dirty data.
    2. Usability of the cross-node link: After scaling from single-node to cross-node training, the processes were not interrupted by issues such as communication timeouts or process hangs.
    3. No implicit fallback over a short window: If mechanisms like “skip anomalous batches” or “skip parameter updates” were used to force completion, the gradient-norm or loss curve would typically show unnatural jumps. Steady behavior throughout suggests the problems were not being masked.

    What it does not prove:

    • 400 steps is an hour-scale short run that can only prove the system is “correct”; it is not enough to cover long-run issues such as memory-fragmentation accumulation, long-tail node performance drift, and occasional communication jitter.
    • 16 cards is not a larger scale. When the cluster scales to hundreds or thousands of cards, communication topology, fault-domain partitioning, and checkpoint recovery all need to be redesigned.
    • Results from a single configuration cannot be extrapolated to all model structures, especially non-uniform loads where the vision encoder and text backbone execute alternately during training.

    How to read stability: let the monitoring do the talking

    If the full optimizer state were saved on every update—16 processes each saving one copy across 400 steps—the storage pressure and write overhead would be substantial. The more reasonable engineering practice is to collect key metrics throughout and keep checkpoints only at meaningful points. The following schematic code implements “surface anomalies immediately” via a custom exception, paired with alert reporting; metric sampling and stop-loss strategy can be expressed as pseudocode like this:

    1. # Illustrative pseudocode: metric collection and anomaly stop-loss during training
    2. def on_train_end(train_state, step, loss, grad_norm, skipped_steps):
    3. metrics = {
    4. "step": step,
    5. "loss": loss, # finiteness check: isnan / isinf
    6. "grad_norm": grad_norm, # stable? near the clipping threshold?
    7. "loss_rel_change": rel_change(loss_history, window=50), # change vs. mean of the last 50 steps
    8. "skipped_steps": skipped_steps, # were updates implicitly skipped?
    9. }
    10. report_to_platform(metrics) # report to the monitoring platform; configure threshold alerts
    11. def on_optimizer_step(state, loss, grad_norm):
    12. # raise anomalies immediately to avoid "training while broken"
    13. if not isfinite(loss) or not isfinite(grad_norm):
    14. raise TrainingAnomaly(...)
    15. # a sustained multi-step loss increase relative to the window -> loss spike -> roll back to the latest checkpoint
    16. if len(state.loss_history) >= 50 and is_spike(loss, state.loss_history):
    17. raise LossSpikeDetected(...)

    Configuring threshold alerts instead of printing every step both reduces log noise and makes it easy to filter anomalous steps by metric on the monitoring platform. When troubleshooting, focus on three kinds of signals:

    • Loss spikes: A clear rise over multiple consecutive steps relative to the prior window, usually tied to anomalous data samples or transient numerical issues;
    • Gradient norm approaching the clipping threshold: The clipping mechanism is being triggered frequently, so learning rate, data distribution, and normalization settings need checking;
    • Non-zero skipped steps: Updates are being implicitly skipped, meaning training is not progressing as intended.

    4. From “it can train” to “out-of-the-box training”: maturity levels of training capability

    Among the technical details the vendor published, the four maturity levels are what really deserve attention:

    • L1 — It runs: Single-node single-card completes forward and backward; the model can be loaded and iterated.
    • L2 — It is stable: Two-node, 16-card, 400-step continuous updates, with loss and gradient norms finite throughout and no interruption.
    • L3 — It scales: Linearity at the thousand-to-ten-thousand-card level, long-duration fault-free operation, and minute-level fault recovery.
    • L4 — Out-of-the-box training: Runs by default on mainstream frameworks, without vendor-custom images or manual code changes, and paired with automated operator tuning, distributed stress testing, and fault-injection capability.

    The significance of this validation is that it shows the capability is stably at L2 and moving toward L3, with the focus shifting from “it runs” to “it runs stably and scales.”

    The landscape of “domestic chips training domestic models”

    Public sources show that a body of results—“domestic chips training domestic models”—has already formed on the large-scale training front:

    • A 236-billion-parameter foundation-science model completed full training from scratch;
    • A 5D world model achieved full-stack native training;
    • A full-pipeline training run of an embodied brain model was completed jointly with a research institution.

    These three model types differ clearly:

    • The foundation model tests a general compute foundation;
    • The world model tests multimodal and spatiotemporal modeling capability;
    • The embodied model tests the engineering maturity of multi-task, multi-sensor-fusion training.

    At present, work is underway to push the training of trillion-parameter-scale large models, with the target set squarely at L3.

    Ecosystem compatibility: software-stack adaptation is “a thousand models, a thousand faces”

    For developers, the most practical question is: can my model run on this hardware? The key is not the model name but the combination of framework version, operator requirements, and parallel strategy. Different models differ in attention mechanisms, normalization, and positional encoding, which gives adaptation a distinctly “a thousand models, a thousand faces” character. This is also why vendors focus on general training paths rather than single-model adaptation.

    5. Practical recommendations: how developers should choose and use

    When selecting hardware, a concise evaluation matrix helps:

    Dimension Key question Recommended validation
    Operator coverage Are all operators the model needs natively supported? Review the operator list; compare single-operator outputs between the official and adapted implementations
    Parallel strategy Does it natively support FSDP2 and multi-dimensional parallel combinations? Run the target model’s training path in a two-node, 16-card environment
    Numerical stability Do loss spikes or gradient anomalies appear over long runs? Run at least 400 consecutive updates while monitoring loss and gradient norm
    Scalability Does throughput grow linearly as the card count increases? Compare per-card throughput and communication share across different card counts
    Ecosystem compatibility Are mainstream frameworks, sequence parallelism, and checkpoint formats compatible? Launch training directly with official images and configs
    Observability Can it integrate with existing monitoring and alerting systems? Report training metrics to the platform and verify threshold alerts

    The same approach applies when running these practices on Baidu AI Cloud: unify the training environment with containerized images, track loss and gradient norm continuously through logging and monitoring/alerting, store checkpoints in object storage, and run stability stress tests across large-scale nodes via distributed scheduling. This closes the loop from “running once” to “long-term stable operation,” avoiding the awkward situation of “good-looking benchmark numbers but crashes in production.”

    6. Common questions and troubleshooting

    Symptom Possible cause Troubleshooting direction
    Loss suddenly becomes NaN or Inf Numerical overflow, anomalous samples, misconfigured mixed precision Locate the data batch at the anomalous step; check loss scaling and normalization
    Gradient norm keeps growing Learning rate too high, data distribution drift Adjust learning rate and warmup steps; check data preprocessing
    Training slows as steps progress Memory fragmentation, checkpoint write blocking Monitor memory usage and I/O metrics; move checkpoint writes to an async queue
    Multi-card throughput far below single-card Communication not overlapped with compute, insufficient interconnect bandwidth Analyze the compute/communication time ratio; adjust shard granularity and parallel strategy
    Training process hangs Cross-node network jitter, a faulty node Check node health and network metrics; enable timeouts and auto-restart

    In one sentence: the value of training adaptation lies not in how eye-catching the numbers are, but in whether “occasional success” can be turned into “stable and reproducible.” When developers can start a large-model training run on domestic accelerators without worrying about the underlying hardware details, “out-of-the-box training” has truly landed.