Full-Link Engineering Practice: Training Adaptation of a Near-3-Trillion Parameter Model on Domestic GPUs

    This article analyzes a recent engineering breakthrough where domestic GPUs successfully adapted a near-3-trillion parameter multimodal model for full-link training. It explores the critical differences between training and inference adaptation, details the implementation of native FSDP2 for memory management, and explains the significance of stable 400-step optimization updates. Furthermore, it outlines the four layers of systematized engineering capabilities and future directions for achieving out-of-the-box large model training on emerging hardware platforms.

    Full-Link Engineering Practice: Training Adaptation of a Near-3-Trillion Parameter Model on Domestic GPUs

    Introduction: The Critical Leap from “Inference” to “Training”

    Recently, a noteworthy engineering advancement emerged in the domestic GPU sector: a domestic chip manufacturer, leveraging its flagship training-and-inference unified compute card and proprietary software stack, completed the training adaptation of a near-3-trillion parameter open-source multimodal large model. The system achieved stable continuous operation over 400 optimizer update steps on a dual-node, 16-GPU cluster.

    The significance of this progress lies not in the superficial fact that “a model runs on a chip,” but in marking a substantive leap in the full lifecycle support capability of domestic computing power—transitioning from inference deployment to full-link stable training. For developers and technical decision-makers, understanding the technical implications behind this event is more valuable than remembering any brand name. This article strips away specific vendor information to dissect the complete logic of this engineering practice from a general technical perspective.

    1. Training Adaptation vs. Inference Adaptation: A World of Difference

    When discussing any “model-chip adaptation” news, a critical understanding must first be established: training adaptation and inference adaptation are engineering tasks of completely different magnitude.

    1.1 The Essence of Inference Adaptation

    Inference adaptation typically refers to the implementation and verification of operators required for model forward computation on new hardware. Its characteristics include:

    • The computational graph is relatively fixed, requiring coverage only for the operator set involved in forward propagation;
    • No gradient backpropagation or optimizer state management, keeping memory pressure manageable;
    • Relatively high tolerance for numerical precision, where common precision loss can be mitigated through quantization compensation;
    • The industry’s common “Day 0 adaptation for the latest open-source model” mostly falls into this category, verifying inference availability on the day of model release.

    1.2 The Complete Challenges of Training Adaptation

    Training adaptation requires opening up a complete closed loop from model loading, data parallelism, and gradient synchronization to optimizer updates. The difficulties include:

    • Doubled Operator Coverage: In addition to forward operators, backward propagation versions of all operators must be implemented. Backward operators are often high-risk areas for numerical issues;
    • Distributed Communication: Cross-card, cross-node gradient AllReduce and parameter shard scheduling impose extreme demands on communication libraries and hardware interconnect capabilities;
    • Numerical Stability: In long-chain training, any gradient anomaly in any step (such as NaN/Inf loss, gradient norm explosion) will lead to training interruption or model corruption;
    • State Management: Optimizer states (such as Adam’s first and second moments) occupy staggering memory at the trillion-parameter scale, mandating reliance on sharding technologies.

    An industry consensus worth noting: a well-known open-source model once validated two hardware routes in its technical report. However, industry analysis revealed this was a feasibility confirmation at the inference operator level, not a declaration of the computing power source for base pre-training. This reiterates that—“successful adaptation” does not equate to “pre-trained on this hardware.” Readers should maintain technical prudence when interpreting similar information.

    2. Native FSDP2 Training Path: Breaking the Memory Barrier for Trillion-Parameter Models

    The core technical highlight of this adaptation is the construction of a native FSDP2 (Fully Sharded Data Parallel, 2nd Generation) multimodal training path. Understanding FSDP2 is key to understanding modern large model training.

    2.1 Why Complete Sharding is Necessary

    Taking a 3-trillion parameter model as an example, even using BF16 precision (2 bytes per parameter), model weights alone require about 6TB of memory. Combined with gradients (6TB) and Adam optimizer states (12TB), the total demand is roughly 24TB. Single-card memory is typically in the tens to hundreds of GB, meaning states must clearly be sharded across hundreds or thousands of cards.

    The core idea of FSDP is to “trade communication for memory”: model parameters, gradients, and optimizer states are fully sharded across data parallel ranks. Each rank only temporarily gathers complete parameter layers via AllGather when computation requires it, and releases them immediately after computation.

    2.2 FSDP2 Improvements Over Previous Generations

    Key engineering improvements in FSDP2 include:

    • Per-parameter sharding: Uses independent tensors as the sharding unit, replacing whole-module wrapping. The finer sharding granularity allows for more sufficient overlap between communication and computation pipelines;
    • Explicit hybrid sharding: Supports combined strategies of parameter replication within nodes and sharding across nodes, adapting to multi-node, multi-card topological structures;
    • More flexible memory management: Facilitates combination with technologies like activation checkpointing and CPU offloading.

    The adaptation work opened up three critical links, all indispensable:

    1. Model Loading: Supports sharded loading of ultra-large models to avoid single-point memory overflow, typically implemented via distributed checkpoint formats;
    2. Shard Scheduling: Plans sharding strategies by layer or parameter group to balance memory usage across cards while reserving margin for communication;
    3. Gradient Synchronization: Ensures that gradient AllReduce and parameter updates after backward propagation are strictly numerically correct, which is the foundation of training convergence.

    3. Stability Verification: The Engineering Significance Behind 400 Continuous Steps

    This test utilized a dual-node, 16-GPU cluster for cross-node joint training. All 16 training processes completed 400 continuous optimizer updates, with loss and gradient norms remaining finite throughout, with no numerical overflow or abnormal interruption.

    3.1 Why “400 Steps” Instead of “1 Step”

    Running a single training step only proves the “pipeline is connected,” while stable continuous running for hundreds of steps proves the “pipeline is reliable.” This is because:

    • Numerical errors have a cumulative effect; calculations normal in a single step may diverge during long-range operation;
    • Issues like memory leaks and memory fragmentation often only manifest after sustained operation;
    • Communication deadlocks and process synchronization anomalies are mostly probabilistic failures requiring a sufficiently long running window to verify robustness.

    3.2 Observation Metrics for Healthy Training

    In engineering practice, the core observation items for determining training health include:

    • Loss Curve: Should maintain a monotonic decrease or an expected fluctuation pattern, with no spikes;
    • Gradient Norm (grad norm): Should remain within a finite and stable range; sudden increases often indicate improper learning rates or data anomalies;
    • Hardware Metrics: Stable memory usage, normal temperatures, and communication bandwidth utilization meeting expectations.

    3.3 Reusable Minimal Verification Code Skeleton

    Below is an example of a general training health check logic (framework-agnostic pseudocode):

    1. for step, batch in enumerate(dataloader):
    2. loss = train_step(model, batch, optimizer)
    3. grad_norm = compute_grad_norm(model)
    4. # Numerical health check
    5. assert math.isfinite(loss), f"step {step}: loss overflow"
    6. assert math.isfinite(grad_norm), f"step {step}: gradient overflow"
    7. # Trend health check (sliding window)
    8. if step > warmup_steps:
    9. assert grad_norm < spike_threshold * running_avg, "Gradient spike"
    10. log(step, loss, grad_norm, memory_stats())

    4. From Single-Point Breakthroughs to Systematization: Four Layers of Engineering Capability

    The successful adaptation of a single model is only the starting point. According to public information, relevant vendors have previously implemented multiple practices of “training domestic models on domestic chips,” including pre-training from scratch for a 200-billion parameter scientific foundation model, full-stack native training for world models, and full-process training for embodied AI models. They are currently advancing the training of trillion-parameter models. These cases collectively point to one conclusion: large model training adaptation has evolved from “project-based assaults” to “systematized capability.”

    A complete training engineering system typically contains four layers:

    1. Operator Layer: Covers the forward and backward operators required by mainstream model architectures (Transformers, MoE, multimodal encoders, etc.), ensuring numerical precision aligns with mainstream frameworks;
    2. Parallel Strategy Layer: Supports the combined orchestration of data parallelism, tensor parallelism, pipeline parallelism, expert parallelism (EP), and FSDP, capable of automatically or semi-automatically selecting strategies based on model structure and cluster topology;
    3. Toolchain Layer: Provides automation tools such as distributed checkpoints, resumable training, performance profiling, and automatic hyperparameter tuning to reduce manual intervention costs;
    4. Stability Assurance Layer: Encompasses fault detection, fault-tolerant recovery, and slow node elimination mechanisms, supporting long-cycle training across thousand-card scales and above.

    5. Future Directions: From “Able to Train” to “Out-of-the-Box Training”

    The industry’s next phase goal is to enable frontier large models to achieve “out-of-the-box training” on domestic computing power—where users can initiate large-scale training directly using familiar framework interfaces without understanding underlying hardware differences. This requires continuous investment in three directions:

    • Operator Adaptation Automation: Shortening the adaptation cycle for new model architectures through compiler technology and automatic operator generation;
    • Multi-Card Synergy Transparency: Automating the selection and tuning of parallel strategies as much as possible to shield cluster topology details;
    • Ecosystem Compatibility: Maintaining strong compatibility with mainstream training frameworks and model repositories to lower migration costs.

    For developers, this means that future criteria for selecting training compute will shift from “can it run” to “does it run efficiently, stably, and worry-free”—which is precisely the hallmark of a maturing domestic computing ecosystem.

    Conclusion

    The engineering fact that a near-3-trillion parameter model completed training adaptation and ran stably for hundreds of continuous steps on domestic GPUs is the result of the synergistic effect of sharded parallelism technology, numerical stability engineering, and a complete toolchain. For practitioners, rather than focusing on specific vendors, it is more important to understand the fundamental differences between training and inference adaptation, master the evaluation methods for large-scale training health, and recognize that “systematized engineering capability” is the true moat of a computing platform. These insights will remain valid in the ongoing wave of large model infrastructure evolution.