Ultra-Large Model Training on a Domestic Compute Platform: FSDP2 Adaptation for a 2.8T-Parameter Model

    This article examines the technical practice of adapting a 2.8-trillion-parameter model for training on a domestic AI compute platform. It covers the memory and communication barriers of ultra-large training, the role of a native FSDP2 multimodal path with per-parameter sharding, and the four validation stages from checkpoint loading and sharding scheduling to forward/backward computation and gradient synchronization. It also summarizes implications for software-stack compatibility, ecosystem maturity, and training-platform selection.

    As large models scale from hundreds of billions to trillions of parameters, training demands on the compute foundation and software stack continue to rise. Recently, a team in the industry open-sourced a flagship model with 2.8 trillion parameters. A domestic compute vendor then announced that, using its integrated training-and-inference AI accelerator card and accompanying software stack, it had completed training adaptation for the model and validated the full training chain from model loading and sharding scheduling to gradient synchronization. The technical practice behind this event merits close reading by engineers focused on ultra-large model training.

    1. Why Ultra-Large Model Training Adaptation Is So Difficult

    Training at the trillion-parameter level first runs into the memory wall. Even a high-end training card with tens of gigabytes of memory per card cannot hold the full model weights, optimizer states, and gradients. In mixed-precision training, for example, optimizer states alone can consume memory equivalent to more than ten times the number of model parameters. The communication wall comes next: data parallelism, tensor parallelism, pipeline parallelism, and other strategies are combined, and inter-node gradient synchronization and activation transfer place extremely high demands on interconnect bandwidth. In addition, operator coverage and numerical precision are common challenges in adapting a domestic software stack. Large numbers of custom operators and new attention implementations must be validated and optimized one by one.

    2. Core Value of the Native FSDP2 Training Path

    A key highlight of this adaptation is the construction of a native FSDP2 multimodal training path. The core idea of FSDP (Fully Sharded Data Parallel) is to shard model parameters, gradients, and optimizer states across data-parallel replicas, perform all-gather on demand during forward and backward computation, and release the gathered data after use, thereby significantly reducing peak memory per card. Compared with the first-generation implementation, FSDP2 reconstructs sharding granularity around per-parameter sharding. Combined with the DTensor abstraction, it expresses sharding policies more precisely and combines more naturally with 2D parallelism, such as data parallelism plus tensor parallelism.

    For multimodal training, the value of FSDP2 is even more pronounced. A multimodal model typically consists of a vision encoder, a projector, and an LLM backbone, and the parameter scales of these modules differ greatly. Whole-model granularity sharding can easily cause load imbalance. Parameter-level sharding allows different wrapping policies and prefetch timing for the vision side and the language side, achieving more balanced memory usage. An illustrative policy configuration is shown below:

    1. policy = auto_wrap_policy(
    2. modules=[vision_encoder, projector, llm_backbone],
    3. min_num_params=1e8,
    4. sharding_strategy=ShardingStrategy.FULL_SHARD,
    5. )
    6. model = fully_shard(model, policy=policy, device_id=device)

    3. The Full Chain from Model Loading to Gradient Synchronization

    A complete ultra-large model training adaptation must validate at least the following four stages:

    1. Model loading: Checkpoint files for trillion-parameter models are usually measured in terabytes. Adaptation work must confirm weight-format compatibility, including tensor layout, quantization format (such as FP8/BF16 storage), and parameter name mapping, and must support sharded loading to avoid out-of-memory at a single point during loading.

    2. Sharding scheduling: At training startup, the model must be correctly partitioned across training cards. This involves construction of the device mesh, selection of partition dimensions, and configuration of activation recomputation and prefetch strategies under dynamic batching.

    3. Forward and backward computation: All operators must be validated for numerical correctness on the target hardware, with particular attention to custom operators, fused operators, and low-precision computation paths. Precision deviations are usually investigated by comparing intermediate results with a reference implementation.

    4. Gradient synchronization: Gradients produced by backpropagation must be reduced and sharded back to each replica through reduce-scatter operations, together with sharded optimizer-state updates. This stage should focus on testing the overlap efficiency of communication and computation to avoid synchronization stalls that slow overall throughput.

    4. Implications for the Industry and Developers

    This adaptation practice sends several important signals. First, the domestic compute ecosystem is moving from “inference-capable” to “training-capable,” and the integrated training-and-inference product form reduces the cost of moving between development and deployment. Second, open-source large models and open training frameworks—such as the FSDP2 route based on the PyTorch ecosystem—are becoming de facto standards for adaptation validation. As long as a software stack is fully compatible with mainstream training paradigms, it can quickly meet the training requirements of frontier models. Third, for enterprises planning to build their own training capabilities, platform selection should focus on operator coverage, completeness of parallel strategies, communication-library efficiency, and compatibility with mainstream training frameworks, rather than only on peak compute specifications.

    5. Conclusion

    Ultra-large model training adaptation is a systematic engineering effort involving coordination across hardware, communication, frameworks, and models. This practice of completing an end-to-end training chain for a trillion-parameter model on a domestic AI accelerator card demonstrates the feasibility of a domestic hardware and software stack in extreme training scenarios. It also provides a methodology developers can follow: first validate loading and operator correctness, then get sharding and parallel strategies working, and finally optimize communication and throughput. As the ecosystem continues to mature, the barrier to training multimodal and ultra-large models will be further lowered, and more teams will be able to train and iterate frontier models on their own or domestic compute platforms.