FSDP2 Training of a Trillion-Parameter Multimodal Model on a Chinese-Made GPU: A Technical Breakdown
This article breaks down the technical constraints of adapting a 2.8-trillion-parameter multimodal model to the Moore Threads MTT S5000 accelerator and the MUSA software stack. It covers memory, communication, and scheduling limits, then walks through an FSDP2-based training path, from model loading and sharding to gradient synchronization and checkpoint recovery. It also explains what the reported results do and do not establish.
The Three Walls of Trillion-Parameter Training
As model size grows from tens of billions to trillions of parameters, the main training bottlenecks change. The first is the memory wall. In mixed-precision training, each parameter typically requires a BF16 weight, an FP32 master weight, and the first and second moments of the Adam optimizer. Together these take about 14 bytes per parameter. Gradients add roughly 2 more bytes. For a 2.8-trillion-parameter model, the weights and optimizer states alone require about 39 TB of memory. Assuming 80 GB of usable memory per card, at least about 490 cards are needed just to hold this static footprint, before counting activations and communication buffers.
The second is the communication wall. After sharding, the parameters of each layer must be gathered across cards, and gradients must be reduced. Inter-card bandwidth and the degree to which communication overlaps with computation together determine training throughput.
The third is the scheduling wall. Pipeline bubbles leave compute units idle and reduce hardware utilization, so more balanced parallel scheduling is needed.
Traditional data parallelism requires each card to hold a full copy of the model, which cannot fit a trillion-parameter model. ZeRO-DP stages 1 and 2 shard only optimizer states and gradients, while parameters remain fully replicated. FSDP shards parameters, gradients, and optimizer states together, so each card holds only 1/N of each.
Hardware and Software Prerequisites
The accelerator used is the Moore Threads MTT S5000, which is positioned for integrated training and inference. Training requires strong floating-point and matrix computation, while inference requires low latency. Memory capacity and bandwidth determine how much of the sharded model each card can hold. Finer sharding means more frequent communication, so memory capacity directly affects communication overhead.
MUSA is a unified system architecture that includes a programming language, a runtime, a driver, and low-level math libraries. The article states that MUSA optimizes distributed communication primitives and provides native support for mainstream training frameworks. When migrating code, developers need to verify the combination of framework version, MUSA version, and communication library version. The article does not disclose these version details, so readers need to confirm them in their own environment.
FSDP2 Training Path Breakdown
1. Model Loading
A multimodal model typically consists of a vision encoder, a projection layer, and a language model backbone. These components may differ in initialization method, data type, and training strategy. For example, the vision encoder may be frozen while the language model is fully fine-tuned. During loading, the parameter shapes and data types of each module must be identified, formats unified, and memory layout optimized. Text token and image patch embeddings also need to be pre-sharded according to the parallel strategy, which avoids extra data movement in later stages.
2. Shard Scheduling
N must be defined first. In pure FSDP with a single sharding group, N is the number of devices in that group, which is usually close to the global world size. In hybrid sharding, N refers only to the number of cards within a group, and replicas across groups require a separate gradient reduction. All-Gather and Reduce-Scatter operate only within a sharding group, so this scope should be the reference when verifying parallel group partitioning.
Forward computation performs three steps for each layer. First, All-Gather collects all sharded parameters of the layer and rebuilds the full weights locally. Second, matrix multiplication and activation functions run, and the non-local shards are released immediately afterward. Releasing these temporary weights is key to reducing peak memory. Third, depending on the policy, activations are either saved or checkpointed and recomputed during backpropagation, which balances memory against compute.
During the backward pass, weights are gathered again to compute gradients. Immediately after gradients are computed, Reduce-Scatter runs so each card keeps only the gradient for its local shard. That gradient is used directly to update the local optimizer states. The full gradient never needs to be aggregated on a central node.
3. Gradient Synchronization
Gradient synchronization is interleaved with the backward pass. Once a layer completes Reduce-Scatter, its synchronization is finished, without waiting for backpropagation through the entire network to end. Communication is split into smaller chunks and overlapped with the computation of subsequent layers using the event mechanism of the MUSA runtime. Whether communication time can be fully hidden depends on bandwidth, chunk size, and the ratio of communication time to compute time. The article does not provide measured overlap rates.
Long training runs make node failures hard to avoid. The article describes distributed parallel checkpointing. After a failure, training resumes from the most recent snapshot, and the cluster is reorganized with topology-aware scheduling. Recovery speed depends on storage throughput, snapshot frequency, and cluster size. The article states that recovery can be completed within minutes, but it does not describe the conditions under which this was measured.
Boundaries of the Results
The article confirms that the training pipeline has been adapted, but it does not publish throughput, scaling efficiency, convergence curves, or comparisons with other solutions. The conclusion is therefore limited to this: under the configuration described, the training pipeline runs. Whether it applies to other card counts, network topologies, framework versions, or model architectures requires separate verification.
The article states that the implementation is aligned with the sharding mechanism of PyTorch FSDP2, so training code written against standard interfaces may be migrated with minor changes. However, successful migration does not mean equivalent performance. Operator coverage, communication library behavior, and memory allocation strategies may all cause differences.
Checklist Before Deployment
- Confirm the model parameter count, precision policy, and optimizer type, then estimate the static memory footprint per card.
- Confirm the version combination of the training framework, MUSA runtime, and communication library.
- Define the sharding group size and parallel group partitioning, and verify the communication scope of All-Gather and Reduce-Scatter.
- Run forward, backward, and checkpoint saving on a small model first, then scale to the target size.
- Record per-step time, peak memory, and communication share as a baseline for scaling efficiency.
- Test the checkpoint recovery workflow and confirm that optimizer states and data loader states can be aligned.
Conclusion
This adaptation shows that a Chinese-made GPU software stack can support distributed training methods such as FSDP2, offering a verifiable training path for Chinese-made computing resources. Whether this path can run stably on larger clusters still requires public performance data and more real-world cases.
