Adapting Large Models to Domestic Heterogeneous Compute: A Full-Stack Analysis of Two-Node, 16-Card Training
As large language and multimodal models approach trillion-parameter scales, training infrastructure faces unprecedented challenges. This article examines the engineering path used to adapt a nearly 3-trillion-parameter flagship model to domestic heterogeneous AI accelerators, focusing on native FSDP2 multimodal training, memory and communication scheduling, 16-card stability validation, numerical safety, fault tolerance, and the evolution from isolated compute capabilities to full-stack support for large-scale model training.
As large language models (LLMs) and multimodal models continue to scale toward the trillion-parameter range, the underlying compute clusters face unprecedented demands. Recently, an industry team completed training adaptation for a nearly 3-trillion-parameter flagship model using high-end AI accelerators and an accompanying software stack for both training and inference.
This work demonstrates the engineering potential of domestic heterogeneous compute for extremely large models and provides a valuable reference for the full training stack of distributed large-model systems. This article examines the key technical path, stability validation mechanisms, and evolution of the engineering system behind the adaptation.
1. Clarifying the Core Concepts: Training Adaptation vs. Foundation-Model Pretraining
Discussions about adapting large models to new compute platforms often conflate several different concepts. It is important to distinguish between adapting an advanced open-source model for training and achieving Day 0 support for a compute architecture. Successfully running adaptation or inference does not mean that the foundation model was pretrained from scratch on that accelerator.
In many technical reports, parallel validation across different hardware platforms focuses on inference-side operator validation or basic fine-tuning tests rather than original foundation-model pretraining.
True training adaptation requires the underlying compute system to support the entire closed loop, including:
- Model loading
- Sharded scheduling
- Forward and backward computation
- Gradient synchronization
- Optimizer-state updates
This means that an accelerator vendor must provide more than hardware. It must also build a software engineering stack capable of supporting stable, end-to-end training for complex frontier models.
2. Technical Approach: Building Native FSDP2 Multimodal Training
For the nearly 3-trillion-parameter model, the central technical achievement was the construction of a native FSDP2 multimodal training path. This path connected the complete workflow, from model loading through gradient synchronization.
FSDP, or Fully Sharded Data Parallel, is a mainstream parallelism strategy for training extremely large models. Unlike conventional data parallelism, FSDP shards model parameters, gradients, and optimizer states across multiple accelerators. This significantly reduces memory consumption on each card and makes it possible to train very large models with limited hardware resources.
Building a native FSDP2 implementation places demanding requirements on both the software and hardware stacks.
Model loading and memory scheduling
A single accelerator cannot hold a model with trillions of parameters. The system must therefore distribute model weights and optimizer states evenly across two nodes and 16 cards. During computation, the required shards must be loaded dynamically on demand.
Sharded scheduling for forward and backward computation
Before computing a layer, the system must use collective communication, such as All-Gather, to collect the complete parameters required by that layer. Once computation is complete, unnecessary data must be released immediately through operations such as Reduce-Scatter.
This fine-grained scheduling places strict demands on memory management within the software stack and on the efficient use of communication bandwidth.
Gradient synchronization
During backpropagation, gradients must be synchronized efficiently across nodes. In two-node, 16-card training, network bandwidth can become a bottleneck and introduce synchronization delays. Optimizing collective communication so that it overlaps with computation as much as possible is therefore essential for maintaining training efficiency.
3. Stability Validation in Practice: Technical Considerations for Continuous Two-Node, 16-Card Execution
Training stability is one of the most important indicators of whether large-model compute adaptation has succeeded. In the technical evaluation, two nodes equipped with a total of 16 high-end AI accelerators were used for cross-node joint training. All 16 training processes completed 400 consecutive optimizer updates successfully.
This result reflects several important engineering safeguards.
Bounded loss and gradient norms
During the 400-step optimization run, the loss curve maintained a normal downward trend, while the gradient norm remained finite throughout. This indicates that the underlying numerical computation was functioning correctly, without gradient explosion or gradient vanishing.
Protection against numerical overflow
Numerical overflow, including NaN and Inf values, is a common challenge when training extremely large models. Avoiding these issues typically depends on the quality of the mixed-precision training framework, including BF16 or FP16 support.
The system must provide dynamic loss scaling. When gradient overflow is detected, it should automatically skip the current update and adjust the scaling factor, allowing training to continue without interruption.
Fault tolerance for unexpected interruptions
Cross-node distributed training is highly sensitive to hardware instability and temporary network interruptions. The ability of all 16 processes to complete 400 consecutive optimization steps indicates that the underlying drivers and communication middleware provide a high level of fault tolerance and recovery capability. It also indirectly validates the effectiveness of checkpoint-based resume training.
4. Evolution of the Engineering Stack: From Isolated Compute to Native Full-Stack Support
Large-model training is not simply a matter of adding more accelerator cards. It is a complex systems engineering effort. The success of this adaptation indicates that domestic compute platforms are developing the ability to support frontier models across the full path—from rapid inference deployment to stable, end-to-end training.
More examples of training domestic models on domestic heterogeneous compute are emerging across the industry. These include complete from-scratch training of scientific foundation models with hundreds of billions of parameters, native full-stack training of 5D world models, and end-to-end training of embodied intelligence models.
Together, these cases suggest that domestic compute platforms are moving rapidly toward practical training for trillion-parameter models.
Cloud service providers also play an important role in this evolution. Providers such as Baidu AI Cloud offer high-performance compute clusters, large-capacity object storage, distributed file systems, and highly available container orchestration platforms that form the infrastructure foundation for large-model training.
Combined with mature logging, monitoring, and alerting systems, a cloud-native architecture can shield developers from much of the complexity of the underlying hardware and allow them to focus more directly on optimizing model algorithms.
Looking ahead, as automatic operator adaptation improves, multi-card and multi-node communication becomes more efficient, and end-to-end automation toolchains mature, heterogeneous compute for large-model training will move from “able to run” toward “ready to train out of the box.”
This transition will be an important sign of a maturing domestic compute ecosystem and a necessary step toward making artificial general intelligence technologies more accessible and scalable.
