Training a Near-Trillion-Parameter MoE Model on Domestic General-Purpose GPUs: An Adaptation Practice

    This article examines the technical difference between inference-side and training-side GPU adaptation, breaks down a native FSDP2-based training path for near-trillion-parameter MoE models, and reviews a 400-step stability test across two servers with 16 GPUs. It also covers the broader engineering evolution toward out-of-the-box training and the infrastructure challenges of the trillion-parameter era.

    Background: Why Training-Side Adaptation Differs from Inference-Side Adaptation

    In today’s AI infrastructure landscape, a common misconception is to treat “inference-side adaptation” and “training-side adaptation” as the same thing. Inference adaptation usually means transferring pretrained weights to specific hardware and running forward passes; the core challenges are operator coverage and memory bandwidth utilization. Training adaptation, by contrast, requires the hardware and software stack to fully support the entire pipeline—forward propagation, backward propagation, gradient synchronization, and optimizer updates—placing far higher demands on numerical stability, communication efficiency, memory management, and long-duration reliability.

    A widespread industry practice is for chip vendors to advertise “Day 0 support for the latest open-source LLMs” as proof of software stack compatibility. But it is important to recognize that “successful adaptation” does not mean the model was pretrained from scratch on that chip. From a technical-report perspective, some vendors validating new hardware only complete inference operator alignment and never touch the more complex gradient synchronization and parameter update stages of training. That is precisely what makes this validation meaningful—it targets the real challenges of training workloads rather than superficial inference-level compatibility.

    Core Technical Breakdown: From FSDP2 to Cross-Node Coordination

    The technical core of this adaptation effort is a native FSDP2 (Fully Sharded Data Parallel 2) multimodal training path. FSDP2, a distributed training strategy widely adopted in the industry, shards model parameters, gradients, and optimizer states across multiple compute devices, breaking through the physical memory limit of a single card. Compared with the first-generation FSDP, FSDP2 delivers systematic improvements in sharding granularity, communication overlap, and memory fragmentation control, making it particularly well suited to large-scale MoE (Mixture of Experts) training.

    From an engineering standpoint, the full training pipeline can be broken down into these key stages:

    Model loading and topology discovery: Model files at near-trillion-parameter scale typically reach hundreds of GB or even TB in size, requiring efficient sharded loading. The engineering team must complete a global tensor layout plan during initialization so each compute process loads only its own shard, avoiding memory waste from redundant reads.

    Shard scheduling and memory planning: Under FSDP2, each device holds one shard of the model parameters, but the forward pass needs All-Gather operations to reconstruct full parameter views. This requires temporary buffers in GPU memory, with compute and communication overlapped to hide latency. Specifically, while layer N is computing forward, the parameter gather for layer N+1 should already be in progress—a pipelined scheduling strategy that significantly improves hardware utilization.

    Gradient synchronization and optimizer updates: After backward propagation, gradient shards from all devices are aggregated across nodes via Reduce-Scatter, then handed to the optimizer for parameter updates. Notably, expert parallelism in MoE models introduces additional token dispatching and load-balancing issues, so gradient synchronization traffic far exceeds that of dense models, placing higher demands on network bandwidth and topology design.

    A 400-Step Stability Test on 16 GPUs Across Two Servers: An “Anti-Fragile” Engineering Test

    The validation experiment used two servers with 16 general-purpose GPU accelerator cards in total, forming a cross-node training environment. “Cross-node” means data must be exchanged over high-speed inter-server networks, where latency and bandwidth are far worse than intra-node interconnects—an extreme test of the training framework’s fault tolerance and communication scheduling.

    All 16 training processes remained fully stable across 400 consecutive optimizer updates. Two key metrics deserve attention: loss values and gradient norms. During long training runs, loss spikes and abnormal gradient norms are often precursors of divergence, while numerical overflow (such as gradient explosion under FP16) or unexpected interruptions lead directly to failure. The test validated the software stack’s numerical stability under extreme load—no gradient overflow, no process crashes, no communication timeouts. Behind this lies the coordinated operation of multiple safeguards: dynamic loss scaling in mixed-precision training, gradient clipping thresholds, and exception-retry mechanisms in the communication library.

    The choice of 400 steps was not arbitrary. At trillion-parameter scale, each training step involves trillions of floating-point operations and full-parameter gradient synchronization. Running 400 steps means the entire system—hardware, drivers, communication libraries, training framework, and upper-level algorithm logic—sustains end-to-end, fault-free coordination over hours or even tens of hours of high load. That is the most fundamental requirement large-scale training places on infrastructure.

    From “Able to Train” to “Train Out of the Box”: The Engineering Evolution

    Training adaptation validation is only the starting point; the real key to unlocking the value of domestic compute is the maturity of the engineering ecosystem. Based on results achieved so far, the technology stack has built up capability at several levels:

    Full training of a 236-billion-parameter dense model: A foundation science model with 236 billion parameters has been fully pretrained from zero initialization. This validated the software stack’s support for the complete training lifecycle—learning-rate scheduling, data loading pipelines, and checkpointing and recovery—over long-duration runs.

    Fully native vertical-scenario training: In a 5D world model project simulating the physical world, the entire chain—data processing, model construction, training, and deployment—was localized end to end. Such models involve high-dimensional spatiotemporal tensor operations, demanding especially rich and flexible operator support.

    End-to-end embodied AI model training: In a training practice for an embodied intelligence model, the full pipeline was completed, from multimodal data preprocessing to vision-language-action joint training and policy fine-tuning, providing a reference paradigm for deploying models in robotics.

    These practices share a common goal: elevating the developer experience from “writing adaptation code” to “training out of the box.” Achieving that requires not only a rich operator library, but also automated tooling for distributed strategy search, memory planning, and fault diagnosis. For example, automatically recommending the optimal parallel strategy combination (the mix of data, tensor, pipeline, and expert parallelism) for different model architectures marks the key dividing line between “usable” and “good to use.”

    Outlook: Infrastructure Challenges in the Trillion-Parameter Era

    As frontier models move toward several trillion parameters, the challenges facing training infrastructure are undergoing a qualitative shift. First is the memory wall: even with sharding strategies like FSDP2, the model shard a single device can hold is bounded by physical memory, requiring continued iteration in HBM bandwidth and capacity. Second is the communication wall: in cross-node training, the share of total training time spent on communication rises sharply as cluster scale grows, driving advances in RDMA networking, globally asynchronous communication libraries, and gradient compression.

    In the long run, the value of training adaptation and optimization shows up at two levels. At the micro level, operator fusion, memory layout optimization, and pipeline scheduling for specific model architectures can deliver multiplicative end-to-end performance gains. At the macro level, only a complete training toolchain—including automatic parallel strategy search, online profiling, resumable training, and self-healing from faults—can make large-scale model training a truly automated, reproducible infrastructure capability rather than a craft dependent on elite experts’ manual tuning.

    For AI developers and platform architects, evaluating a compute platform’s training capability should go beyond single-card peak performance to examine stability in long-duration cross-node runs, the richness of distributed strategies, and the automation level of its toolchain. The sustained investment by domestic general-purpose GPU vendors in this direction is providing more infrastructure options for autonomously training large-scale AI models.