Adapting Domestic AI Compute Cards for Trillion-Parameter Model Training
Recently, a major model vendor open-sourced a flagship 2.8 trillion-parameter Mixture of Experts (MoE) model. Almost simultaneously, a domestic GPU vendor announced the successful adaptation of this model for training using its flagship unified training-inference AI compute cards and proprietary software stack. This article analyzes the technical challenges of training trillion-parameter MoE models, breaks down the Fully Sharded Data Parallel (FSDP) methodology, and explores the engineering significance and practical implications for developers evaluating alternative compute hardware.
Background: The Convergence of Open-Source Ultra-Large Models and Domestic Compute Power
Recently, a major model vendor open-sourced its flagship model with 2.8 trillion parameters, representing a typical ultra-large Mixture of Experts (MoE) architecture. Almost simultaneously, a domestic GPU vendor announced that it had completed the training adaptation for this model based on its flagship unified training-inference AI compute cards and proprietary software stack. The vendor built a native Fully Sharded Data Parallel 2 (FSDP2)-style multimodal training path, bridging the complete training pipeline from model loading and parameter shard scheduling to gradient synchronization.
The value of this news lies beyond simply running a specific model on specific hardware; it validates a complete technical path: domestic compute power now possesses the engineering capability to undertake full-scale training tasks for trillion-parameter models. For developers and enterprise users, this means an additional, viable option to seriously evaluate when selecting compute for large model training. This article will dissect the key issues and general methodologies behind such adaptation work from a technical perspective.
1. Challenges of Training Trillion-Parameter MoE Models
To understand the value of this adaptation, one must first understand the training challenges of such models.
1.1 Memory Wall: The Triple Pressure of Parameters, Gradients, and Optimizer States
Taking a 2.8 trillion-parameter model as an example, even with BF16 half-precision storage, the model weights alone require about 5.6TB of GPU memory. In a training scenario, gradients (comparable to the parameter volume) and optimizer states (e.g., Adam requires two additional momentum copies, which are even larger if using FP32) must be added, leading to a total memory demand of dozens of terabytes. Since a single card typically has tens to hundreds of gigabytes of memory, the model states must be sharded across hundreds or even thousands of cards.
1.2 Communication Complexity of the MoE Architecture
MoE models use a routing mechanism to assign each token to a few experts for computation, meaning the number of activated parameters is far smaller than the total parameter count. This is an advantage during inference but introduces additional challenges during training: All-to-All communication across the expert parallelism dimension. The dynamic distribution of tokens among experts can cause uneven communication loads and hotspot expert congestion, imposing high demands on cluster network topology awareness and communication scheduling capabilities.
1.3 The Adaptation Gap in Software Stack Ecosystems
Large model training frameworks, distributed parallel libraries, and operator libraries have largely evolved around mainstream GPU ecosystems. For domestic compute platforms to undertake such training tasks, their software stacks must reach a considerable level of maturity in operator coverage, distributed communication primitives, mixed-precision support, and memory management mechanisms. This is the most difficult part of building unified training-inference capabilities.
2. Fully Sharded Data Parallel: The Backbone of the Training Pipeline
The original announcement mentioned building a native FSDP2-style multimodal training path. Fully Sharded Data Parallel (FSDP) is the mainstream paradigm for ultra-large model training today, and its core concepts are worth understanding in depth.
2.1 The Essence of Sharding Strategy
In traditional data parallelism, each card stores a complete model replica, leading to severe memory waste. FSDP, on the other hand, shards parameters, gradients, and optimizer states across all devices, with each card holding only 1/N of the model states. During the forward and backward computations for each layer, required parameters are temporarily aggregated via All-Gather and immediately released after computation. This reduces the single-card memory footprint from a “complete model” to “1/N of the complete model plus a single-layer temporary buffer,” making it possible to train trillion-parameter models on thousand-card scale clusters.
2.2 The Complete Pipeline from Model Loading to Gradient Synchronization
A viable training pipeline typically includes the following steps:
- Model Loading and Initialization: Supports distributed lazy loading to avoid memory and I/O bottlenecks caused by loading full weights at a single point. For a 2.8 trillion-parameter model, the checkpoint itself is several terabytes, making shard loading and parallel read/write a necessity.
- Shard Scheduling: Determines how parameters are sharded—whether by layer or at a finer granularity—and how to combine with pipeline parallelism, tensor parallelism, and expert parallelism. The sharding granularity directly affects the balance between communication frequency and memory peak.
- Communication and Computation Overlap: During backpropagation, gradient reduction (Reduce-Scatter) should overlap with the computation of preceding layers to maximize hardware utilization. This requires the software stack to have fine-grained stream scheduling capabilities for communication operators.
- Gradient Synchronization and Optimizer Update: Ensures gradient consistency in the sharded state and supports standard training techniques such as loss scaling and gradient clipping under mixed precision.
2.3 Specifics of Multimodal Training Paths
Multimodal models typically include a vision encoder, an alignment module, and a language model backbone, each with vastly different compute densities and memory characteristics. A training path natively supporting multimodality must allow different sub-modules to adopt different sharding and parallel strategies, and handle the load balancing of mixed image and text batches on the data flow. This is much more complex than a pure text training pipeline.
3. The Engineering Significance of Unified Training-Inference Compute Cards
“Unified training-inference” means the same hardware platform supports both high-throughput training and low-latency inference. This provides practical value to enterprises in several ways:
- Unified Resource Pool: Training and inference workloads have different peak and valley times. A unified resource pool can improve overall utilization and avoid the need to purchase and maintain separate heterogeneous clusters for each task type.
- Software-Hardware Co-optimization: A proprietary software stack can perform deep tuning for the hardware’s compute units, memory hierarchy, and interconnect bandwidth, such as through custom fused operators, communication primitives, and topology-aware scheduling.
- Ecosystem Closed-Loop Validation: Successfully running the full training of a trillion-parameter model is a comprehensive test of operator coverage, numerical stability, and long-term training fault tolerance. This is far more convincing than a single-item inference benchmark test.
4. Practical Implications for Enterprises and Developers
4.1 What to Focus on When Evaluating Domestic Compute Power
- Software Stack Maturity: Is it compatible with mainstream training frameworks and distributed parallel paradigms? What is the migration cost?
- Operator and Communication Libraries: How is the performance of communication primitives like All-to-All required by MoE?
- Stability Assurance: How robust are fault recovery and checkpoint mechanisms during ten-thousand-card-hour training?
- Toolchain Completeness: Are logging services, monitoring alerts, and performance profiling tools comprehensive? This directly determines troubleshooting efficiency.
4.2 A Progressive Migration Path
It is recommended to start with small and medium-sized models for validation training to confirm that numerical convergence behavior matches that of the reference platform, before gradually scaling up to large tasks. For inference, you can first migrate latency-insensitive offline batch tasks. Leveraging container platforms and elastic compute services provided by cloud platforms allows you to complete Proof of Concepts (PoCs) without heavy capital investment. Mainstream cloud platforms, such as Baidu AI Cloud, offer general compute and scheduling capabilities covering both training and inference scenarios, which can serve as a baseline environment for solution comparison.
4.3 Value Engineering Details Over Paper Specs
Peak compute power is only the starting point; actual training throughput depends on numerous engineering details like memory bandwidth utilization, communication overhead, and memory fragmentation control. It is advisable to use “end-to-end training throughput × convergence stability × total cost” as the evaluation framework rather than relying on a single metric.
Conclusion
The completion of training adaptation for the 2.8 trillion-parameter open-source model on domestic AI compute cards is a noteworthy signal in the large model infrastructure space: the supply of compute for ultra-large-scale training is becoming diversified. For developers, understanding the general technical principles of fully sharded parallelism, MoE communication scheduling, and multimodal training paths is of greater long-term value than focusing on any specific product. Regardless of how underlying hardware evolves, these methodologies remain the core capabilities for mastering large model training.
