Trillion-Parameter Open-Source LLM Training on Domestic AI Compute: Practices and Lessons
This article examines the engineering practices behind adapting a domestically developed AI compute platform to train a 2.8-trillion-parameter open-source LLM. It outlines the training challenges, the end-to-end training path built with a self-developed training-inference integrated accelerator card and heterogeneous computing software stack, and key technical components such as weight sharding and lazy loading, native FSDP2 full-shard data parallelism, multimodal training support, and gradient synchronization and communication optimization. It also discusses software-hardware co-design requirements for non-mainstream GPU ecosystems and offers practical considerations for developers and enterprises evaluating large-model training infrastructure.
I. Background: Training Challenges Posed by Large Open-Source Models
Recently, the open-source community released a flagship large language model with 2.8 trillion parameters, an important milestone in the development of open-source models. The release of such an ultra-large-scale open-source model not only allows researchers and engineering teams to study the boundaries of model capabilities at a lower barrier to entry, but also places extremely high demands on underlying training infrastructure.
Against this backdrop, a domestic AI compute platform completed training adaptation for this model. Using a self-developed training-inference integrated intelligent computing accelerator card and a companion heterogeneous computing software stack, it connected the full training chain from model loading and sharding scheduling to gradient synchronization. The technical significance is that it validates the engineering feasibility of a non-mainstream GPU ecosystem in ultra-large-scale model training and provides a practical example of software-hardware co-optimization for the industry.
II. Core Technical Path for Ultra-Large-Scale Model Training
Adapting trillion-parameter model training to a specific hardware platform typically requires solving the following key problems.
1. Model Loading and Weight Management
A trillion-parameter model can occupy several TB just for model weights and cannot fit directly into a single card or even a single machine’s memory. Common engineering approaches include:
- Weight sharding: split model parameters by layer and tensor dimension and store them across compute nodes;
- Lazy loading and streaming reads: load shards on demand during training initialization to avoid peak memory overruns;
- Metadata management: establish a unified parameter naming and shard mapping table to ensure deterministic parameter location in a distributed state.
2. Fully Sharded Data Parallel (FSDP) Path
One technical highlight of this adaptation is the construction of a native FSDP2 fully sharded data parallel training path. The core idea of FSDP is to shard model parameters, gradients, and optimizer states across compute units, and to temporarily aggregate (all-gather) and release (reshard) them on demand during forward and backward computation, greatly reducing per-card memory usage. Compared with traditional data parallel (DDP), FSDP can support larger models and batch sizes with near-linear memory benefits.
A simplified FSDP training loop is shown below:
# Pseudocode: FSDP training main loopmodel = auto_wrap_model(model, shard_strategy="full_shard")optimizer = AdamW(model.parameters(), lr=1e-4)for batch in dataloader:with autocast(dtype=bfloat16):loss = model(batch) # Forward: all-gather parameters layer by layerloss.backward() # Backward: reduce sharded gradientsoptimizer.step() # Optimizer states keep only local shardsoptimizer.zero_grad()
3. Enabling the Multimodal Training Path
Current flagship models are generally moving toward multimodality, with training data containing heterogeneous inputs such as text and images. A multimodal training path needs to address:
- Unified encoding and alignment of heterogeneous data;
- Parameter isolation and joint optimization across different modality branches;
- Matching data loading throughput with compute throughput to avoid I/O bottlenecks.
This adaptation built a native multimodal training path, meaning end-to-end validation was completed from the data pipeline to the model structure, rather than remaining at the text-training level only.
4. Gradient Synchronization and Communication Optimization
In distributed training, communication overhead for gradient synchronization often determines overall scaling efficiency. Common optimization methods include:
- Gradient bucketing and compute-communication overlap, so backpropagation and all-reduce run in parallel;
- Mixed-precision training (e.g., BF16 compute and FP32 master weights) to balance precision and bandwidth;
- Topology-aware communication scheduling, prioritizing high-bandwidth intra-node interconnects to reduce cross-machine traffic.
III. Software-Hardware Co-Design: Key to Domestic Compute Adaptation
The chip’s peak compute is only the foundation; whether trillion-parameter training can run depends more on the maturity of the software stack. The heterogeneous computing software stack accompanying the domestic AI compute platform needs to provide:
- A CUDA-style programming model and operator library, so mainstream training frameworks can migrate at low cost;
- A high-performance collective communication library supporting core primitives such as all-gather, all-reduce, and reduce-scatter;
- Compiler and auto-tuning capabilities to generate efficient kernels for specific model structures;
- Framework-level adaptation, including distributed strategies, mixed precision, checkpoint saving and restoration, and other full-training-process capabilities.
“Training-inference integration” is another notable positioning: the same hardware supports both large-scale training and online inference, helping reduce the complexity and cost of the overall infrastructure.
IV. Implications for Developers and Enterprises
- Open-source large models lower the barrier to technical research, but training and fine-tuning still require careful assessment of compute, storage, and network conditions;
- When choosing a compute platform, beyond peak compute, teams should focus on software stack maturity, distributed scaling efficiency, and ecosystem compatibility;
- For most teams, starting from open-source weights for efficient fine-tuning (such as LoRA-style methods) or using cloud-hosted training services is often more cost-effective than pretraining from scratch; general cloud capabilities such as container services, object storage, and monitoring and alerting can significantly simplify the training engineering chain;
- Software-hardware co-optimization is a core competitiveness in the large-model era, and the continued evolution of domestic compute ecosystems deserves ongoing attention.
V. Conclusion
The training adaptation of a trillion-parameter open-source model to a domestic AI compute platform together outlines the trend toward diversified large-model infrastructure. For technical teams, understanding underlying mechanisms such as FSDP, gradient synchronization, and multimodal training has more long-term value than focusing on a single parameter scale. As the open-source ecosystem and domestic software and hardware continue to reinforce each other, the engineering barrier to large-scale model training is expected to keep decreasing, allowing more organizations to participate in the R&D and application of frontier models.
