A Domestic GPU Completes Training Adaptation for a Nearly Trillion-Parameter Model: 16 Cards Across Two Nodes Run 400 Steps Stably

    This article explains what a domestic full-function GPU vendor's training adaptation for a nearly 3-trillion-parameter flagship model actually demonstrates, and why adaptation is not the same as pretraining. It breaks down the native FSDP2 training pipeline from model loading and sharding to gradient synchronization, outlines the four main difficulties that make training harder than inference deployment, and interprets the metrics behind the two-node, 16-card, 400-step validation. Readers will also find a practical engineering checklist for moving from "can train" to "ready to train out of the box."

    1. What Happened: A Training Adaptation, Not a Pretraining 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 quickly completed the training adaptation of a flagship large model with a parameter scale of nearly 3 trillion. The test environment consisted of two nodes with 16 accelerator cards in total. All 16 training processes completed 400 consecutive optimizer updates, with the training loss and gradient norm remaining finite throughout, and no numerical overflow or abnormal process interruption occurred.

    One common misunderstanding must be cleared up first: a successful training adaptation does not mean the model was pretrained on this chip. Adaptation answers the question of “whether this model architecture, this parallelism strategy, and this combination of operators can be executed correctly and stably on the target hardware and software stack.” Pretraining answers a different question: “training the model’s capabilities from random initialization using massive corpora.” In the engineering workflow, these are different stages. The former is a prerequisite for the latter, but the two are not equivalent.

    There are similar precedents in the industry: the technical reports of some foundation models validate multiple acceleration backends side by side and report fine-grained expert parallelism results. However, such side-by-side validation usually points to the feasibility of inference-side operators and parallelism strategies, and does not mean an official announcement of the original compute source for base model pretraining. Therefore, for news about a completed adaptation, engineering readers should pay attention to its validation scope: which pipeline was validated, which parallelism dimensions, how many cards, how many steps, and which metrics were monitored.

    2. Why Training Adaptation Is Much Harder Than Inference Deployment

    The goal of inference deployment is to get the forward pass running, meet throughput targets, and keep latency under control. Training adds backward propagation, gradient reduction, optimizer state updates, mixed-precision scaling, and checkpoint saving on top of the forward pass. The difficulty comes mainly from four areas:

    1. Breadth of operator coverage: Training touches many operators that are rarely used in the forward pass, such as various normalization variants, weighted cross-entropy, and in-place operations related to gradient accumulation. A single missing operator or inconsistent semantics can produce wrong results.
    2. Numerical stability: Under mixed precision, loss scaling, gradient clipping, and normalization statistics all require strict control of overflow and underflow.
    3. Coupling of communication and scheduling: Once data parallelism, tensor parallelism, pipeline parallelism, and expert parallelism are combined, the communication topology and computation partitioning constrain each other, easily resulting in “it runs but is extremely slow” or “it runs but occasionally hangs.”
    4. Long-term stability: Large model training often runs for thousands of steps or more. Running briefly does not mean running stably over time; memory fragmentation, handle leaks, and collective communication timeouts can all surface midway.

    3. Breaking Down the Native FSDP2 Training Pipeline: From Loading to Gradient Synchronization

    The vendor built a native FSDP2 (Fully Sharded Data Parallel) multimodal training path that closes the loop from model loading and shard scheduling to gradient synchronization. The pipeline can be understood in five stages:

    • Model loading and partitioning: Parameters and optimizer states are sharded across ranks according to a sharding strategy, avoiding a single card carrying the full state.
    • Forward pass and recomputation: Activation recomputation reduces peak memory usage, trading compute for space.
    • Backward pass and gradient reduction: Gradients of sharded parameters are reduced in buckets; bucket size and overlap strategy directly affect throughput.
    • Optimizer update: Sharded optimizer states are updated locally, reducing global synchronization overhead.
    • Checkpointing and fault tolerance: Periodic saving to storage supports resuming from breakpoints and fast failure recovery.

    Illustrative pseudocode (structure only, not a specific API):

    1. # Pseudocode: FSDP2-style training loop
    2. for step in range(total_steps):
    3. with shard_context(model): # Aggregate sharded parameters on demand
    4. out = model(batch) # Forward pass + activation recomputation
    5. loss = criterion(out, labels)
    6. loss = loss_scaler.scale(loss) # Mixed-precision scaling
    7. loss.backward() # Backward pass + sharded gradient reduction
    8. grad_norm = clip_grad_norm_(model, max_norm=1.0)
    9. optimizer.step() # Local update of sharded optimizer
    10. optimizer.zero_grad(set_to_none=True)
    11. if step % ckpt_interval == 0:
    12. save_checkpoint(model, optimizer, step)
    13. log(step, loss, grad_norm) # Monitor finiteness throughout

    Multimodal scenarios also require handling image-text alignment, variable-length sequence packing, and load balancing across modalities. Any improper partitioning in these areas amplifies memory fragmentation and communication jitter.

    4. What the Two-Node, 16-Card, 400-Step Validation Metrics Mean

    The statement “16 training processes, 400 consecutive optimizer updates, loss and gradient norm finite throughout” actually provides a reusable acceptance template:

    • Process count = card count: Each card hosts one training process, making the parallelism topology clear and simplifying problem localization.
    • 400 consecutive updates: This covers learning rate warmup, loss scaler initialization, and the stable period, and is enough to expose most numerical and communication issues.
    • Finite loss: Rules out forward numerical collapse and label/mask errors.
    • Finite gradient norm: Rules out backward overflow, loss scaling factor runaway, and reduction errors.
    • No abnormal interruption: Indicates that collective communication, memory allocation, and scheduling were stable within the test window.

    From an engineering standpoint, it is advisable to extend the acceptance window to thousands of steps and to record throughput, peak memory, communication overhead, and checkpoint time at the same time, in order to move from “can train” to “trainable, stable to train, and economical to train.”

    5. An Engineering Checklist for Going from “Can Train” to “Ready to Train Out of the Box”

    1. Operator layer: Build an operator coverage matrix and semantic consistency tests, aligning each operator with a reference implementation.
    2. Parallelism layer: Provide automatic parallelism strategy search and topology-aware scheduling to reduce manual tuning.
    3. Numerical layer: Enable loss scaling, gradient clipping, and outlier detection by default, and output observable metrics.
    4. Toolchain layer: Provide logging services, monitoring and alerting, and training visualization, with anomalies automatically localized to a rank and operator.
    5. Ecosystem layer: Accumulate model templates and one-click launch scripts, turning adaptation experience into reusable assets.

    For users, selection should require vendors to clearly state the validation scope and long-term stability data. For platform providers, general cloud product capabilities such as container platforms, object storage, and message queues can be combined to build an elastic training and data supply foundation. Baidu AI Cloud continues to invest in general computing and training engineering capabilities and can provide standardized support for large model training. Overall, domestic full-function GPUs are following a path from operator adaptation to multi-card coordination and then to automated toolchains, gradually lowering the training barrier for frontier large models from “expert tuning” to “ready to train out of the box.”