How Domestic AI Accelerators Are Adapting to Training Trillion-Parameter Models

    Training a 2.8-trillion-parameter multimodal model is a demanding test of AI infrastructure, requiring massive memory capacity, high compute density, efficient distributed communication, and a mature software stack. This article analyzes how a domestic AI accelerator platform can support the full training workflow through native FSDP2 integration, covering hardware capabilities, heterogeneous software support, sharding, communication scheduling, multimodal data processing, and long-running training validation. It also outlines the broader implications for the development of non-GPU AI infrastructure.

    1. Why Trillion-Parameter Training Is a Critical Test for Domestic AI Infrastructure

    The recent release of a flagship open model with 2.8 trillion parameters has raised the requirements for training infrastructure to an unprecedented level. Such models need not only enormous memory capacity and high compute density, but also a mature software stack capable of supporting distributed training at scale.

    For domestic AI accelerators, the ability to support the complete training workflow for a model of this size is an important indicator of hardware and software maturity.

    According to publicly available information, a domestic GPU vendor used its flagship integrated training-and-inference accelerator and proprietary heterogeneous computing stack to adapt the model for training. The project established a native FSDP2-based multimodal training path, covering the full workflow from model loading and sharding to gradient synchronization.

    This progress is worth examining from an engineering perspective. What are the main challenges? Which parts of the training stack must be adapted? This article addresses these questions.

    2. Core Challenges in Training Extremely Large Models

    Before discussing the adaptation strategy, it is useful to understand the main bottlenecks associated with trillion-parameter training.

    2.1 The Memory Wall

    With 2.8 trillion parameters, storing the model weights alone requires approximately 5.6 TB of memory when using FP16 or BF16. This is far beyond the capacity of a single accelerator.

    The total requirement becomes much larger when optimizer states and activations are included. For example, AdamW momentum and second-moment states are typically stored in FP32 and can require more than 12 times the parameter storage. The overall memory footprint can therefore reach tens of terabytes.

    Data parallelism along a single dimension is not sufficient to address this problem. A combination of multiple parallelism strategies is required.

    2.2 Communication Bottlenecks

    In a large cluster, gradient synchronization, parameter broadcasting, and activation transfers generate enormous communication traffic. If computation and communication are not properly overlapped, accelerator utilization can drop significantly.

    Communication across nodes is further constrained by network bandwidth and topology. This requires careful scheduling and optimization of collective communication operations.

    2.3 The Engineering Complexity of Multimodal Data

    The model uses a multimodal architecture, with training data that includes text, images, and other heterogeneous inputs. Different modalities have different preprocessing pipelines, sequence-length distributions, and packing strategies.

    As a result, data loading and preprocessing can easily become a bottleneck for the entire training system.

    3. Technical Breakdown of the Adaptation Strategy

    3.1 Hardware: The Role of an Integrated Training-and-Inference Accelerator

    An integrated training-and-inference accelerator is designed to support both large-scale model training and high-throughput inference within the same hardware generation.

    This requires a balance among memory capacity, interconnect bandwidth, and compute density. For training workloads, the key factors include:

    • Per-device memory capacity: Determines sharding granularity and the flexibility of parallelism strategies.
    • Inter-device interconnect bandwidth: Affects the communication overhead of tensor and pipeline parallelism.
    • Inter-node networking: Large-scale collective operations such as AllReduce and AllGather typically require high-bandwidth, low-latency networks.

    3.2 The Software Stack: An Equivalent to the CUDA Layer for Heterogeneous Computing

    A domestic accelerator needs a complete software stack that includes drivers, runtimes, communication libraries, operator libraries, compilers, and compatibility layers for mainstream training frameworks.

    For large-model training, the stack must provide:

    1. Broad operator coverage: Core Transformer operators, including matrix multiplication, LayerNorm, rotary position embeddings, and various attention implementations, need high-performance support.
    2. Distributed collective communication: Operations such as AllReduce, ReduceScatter, and AllGather must provide semantics compatible with NCCL-style communication libraries.
    3. Framework compatibility: Distributed components such as FSDP and Megatron-style parallelism need to work transparently on the target hardware.

    3.3 Why a Native FSDP2 Training Path Matters

    Fully Sharded Data Parallel (FSDP) partitions model parameters, gradients, and optimizer states across a data-parallel group. Parameters are gathered with AllGather only when needed, which significantly reduces memory usage on each device.

    Compared with earlier hook-based implementations, FSDP2 uses per-parameter DTensor as its sharding primitive. This enables finer-grained partitioning and better compatibility with features such as torch.compile.

    A “native FSDP2 path” means that the work goes beyond running a simple demonstration. It requires completing a series of system-level tasks:

    1. # FSDP2 sharding initialization example (pseudocode)
    2. from torch.distributed.fsdp import fully_shard
    3. for layer_id, layer in enumerate(model.blocks):
    4. fully_shard(layer) # Shard each layer to reduce peak memory
    5. fully_shard(model) # Apply sharding to the root module

    Key engineering areas include:

    • Sharding scheduling: Select appropriate sharding units, such as layer-wise or module-wise sharding. Parameters must be gathered and released on demand during forward and backward passes to control peak memory usage.
    • Gradient synchronization: Overlap ReduceScatter with gradient computation so that communication is hidden behind computation as much as possible.
    • Multimodal path integration: Apply a consistent sharding and scheduling strategy to both the vision encoder and the language-model backbone, avoiding separate and incompatible memory or communication policies.
    • Mixed precision and checkpointing: Use BF16 for computation while storing master weights and optimizer states in sharded FP32 format. Asynchronous checkpointing can improve reliability during long-running training.

    3.4 Validating the Complete Training Workflow

    Completing the full training path generally means validating all of the following stages:

    1. Model loading: Efficiently load trillion-parameter weights and initialize sharding without creating excessive memory spikes.
    2. Data pipeline: Support distributed sampling, preprocessing, and prefetching for multimodal data.
    3. Forward and backward computation: Ensure that all operators execute correctly on the proprietary hardware with acceptable performance.
    4. Gradient synchronization and optimizer updates: Match the numerical behavior of mainstream GPU clusters and reproduce comparable loss curves.
    5. Convergence validation: Confirm that the loss decreases stably during long training runs without numerical anomalies.

    4. Implications for the Industry

    4.1 From Inference Capability to Training Capability

    Inference places considerably fewer demands on the software stack than training. Successfully adapting a trillion-parameter model for training means that the accelerator has been tested across operators, communication libraries, and framework integration in a highly complex scenario.

    This represents an important step in the maturity of domestic AI infrastructure.

    4.2 Mutual Reinforcement Between Open Models and Heterogeneous Hardware

    Open models provide public and reproducible benchmarks for heterogeneous hardware. At the same time, stronger hardware compatibility lowers the barrier for developers who want to use open models on alternative accelerator platforms.

    Together, these trends can create a positive feedback loop between open-model ecosystems and heterogeneous computing infrastructure.

    4.3 Practical Recommendations for Engineering Teams

    Teams planning to train large models on heterogeneous accelerators should consider the following practices:

    • Validate equivalence at smaller scale first: Use smaller models to verify that loss curves and numerical behavior align with mainstream training clusters.
    • Prefer native distributed solutions such as FSDP2: Framework-native and actively maintained parallelism strategies can reduce long-term maintenance costs.
    • Establish communication performance baselines: Regularly benchmark collective communication bandwidth and identify insufficient overlap between communication and computation.
    • Prioritize fault tolerance and observability: Extremely long training jobs require automatic checkpointing, anomaly detection, and continuous monitoring of training metrics.

    5. Conclusion

    Adapting a trillion-parameter model for training is a system-level engineering project involving memory management, distributed parallelism, communication optimization, and multimodal data processing.

    The adaptation described here indicates that domestic AI accelerators are expanding their capabilities on the training side. As software stacks continue to mature and open-source ecosystems grow, the path toward using heterogeneous computing infrastructure for frontier-model development will become increasingly practical and well defined.