Adapting Domestic Compute for Trillion-Parameter Open-Source Models: A Technical Breakdown of a 10,000+ GPU Training Pipeline

    This article examines the engineering work required to train ultra-large open-source language models on domestic AI accelerators. Using a recent 2.8-trillion-parameter model adaptation as an example, it explains the memory, communication, compute, and stability challenges of trillion-parameter training; reviews FSDP2, hybrid parallelism, gradient synchronization, multimodal data paths, and full-chain validation; and summarizes the operator, framework, communication, and benchmarking methodology behind domestic software-stack adaptation. It concludes with implications for heterogeneous compute ecosystems and developer skills.

    1. Background: Open-Source Large Models Set New Requirements for Compute Ecosystems

    In recent years, open-source large language models with parameter counts in the trillions have continued to emerge. These models have a dual significance. On one hand, the open-source community can use a shared technical baseline for secondary development and capability validation, accelerating technical iteration across the industry. On the other hand, ultra-large parameter counts impose extremely strict requirements on underlying training infrastructure. Whether a model can run through the full training process on a specific hardware platform has become an important benchmark for the maturity of that compute platform.

    Recently, a research team open-sourced a flagship model with 2.8 trillion parameters. A China-based GPU vendor subsequently announced that, using its flagship AI training-and-inference integrated accelerator card and self-developed software stack, it had completed training adaptation for the model. The core value of this event is that it validates the end-to-end usability of a domestic AI compute platform in ultra-large model training scenarios, rather than merely functional compatibility on the inference side.

    2. Core Challenges in Trillion-Parameter Model Training

    Before discussing adaptation techniques, it is necessary to understand why training such models is difficult.

    1. Memory wall. The memory capacity of a single accelerator card is typically in the range of tens of GB. A 2.8-trillion-parameter model, even when storing weights in half precision, requires several TB of memory space. Adding optimizer states, activations, and gradients further amplifies memory demand. A single card, or even a single machine, cannot hold the complete model, so multi-machine, multi-card collaboration is mandatory.

    2. Communication wall. Strategies such as data parallelism, tensor parallelism, and pipeline parallelism introduce large amounts of cross-card and cross-machine communication. Insufficient communication bandwidth or poorly designed topology can cause compute units to wait for long periods, sharply reducing training efficiency.

    3. Compute wall. The forward and backward computation volumes of a trillion-parameter model are enormous. If compute utilization is low, the training cycle will stretch to an unacceptable length, directly affecting R&D cadence and cost.

    4. Stability wall. Training cycles last weeks or even months, and any single-point failure can interrupt a job. Checkpoint resumption, fault detection, and automatic recovery are essential engineering capabilities.

    3. Key Technical Stages of Training Adaptation

    Using the publicly disclosed technical approach as an example, the adaptation work built a native FSDP2 multimodal training path and connected the full training chain from model loading and sharding scheduling to gradient synchronization. The following sections analyze each stage.

    3.1 Fully Sharded Data Parallelism (FSDP)

    The core idea of FSDP is to shard model parameters, gradients, and optimizer states within a data-parallel group. During training, the required shards are temporarily gathered for the current computation and released after use. Compared with traditional pure data parallelism, FSDP compresses memory usage from “a full model per card” to “only shards per card,” which is a prerequisite for launching a trillion-parameter model as a single task. As a new-generation implementation, FSDP2 provides finer control over sharding granularity and memory management. Combined with activation recomputation and CPU offload, it can further approach the theoretical lower bound of memory usage.

    The sharding logic can be abstracted as follows:

    1. # Pseudocode: core flow of fully sharded data parallelism
    2. for batch in dataloader:
    3. with all_gather_sharded_params(): # temporarily gather current layer parameters
    4. loss = model_forward(batch) # forward pass
    5. loss.backward() # backward pass; gradients reduced by shard
    6. optimizer.step() # update sharded optimizer states
    7. release_sharded_params() # release non-local shards

    3.2 Coordinated Design of Hybrid Parallel Strategies

    FSDP alone is not sufficient for all scenarios. Data parallelism (DP), tensor parallelism (TP), pipeline parallelism (PP), and context parallelism (CP) usually need to be combined. TP splits weight matrices within a single layer and is suitable for high-bandwidth intra-node interconnects. PP splits the model by layer, introduces low cross-machine communication, and is suitable for cross-machine scaling. DP expands sample throughput at the outer level. The ratio among these strategies must be repeatedly tuned according to model structure and cluster topology. Any imbalance can cause obvious pipeline bubbles or communication congestion.

    3.3 Gradient Synchronization and Communication Optimization

    The key point in gradient synchronization is overlapping communication with computation. Gradient bucketing and batched reduction are commonly used. While backward computation proceeds, gradient shards that are ready can asynchronously initiate AllReduce or ReduceScatter, so that communication time is masked by computation time as much as possible. In addition, the communication library’s awareness of and scheduling against the underlying network topology—such as intra-node high-speed interconnects and inter-node RDMA networks—directly determines scaling efficiency on large clusters.

    3.4 Building a Multimodal Training Path

    Training flagship models often involves mixed processing of text, image, and other multimodal data. A multimodal training path needs to solve packing, sampling, and sequence-length balancing for samples of different modalities at the data-loading layer, and handle feature alignment between the vision encoder and the language model at the model layer. Building such a path natively means that everything from the data pipeline to the parallel strategy is adapted for mixed-modal inputs, rather than simply reusing a text-only training framework.

    3.5 Connecting the Full Training Chain

    From model loading and sharding scheduling to gradient synchronization, the absence of any stage prevents the training loop from closing. “Connecting the full chain” actually includes three layers of validation. At the functional level, the model must initialize correctly and complete one forward and backward computation. At the numerical level, the loss curve over multiple training steps must be consistent with the convergence trend of a reference implementation. At the performance level, compute utilization on a large cluster must reach an engineering-usable level. These three layers of validation are progressive and together form an objective standard for determining that “training adaptation is complete.”

    4. Adaptation Methodology for Domestic Compute Software Stacks

    For domestic hardware platforms, completing training adaptation for frontier open-source models generally follows a similar engineering methodology:

    1. Operator coverage and precision alignment. Inventory the operators involved in the model, fill missing operators in the self-developed operator library, and ensure computational precision is consistent with mainstream frameworks through layer-by-layer numerical comparison.

    2. Framework compatibility layer. Provide programming interfaces compatible with mainstream distributed training frameworks to reduce migration costs for upstream model code, so that community models can run on the new platform with minimal changes.

    3. Communication library and topology adaptation. Optimize collective communication implementations for the interconnect architecture of self-developed accelerator cards to ensure large-scale scaling efficiency.

    4. End-to-end benchmark validation. Select representative open-source large models as benchmark workloads to validate training throughput, memory efficiency, and long-running stability.

    The significance of this methodology is that once a flagship open-source model can run successfully, it means the software stack has reached a relatively high level of maturity in operator coverage, parallel capability, and communication efficiency. Adaptation for training and fine-tuning models at mid- and downstream scales will then be significantly accelerated.

    5. Industry Implications and Outlook

    This adaptation practice sends several noteworthy signals.

    First, open-source large models are becoming a touchstone for heterogeneous compute platforms. By adapting the same open-source model, the capability differences among different compute platforms become comparable, which helps the industry establish a more objective evaluation system.

    Second, integrated training and inference is becoming a mainstream direction for domestic AI computing products. The completeness of training adaptation directly reflects the upper limit of a platform’s capability, while inference deployment relates to the scale of real-world adoption. Only coordinated evolution of the two can form a complete ecosystem.

    Third, the autonomy and completeness of the software stack are increasingly critical. Hardware specifications are important, but what determines user migration cost is the overall maturity of the operator library, communication library, distributed framework, and toolchain.

    It can be expected that, as more trillion-parameter open-source models appear and domestic compute software stacks continue to mature, a technical ecosystem around “open-source models + diverse compute” will take shape faster, and compute choices for large-model training will move from a single path toward diverse, complementary options. For developers, focusing on the evolution of general technical capabilities such as hybrid parallelism, memory optimization, and distributed training is more conducive to building long-term competitiveness than chasing individual products.