Training Trillion-Parameter Models on Domestic AI Accelerators: Technical Practices and Challenges

    This article examines the recent milestone of a 2.8-trillion-parameter open-source foundation model being adapted for training on domestic AI accelerators. It breaks down the core challenges of trillion-parameter training—the memory wall, the communication wall, and software ecosystem compatibility—then explains the key technical elements of a native FSDP2 multimodal training path, including meta-device initialization, per-parameter sharding, communication-computation overlap, and distributed checkpointing. It concludes with the industry implications for heterogeneous compute in large-scale model training infrastructure.

    Background: Domestic Compute Meets Trillion-Scale Models

    A notable technical milestone recently emerged in the industry: a cloud vendor’s open-source flagship model with 2.8 trillion parameters has been declared fully adapted for training by a domestic AI accelerator vendor. This means the complete training pipeline—from model loading and sharding orchestration to gradient synchronization—can run natively outside the conventional GPU ecosystem.

    Behind this progress are two maturing technical trends. First, open-source frontier models keep growing in parameter count, placing unprecedented demands on compute supply. Second, after years of iteration, domestic hardware and software stacks have reached a baseline capability for hosting large-scale training workloads.

    For engineers working on training infrastructure, this development deserves a closer look. It is far more than a “compatibility check”—it touches distributed training architecture, operator library completeness, communication optimization, memory management, and a range of other systems engineering problems.

    Core Challenges of Trillion-Parameter Training

    The Memory Wall

    A 2.8-trillion-parameter model requires roughly 5.6 TB of memory just for weights at FP16/BF16 precision. Adding optimizer states, gradients, and activations pushes requirements far beyond any single device. The foundation of trillion-scale training is therefore “sharding”—partitioning model state across many devices.

    The mainstream approach is Fully Sharded Data Parallel (FSDP). Its core ideas are:

    • Shard model parameters, gradients, and optimizer states across devices, so each device holds only one slice of the full state;
    • During forward and backward passes, use all-gather to temporarily assemble required parameter shards on demand, then immediately release non-local shards after computation;
    • Update optimizer states only on local shards, avoiding redundant storage.

    The Communication Wall

    Sharding comes at the cost of heavy collective communication. In FSDP mode, every layer’s forward and backward pass requires all-gather, and gradient synchronization requires reduce-scatter after parameter aggregation. When clusters scale to thousands of devices, communication topology optimization becomes critical: cross-node traffic should ride high-bandwidth interconnects whenever possible, and gradient synchronization must overlap with computation to hide latency.

    The Ecosystem Adaptation Challenge

    This is the biggest hurdle for domestic accelerators. Mainstream deep learning training kernels are largely optimized for general-purpose GPU architectures. A domestic accelerator must provide:

    1. A proprietary programming model and software stack: a low-level programming model with a toolchain analogous to CUDA, enabling frameworks, operators, and communication libraries to compile and run efficiently;
    2. Operator library coverage: native high-performance implementations of attention, layernorm, RoPE, and various fused operators required by Transformer-style models;
    3. A communication library: a high-performance collective communication implementation comparable to NCCL, ensuring scaling efficiency in multi-node, multi-device training.

    Key Technical Points of the Native FSDP2 Training Path

    What “Native” Adaptation Means

    The phrase “native FSDP2 multimodal training path” carries two layers of meaning. First, FSDP2 is a new-generation fully sharded data parallel implementation. Compared with earlier versions, it uses finer-grained per-parameter sharding, allowing differentiated sharding strategies for parameters of different shapes and precisions, along with more flexible mixed-precision configuration. “Native” means the support is not emulated through a compatibility layer—the software stack directly implements FSDP2’s interfaces and runtime behavior, including all-gather and reduce-scatter kernels optimized for the accelerator’s characteristics, plus deep coordination with the memory manager.

    Second, “multimodal training path” means the adaptation goes beyond the language model backbone to cover vision encoders and cross-modal alignment modules. Multimodal training is harder because data shapes vary widely across modalities, sampling logic is more complex, and loss computation involves multi-branch fusion—placing higher robustness demands on data loading and scheduling.

    Anatomy of a Complete Training Pipeline

    A usable training pipeline includes at least the following stages:

    1. # Illustrative pseudocode: FSDP2 sharding initialization (not a product-specific API)
    2. model = build_model(config) # Build the trillion-parameter model
    3. apply_fsdp2_sharding(model, # Per-parameter sharding
    4. sharding_strategy="FULL_SHARD",
    5. mixed_precision=bf16_policy)
    6. dataloader = build_multimodal_pipeline(data_cfg) # Multimodal data pipeline
    7. trainer = Trainer(model, dataloader, comm_backend)
    8. trainer.fit(steps=train_steps) # Load -> schedule -> sync -> update
    1. Model loading: Initializing weights for an ultra-large model requires meta-device and lazy materialization techniques—parameter structures are first declared on a “meta device,” then materialized shard by shard onto the target devices, avoiding memory overflow during loading;
    2. Sharding orchestration: Automatically determines sharding granularity based on parameter sizes and device topology, with special handling for oversized single layers such as embeddings;
    3. Gradient synchronization: Performs layer-by-layer reduce-scatter during the backward pass, pipelining communication with computation;
    4. Fault tolerance via checkpointing: Distributed checkpoints save each shard’s state, ensuring resilience for long-running training jobs.

    Industry Significance and Outlook

    Completing trillion-parameter training adaptation on domestic compute validates three things. First, the operator completeness of the domestic software stack has reached a level capable of supporting frontier model training. Second, the abstraction-layer design of distributed training frameworks allows the same training code to migrate relatively smoothly across hardware backends. Third, the train-and-infer unified card architecture reduces the engineering gap between training and deployment of large models.

    That said, there is still distance between “it runs” and “it runs efficiently and stably for months.” Operator performance tuning, communication efficiency, and failure-rate control over long training cycles all remain areas of ongoing optimization. What is clear is that training infrastructure for large models is moving toward diversification, and the combination of heterogeneous compute with open-source frameworks will become an important option for the industry. For developers, mastering FSDP-style distributed training principles and understanding hardware-software co-design will be core competencies for navigating this trend.