2.8T-Parameter LLM Training on Chinese AI Compute Cards: A Practical Adaptation Path

    This article examines the technical path for adapting trillion-parameter LLM training to Chinese AI compute cards. It covers the memory, communication, and stability challenges of training very large models; the value of a training-inference integrated architecture; software stack adaptation; distributed sharding and parallelism strategies; and the key stages of model loading, sharding scheduling, and gradient synchronization. It concludes with practical considerations for developers and enterprises evaluating domestic compute platforms for large-scale training.

    2.8T-Parameter LLM Training on Chinese AI Compute Cards: A Practical Adaptation Path

    I. Background: What Large Model Training Demands from the Domestic Compute Stack

    Recently, the industry open-sourced a flagship large language model with 2.8 trillion parameters. The release of such an ultra-large-scale model places extremely high demands on training infrastructure. At the same time, multiple Chinese domestic GPU vendors are accelerating adaptation of their hardware and software stacks to frontier large models. One domestic full-function GPU platform announced that, based on its flagship training-and-inference integrated intelligent compute card and self-developed general-purpose compute software stack, it completed training adaptation for the model and built a native distributed training path. The work established a complete training chain from model loading and sharding scheduling to gradient synchronization.

    Behind this progress is a core issue in building the domestic compute ecosystem: hardware performance is only the foundation. Whether a platform can carry the full training workflow of a frontier model depends on the maturity of the software stack, the depth of distributed strategy adaptation, and the completeness of the engineering pipeline. This article uses this as an entry point to break down the technical essentials of trillion-parameter model training adaptation.

    II. Why Trillion-Parameter Models Are Hard to Train

    Before discussing adaptation approaches, it is worth understanding the difficulty of the problem itself.

    1. Memory wall

    2.8 trillion parameters means that even when stored in half precision (FP16/BF16), model weights alone require several TB of GPU memory. Adding optimizer states (such as momentum and variance in mixed-precision training) and gradients, actual memory demand is usually several times the parameter count. A single card or even a single machine cannot hold the complete model, so cross-device and cross-node sharding strategies are mandatory.

    2. Communication wall

    After a model is partitioned across hundreds or thousands of cards, the forward and backward passes generate large amounts of activation transfer, parameter aggregation, and gradient synchronization communication. Communication bandwidth and topology design directly determine training efficiency, and cross-node communication is especially prone to becoming a bottleneck.

    3. Stability wall

    During long training cycles, any single-point failure, numerical overflow, or scheduling anomaly can interrupt training. Engineering capabilities such as checkpoint saving and restoration, automatic fault restart, and loss anomaly monitoring are indispensable.

    III. The Value of a Training-Inference Integrated Architecture

    A notable design choice is that the adaptation work was completed on a training-inference integrated compute card, rather than an accelerator card intended only for inference. The significance of this architecture lies in the following:

    • Resource reuse: The same hardware can support both offline training tasks and online inference services, avoiding compute islands and improving overall cluster utilization.
    • Unified pipeline: Training and inference share the same software stack and operator library. Models do not need cross-platform porting from training to deployment, reducing extra costs for precision alignment and operator compatibility.
    • Elastic scheduling: Training tasks are periodic, while inference loads fluctuate. A unified resource pool can dynamically allocate resources between the two.

    For enterprise users selecting cloud GPU compute or container platforms to deploy such tasks, they should also check whether the platform provides integrated scheduling for training and inference, and whether supporting infrastructure such as monitoring and alerting, logging services, and object storage for checkpoint and dataset management is complete.

    IV. Software Stack: The Core Battleground for Adaptation

    Hardware is only the foundation. What really determines adaptation success is the software stack. A complete GPU software stack usually includes the following layers:

    1. Driver and runtime layer: Handles low-level capabilities such as device management, memory allocation, and stream scheduling.
    2. Compiler and operator layer: Provides high-performance operator libraries (matrix multiplication, attention, normalization, etc.) and just-in-time compilation, with deep optimization for common large-model operators.
    3. Framework adaptation layer: Integrates with mainstream deep learning frameworks and implements compatibility for device abstraction, distributed communication backends, and automatic differentiation.

    When adapting new hardware, the most common problems developers encounter include missing custom operators, operator precision inconsistent with reference implementations, and distributed communication backends that are not fully implemented. A typical engineering order is: first ensure single-card forward and backward correctness and numerical alignment, then validate single-machine multi-card communication, and finally scale to cross-node deployment.

    Taking the PyTorch ecosystem as an example, a typical device abstraction registration illustration is as follows:

    1. # Device abstraction illustration (pseudocode)
    2. class CustomDevice:
    3. def __init__(self, index):
    4. self.index = index
    5. # Integrate with the framework via the PrivateUse1 mechanism
    6. torch.utils.rename_privateuse1_backend("custom_gpu")
    7. # After registering operator and optimizer support, model code only needs to change the device argument
    8. model = model.to("custom_gpu:0")

    The benefit of this “minimally invasive” integration approach is that upper-layer training scripts and data processing logic require almost no changes, greatly reducing adaptation and migration costs.

    V. Distributed Training Strategies: Combined Design of Sharding and Parallelism

    Training trillion-parameter models centers on the combined use of various parallelism strategies.

    1. Data parallelism and Fully Sharded Data Parallel

    Fully Sharded Data Parallel (FSDP) is a mainstream data-parallel approach for current large-model training. Its idea is to shard model parameters, gradients, and optimizer states across devices, temporarily aggregate full parameters when needed for forward and backward computation, and release them after computation. This reduces memory usage from the “complete model” to “model shards + transient aggregation,” and is key to enabling training of ultra-large models.

    One highlight of the adaptation work is the construction of a “native FSDP2 training path.” Compared with the first-generation approach, the main improvement of FSDP2 is clearer DTensor-based sharding semantics, support for parameter-level sharding control by dimension, and more flexible combination with mechanisms such as mixed precision and gradient checkpointing. “Native” here means direct support for this path at the software stack level, rather than bypassing it through a compatibility layer, which usually implies better performance and stability.

    2. Tensor parallelism and pipeline parallelism

    For trillion-scale models, data parallelism alone is not enough. A common combination is:

    • Tensor parallelism (TP): Splits the weight matrices of a single layer by row/column across multiple cards, suitable for intra-machine interconnects with sufficient communication bandwidth.
    • Pipeline parallelism (PP): Divides the model into multiple stages by layer, distributes the stages across different devices, and executes them in a micro-batch pipeline, suitable for cross-machine scaling.
    • Expert parallelism (EP): If the model uses a mixture-of-experts structure, it also needs to be partitioned by expert dimension, which involves additional communication from dynamic routing.

    In engineering practice, it is necessary to repeatedly trade off the combination of parallelism degrees, micro-batch size, and gradient accumulation steps. Tuning usually uses throughput (tokens/s) and MFU (model FLOPs utilization) as core metrics.

    VI. Three Key Stages of the Complete Training Pipeline

    The adaptation work established a complete pipeline from model loading, sharding scheduling to gradient synchronization. These three stages correspond exactly to the places where distributed training is most error-prone.

    1. Model loading

    The weight files of a trillion-parameter model are themselves multiple TB. The loading stage must address parallel reading of sharded weight files (usually via object storage or a parallel file system), weight format conversion and validation, and GPU memory pre-allocation strategy during loading. A common optimization is “lazy loading by shard”: each process loads only the shard it is responsible for, avoiding the memory peak caused by full loading.

    2. Sharding scheduling

    The initialization stage must determine how each parameter is partitioned across devices and ensure that sharding plans are consistent across ranks. Errors at this step often appear as loss divergence after a specific step or some layers not being synchronized correctly, and debugging costs are high. In practice, numerical alignment tests (comparing single-step gradients with reference hardware) should be used to verify scheduling correctness.

    3. Gradient synchronization

    After backpropagation, each card holds local gradient shards, which must be synchronized through all-reduce or reduce-scatter operations. The degree of overlap between communication and computation is key to efficiency—ideally, communication is fully hidden behind computation. An example configuration is shown below:

    1. # FSDP2 training configuration illustration
    2. fsdp_config = {
    3. "sharding_strategy": "FULL_SHARD", # Full sharding
    4. "mixed_precision": "bf16", # Mixed precision
    5. "gradient_checkpointing": True, # Activation recomputation
    6. "backward_prefetch": "backward_pre", # Communication prefetch to improve overlap
    7. }

    VII. Implications for Developers and Enterprises

    From this adaptation practice, several general conclusions can be drawn:

    • When evaluating domestic compute solutions, do not look only at peak compute specifications. Look more at how deeply the software stack supports mainstream distributed training frameworks, especially whether key paths such as FSDP and tensor parallelism are natively supported.
    • Deploying very large models requires full-pipeline engineering capability: data pipelines, checkpoint management, failure recovery, and monitoring and alerting are all indispensable. Container scheduling, logging services, and object storage provided by cloud platforms are important supporting capabilities.
    • Training-inference integration is an effective architectural choice for reducing total cost of ownership, suitable for enterprises that need both model iteration and online serving.
    • Multimodal capabilities are becoming standard for large models, and training infrastructure needs to prepare in advance for heterogeneous data paths such as vision and audio.

    Conclusion

    The emergence of open-source trillion-parameter models and their adaptation by domestic compute platforms indicate that domestic AI infrastructure is moving from “usable” to “good to use.” For developers, beyond hardware specifications, it is more important to understand the implementation details of the distributed training software stack—this is the core variable that determines the success of large-model projects. In the future, as the software ecosystem continues to mature, the performance of domestic compute in ultra-large-scale training scenarios deserves continued attention.