Training a 2.8T-Parameter Multimodal Model on Domestic AI Accelerators: Technical Breakdown of FSDP2 and Full-Stack Adaptation

    This article explains why training a 2.8T-parameter multimodal model is extremely challenging, and how a domestic AI accelerator vendor completed full training adaptation using its own software stack. It breaks down the core technical components: the memory and communication bottlenecks, the evolution from FSDP to FSDP2 with per-parameter sharding, specialized handling for multimodal architectures, and the three critical stages of a complete training pipeline (model loading, sharding/scheduling, and gradient synchronization). The article also discusses the significance of training-inference integration and a self-built software stack for enterprises evaluating large-scale training infrastructure.

    Why Training a 2.8T-Parameter Model Is So Difficult

    1. The Memory Wall

    A model with 2.8 trillion parameters, stored in FP16/BF16 precision, requires approximately 5.6 TB of GPU memory for model weights alone. Adding gradients (same size as weights), optimizer states (typically several times the weight size), and activation caches brings the total memory demand to tens of terabytes. Since a single mainstream accelerator card provides only tens to slightly over a hundred GB of memory, the model must be sharded across hundreds or thousands of cards.

    2. The Communication Wall

    In data-parallel training, every optimization step requires gradient synchronization. In model-parallel training, forward and backward passes involve extensive cross-card communication. When the cluster scales to several thousand cards, communication overhead can dominate compute, becoming the limiting factor for training throughput. The design of communication topologies, bandwidth utilization, and communication–computation overlap strategies directly determines the scaling efficiency of the entire cluster.

    3. Stability and Fault Tolerance

    Training a trillion-parameter model often runs for weeks or even months. Any hardware failure, numerical overflow, or loss spike can interrupt the process. Checkpointing and resumption, automatic fault recovery, and numerical stability under mixed precision are all mandatory engineering concerns.

    FSDP2: The Evolution of Fully Sharded Data Parallelism

    The training path described in the original announcement is built on FSDP2. Understanding this parallel strategy is essential to grasping the underlying technical progress.

    From Data Parallelism to Fully Sharded Training

    Traditional data parallelism (DP) requires each device to hold a complete copy of the model, which is impossible at the trillion-parameter scale. The ZeRO optimization family proposed a staged sharding approach: optimizer states, gradients, and parameters are sharded across devices and reconstructed on demand. FSDP (Fully Sharded Data Parallel) engineering this idea: before each forward/backward pass, the parameters of the layers being computed are all-gathered, and after computation they are immediately released, leaving only the shards on each device.

    FSDP2 offers several key improvements over the first-generation FSDP:

    • Per‑parameter sharding granularity (based on DTensor): Instead of flattening multiple parameters into a single one-dimensional tensor and sharding that, FSDP2 shards each parameter individually. This allows different sharding strategies for different parameter types—for example, replicating word embeddings or the LM head to avoid unnecessary communication.
    • Better synergy with hybrid parallelism: When combining data parallelism with tensor parallelism, pipeline parallelism, or expert parallelism, the DTensor abstraction makes it natural to express the distributed layout of tensors in multiple dimensions.
    • More predictable memory management: Per‑parameter lifecycle control reduces peak memory spikes and makes memory usage more deterministic.

    Example Code Structure

    In a typical deep learning framework API, an FSDP2‑style sharding wrapper looks like this:

    1. from torch.distributed.fsdp import fully_shard
    2. # Apply fully sharding to each transformer block
    3. for block in model.layers:
    4. fully_shard(block) # per-layer wrapping, enables communication-computation overlap
    5. fully_shard(model.embedding, sharding_strategy=REPLICATE) # replicate special modules
    6. # Training loop stays the same as ordinary data parallel
    7. for batch in dataloader:
    8. loss = model(batch).loss
    9. loss.backward() # gradients are reduce-scattered automatically and remain sharded
    10. optimizer.step()

    The main benefit of per‑layer wrapping is prefetching and overlap: while layer N is computing the forward pass, the all‑gather for layer N+1 is already running in the background, hiding communication latency.

    Special Challenges in Multimodal Training

    The term “multimodal training path” means the model simultaneously processes heterogeneous input types (text, images, etc.). This adds extra complexity to the training system.

    1. Heterogeneous Sharding Strategies for Different Modules

    A multimodal model typically consists of a vision encoder, a modality alignment module, and a language model backbone. The parameter count and activation characteristics of the vision encoder differ drastically from those of the language backbone. A uniform parallel strategy across all modules is often suboptimal. A better approach is to configure sharding per module: the vision side may focus on data parallelism and activation optimization, while the language backbone uses full sharding with tensor parallelism.

    2. Data Pipeline Load Balancing

    Different modalities have very different preprocessing costs and sequence length distributions. Text samples can be tens of thousands of tokens long, while image samples involve resolution changes and patchification. A multimodal data loader must implement dynamic packing, sequence‑length bucketing, and load‑aware sampling to avoid severe straggler effects among data‑parallel replicas.

    3. Gradient Synchronization and Precision Management

    In multimodal training, the gradient magnitudes across modules vary significantly. Mixed‑precision training with loss scaling needs to be tuned independently for the visual branch, otherwise numerical anomalies in one branch can corrupt the entire training process. Setting the granularity for gradient accumulation and gradient clipping requires a trade‑off between global norm computation and local communication overhead.

    The Three Critical Stages of a Complete Training Pipeline

    The announcement highlights “from model loading, sharding scheduling, to gradient synchronization.” These stages deserve close examination.

    Model Loading

    A trillion‑parameter model is usually stored in multiple sharded files. Loading must be performed at initialization time by parsing metadata and lazily loading only the shards assigned to each process, rather than instantiating the full model on a single node and broadcasting it (which would immediately exhaust GPU memory). The common optimization is to let each process read only the file range corresponding to its own shard, using metadata validation to ensure weight integrity.

    Sharding Scheduling

    This stage determines the distribution of each parameter tensor across devices: data‑parallel shards, tensor‑parallel split dimensions, pipeline‑parallel layer partitions, and expert‑parallel routing configurations. The correctness of the sharding plan directly determines the communication volume and memory balance. In practice, the plan must be chosen based on both the model architecture and the cluster topology (e.g., the distinction between high‑bandwidth intra‑node NVLink domains and inter‑node network connections).

    Gradient Synchronization

    In a fully sharded framework, gradients are synchronized via reduce‑scatter during backpropagation, with only the sharded portions retained on each device. Optimizer states are updated independently on each shard. Key engineering optimizations include gradient bucketing (to reduce the number of communication operations), overlapping communication with backward computation, and optionally using low‑precision gradient compression to further reduce communication volume.

    Training-Inference Integration and a Self-Built Software Stack

    The announcement notes that the accelerator card used is positioned as “training‑inference integrated,” and that the software stack is self‑developed. This combination reflects an important industrial reality: competition in the large‑model training market is essentially a competition of “hardware + software stack + ecosystem.”

    • Training‑inference integration means the same hardware provides the high compute, high memory bandwidth, and high interconnect bandwidth required for training, while also serving inference workloads efficiently. This reduces the cost of migrating between separate training and inference hardware systems.
    • A self‑built software stack is valuable because it ensures completeness of framework adaptation. Training adaptation is not merely “the model can run” but requires full‑stack capabilities: operator coverage, communication library performance, distributed scheduling, mixed‑precision support, and fault‑tolerance mechanisms. A missing piece in any of these areas can significantly degrade training efficiency.

    For enterprises planning to build large‑model training capabilities, it is more useful to evaluate a computing system by:

    • Framework compatibility and operator coverage,
    • Linear scaling efficiency on large clusters,
    • Checkpointing and fault‑tolerance capabilities,
    • Maturity of the multimodal training toolchain,

    rather than looking only at peak single‑card FLOPs.

    Key Takeaways for Developers and Enterprises

    1. Open‑source large models are lowering the barrier to entry, but systems engineering skills remain the differentiator. Getting the weights is only the start. Efficient, stable training on your own hardware depends on the combined level of distributed parallelism, data engineering, and operations.

    2. Parallel strategies must be customized to the model architecture. New architectures such as multimodal models and mixture‑of‑experts do not fit a one‑size‑fits‑all parallel scheme. Modular and composable parallel configurations are the trend.

    3. The domestic AI accelerator ecosystem is maturing rapidly. The leap from inference‑only adaptation to trillion‑parameter training adaptation marks a critical threshold in operator completeness and distributed capability, offering new options for diversified compute infrastructure.

    4. Focus on end‑to‑end efficiency, not single‑point metrics. Training throughput is determined by the slowest stage among data loading, compute, communication, and scheduling. A full‑pipeline optimization approach is more practically valuable than a single‑card performance number.

    In summary, this adaptation event reflects the co‑evolution of ultra‑large‑scale model training and domestic compute infrastructure. As open‑source model sizes continue to grow and parallel training techniques mature, the engineering methodology for large‑model training will keep evolving. It is a field worth continuous attention and practice for anyone working in AI infrastructure.