A Domestic GPU Completes Training Adaptation for a Nearly Trillion-Parameter Model: 16 Cards, 400 Stable Steps

    This article examines a recent training adaptation in which a domestic full-function GPU vendor ran a nearly three-trillion-parameter multimodal model on 16 accelerators across two nodes for 400 consecutive optimizer updates without numerical failures. It clarifies the difference between training adaptation and reproducing original pre-training, breaks down the native FSDP2 sharding path and the full pipeline from weight loading to gradient synchronization, explains what 400 stable steps do and do not prove, and offers a practical checklist and engineering sequence for evaluating whether a domestic accelerator is ready for out-of-the-box training.

    1. Background: A Training Adaptation, Not a Pre-Training Reproduction

    A domestic full-function GPU vendor recently announced that, using its flagship training-and-inference compute card and its in-house software stack, it completed the training adaptation of a flagship large model with a parameter count approaching three trillion. The test used two nodes with 16 accelerators in total for cross-node joint training. All 16 training processes completed 400 consecutive optimizer updates, with loss values and gradient norms remaining finite throughout and no numerical overflow or abnormal interruption.

    One easily confused distinction must be settled first: training adaptation is not the same as completing the original pre-training on that chip.

    In the industry, “Day 0 adaptation of the latest open-source model” usually means that operator coverage and the inference or fine-tuning path were completed on the day the weights were released. “Completing training adaptation” means getting the full chain running and stable on the target hardware: model loading, shard scheduling, forward and backward passes, gradient synchronization, and optimizer updates. A successful adaptation shows that the hardware has the engineering capability to carry this class of model training; it does not mean the model’s base pre-training compute came from that hardware. A technical report for a certain open-source model previously validated several acceleration backends side by side and provided a fine-grained expert parallelism scheme. The industry generally understood that this was operator validation on the inference side, and the original compute source for base pre-training was never officially announced.

    Drawing this boundary clearly matters for technology selection: when evaluating a domestic accelerator, look at whether it can train, how stable it is, and how high the migration cost is, rather than whether it took part in the launch of some high-profile model.

    2. Technical Breakdown: What Cross-Node Training Actually Connects

    2.1 Native FSDP2 Multimodal Training Path

    The original text describes a native FSDP2 (Fully Sharded Data Parallel, second generation) path. Its core idea is to shard model parameters, gradients, and optimizer states across the data-parallel group, so each card keeps only its own portion resident and temporarily aggregates via collective communication when needed.

    Compared with traditional data parallelism, memory usage drops from “one full model per card” to “1/N per card,” which removes per-card memory as a hard ceiling on parameter count. The configuration logic is shown schematically below (pseudocode, expressing semantics only):

    1. # Pseudocode: semantic illustration of fully sharded data parallelism
    2. model = build_multimodal_model(config) # vision encoder + language backbone
    3. model = fully_shard(model, mesh=dp_mesh_2d) # shard parameters/gradients/optimizer states
    4. opt = AdamW(model.parameters(), lr=1e-4)
    5. for step in range(total_steps):
    6. batch = next(dataloader) # mixed image-text/video multimodal batch
    7. loss = model(batch).loss
    8. loss.backward() # triggers reduce-scatter during backward
    9. opt.step() # triggers all-gather of parameters before update
    10. opt.zero_grad()
    11. assert torch.isfinite(loss) # numerical health check

    The key improvement of FSDP2 over the previous generation is clearer management of sharded state and better compatibility with compiled execution graphs. This matters especially for multimodal models, which have many branches and non-fixed tensor shapes.

    2.2 The Full Chain: From Loading to Gradient Synchronization

    The original text stresses that the complete chain of “model loading, shard scheduling, and gradient synchronization” was connected. In engineering terms, this chain contains at least six stages:

    • Weight loading and format conversion: rearranging reference weights according to tensor/pipeline parallel splitting rules to avoid doubling peak memory during loading;
    • Shard scheduling: building a two-dimensional device mesh (data parallel × tensor/pipeline parallel) that determines each card’s resident shard and communication groups;
    • Forward computation: multimodal inputs require handling variable-length sequences and visual token compression, and operator coverage determines whether fallback implementations are needed;
    • Backward and gradient reduction: reduce-scatter aggregates gradients, and bucket size and overlap strategy directly affect throughput;
    • Optimizer update: sharded optimizer states are updated in place, and ZeRO-style schemes generate their main communication here;
    • Checkpointing and fault tolerance: periodic asynchronous writes to storage, with support for resuming from breakpoints.

    2.3 What 400 Consecutive Stable Steps Mean

    400 consecutive optimizer updates is an informative metric, but it should not be mythologized. Its value is that it covers the window most likely to expose problems: initialization, learning-rate warmup, the first gradient backpropagation, and checkpoint writing.

    • If an operator has a precision defect, loss usually becomes NaN or Inf within the first few dozen steps;
    • If there is a race condition between communication and computation overlap, it often shows up at the scale of hundreds of steps as occasional stalls or spikes in gradient norm;
    • If memory fragmentation is poorly managed, OOM is triggered when a checkpoint is written.

    So “loss and gradient norms finite throughout, with no abnormal interruption” is a necessary but not sufficient condition: it proves the chain is usable, but it does not mean convergence quality or linear scaling efficiency has been validated. Further evidence is needed: throughput curves at different parallelism degrees, scaling efficiency, loss alignment error against the reference implementation, and long-run stability beyond thousands of steps.

    3. Evaluation Checklist: How to Judge Whether a Training Adaptation Is Credible

    Cross-validate along the following dimensions rather than being carried away by a single number:

    1. Numerical consistency: whether the relative deviation of loss over the first several steps between the reference backend and the target backend stays within the 1e-3 range under the same configuration;
    2. Scaling efficiency: whether throughput is close to linear from 8 cards to 16 cards and then to 32 cards across multiple nodes, and whether the communication share stays controllable;
    3. Operator coverage and fallback ratio: how many operators use native implementations versus generic fallbacks, since fallback paths are the main source of performance and stability risk;
    4. Fault tolerance: inject a single-card failure and verify that training resumes automatically from the latest checkpoint;
    5. Toolchain completeness: whether there are tools for automatic parallel strategy search, memory estimation, performance flame graphs, precision debugging, and operator completion.

    4. From “Can Train” to “Out-of-the-Box Training”: Implementation Advice

    The judgment in the original text is pragmatic: for domestic full-function GPUs to reach “out-of-the-box training,” operator adaptation, multi-card coordination, and automated toolchains all need continuous refinement. In engineering practice, the following order works:

    • Small before large: align numerics with a small configuration of 100-200 million parameters first, then scale to the target size, avoiding repeated trial and error on large models;
    • Fix random seeds and data order: so that any difference can only come from the backend implementation, making bisection easier;
    • Enable optimizations in layers: start with pure data parallelism, then add tensor parallelism, and finally pipeline and sequence parallelism, locating communication bottlenecks layer by layer;
    • Build observability first: connect unified logging, metrics monitoring, and alerting, with thresholds on loss, gradient norm, memory level, and communication time;
    • Share one image and configuration between training and inference: the value of a training-and-inference card lies in reducing environment divergence, with configuration as code and image as environment.

    For cloud deployment, a common approach is to run training jobs on a container platform, store checkpoints and datasets in object storage, decouple data preprocessing with a message queue, and use monitoring and alerting for anomaly watch. This turns a one-off “runs in the lab” result into a sustainable “periodic training pipeline.” In such scenarios, Baidu AI Cloud typically provides the underlying foundation through general cloud product categories (containers, storage, monitoring, logging); refer to the official documentation for specific capabilities.

    5. Conclusion

    A training adaptation with 16 cards across two nodes and 400 uninterrupted steps marks a preliminary closure of the engineering chain for domestic full-function GPUs on ultra-large-scale multimodal models: sharded parallelism, cross-node communication, numerical stability, and fault-tolerant checkpointing are all in place. But turning “can train” into “out-of-the-box training” still requires four missing pieces: operator coverage, scaling efficiency, long-run stability, and automated toolchains. The advice for developers is to start with numerical alignment, use scaling efficiency as the yardstick, and treat toolchain completeness as a long-term investment. Treat a single adaptation result rationally, and replace single-point marketing claims with a reproducible evaluation system.