Engineering Lessons from Adapting a Domestic GPU to Train Ultra-Large Open-Source Models
This article examines the engineering challenges of adapting an ultra-large open-source model to a domestic GPU platform for distributed training. It explains the transition from inference support to stable training, covering native FSDP2 execution, multimodal model paths, multidimensional parallelism, cross-node communication, numerical stability, and fault recovery. It also discusses the progression from training smaller foundation models to trillion-parameter systems and the remaining gap between “can train” and “ready to train out of the box.”
1. Background: Moving from “Inference-Ready” to “Training-Ready”
In the development of domestic computing ecosystems, the ability to run open-source large models smoothly for inference is often the first sign of ecosystem maturity. Supporting the stable, end-to-end training of advanced open-source models is a second—and significantly more difficult—test of the hardware and software stack.
Recent public information indicates that a domestic full-featured GPU vendor used its flagship training-and-inference accelerator and proprietary software stack to rapidly complete training adaptation for a nearly 3-trillion-parameter flagship open-source model from a leading large-model company. The industry significance of this development deserves careful examination:
- Training adaptation does not mean that the model was pretrained on the target GPU. Successful adaptation or integration generally means that the model code, parallelism strategies, and operator libraries can execute a training workflow on the target hardware. This is a different concept from the source of the compute used for the model’s original pretraining. In the industry, some foundation models have been technically validated on both NPU and GPU paths in their technical reports. Such cases are commonly understood as validation at the inference-operator level rather than an official announcement about the compute used for base-model pretraining. This distinction is important when interpreting similar news.
- Training adaptation is substantially more difficult than inference adaptation. Inference mainly focuses on operator coverage and throughput. Training must also address mixed-precision numerical stability, gradient synchronization, checkpoint recovery, memory sharding, and a broader set of system-level issues.
Using this development as a case study, this article analyzes the complete engineering path for adapting ultra-large models to heterogeneous computing platforms from a general technical perspective.
2. Core Technical Components of Training Adaptation
2.1 Building a Native Training Path
The first step in training adaptation is to make the model’s training code run natively on the target hardware rather than relying on conversion layers or compatibility patches. Public information about this adaptation indicates that a native FSDP2 multimodal training path was built, connecting the full workflow from model loading and shard scheduling to gradient synchronization.
Several key concepts are worth examining.
FSDP2, or the evolved version of Fully Sharded Data Parallel. The core idea of fully sharded data parallelism is to partition model parameters, gradients, and optimizer states across the data-parallel group. Each process gathers the parameter shards required by the current layer before computation, then releases them after computation. This reduces peak memory usage from the full model and optimizer state to approximately 1/N, where N is the number of accelerators in the sharding group.
Compared with earlier implementations based on flattened parameter wrappers, FSDP2 uses dimension-level sharding through DTensor. This provides better adaptability to heterogeneous hardware and makes it easier to combine FSDP2 with mixed precision and activation checkpointing. A conceptual training loop is shown below:
# Conceptual example: fully sharded data-parallel training loopmodel = fsdp2_wrap(model, shard_dim=0) # Shard parameters, gradients, and optimizer statesfor step, batch in enumerate(dataloader):with autocast(dtype=bfloat16): # Mixed-precision forward passloss = model(**batch).lossloss.backward() # Sharded gradients + reduce-scatteroptimizer.step() # Update sharded optimizer statesoptimizer.zero_grad(set_to_none=True)
The multimodal training path. Flagship open-source models increasingly use multimodal architectures that jointly train a vision encoder, a language model, and cross-modal alignment modules. These components have very different memory and compute characteristics: the vision side often produces large activation volumes, while the language side contains a much larger number of parameters. The sharding strategy therefore needs to be configured differently for different modules. This is one of the defining differences between a native training path and a general-purpose compatibility layer.
2.2 Selecting a Combination of Parallelism Strategies
For a model with nearly 3 trillion parameters, no single parallelism strategy can support the entire workload independently. In practice, multiple forms of parallelism are combined:
| Parallelism Dimension | Sharded Object | Communication Pattern | Primary Benefit |
|---|---|---|---|
| Data parallelism (DP/FSDP) | Parameters, gradients, and optimizer states | all-gather / reduce-scatter | Reduces memory usage and scales the training batch |
| Tensor parallelism (TP) | Weight matrices within individual layers | Frequent all-reduce | Enables computation beyond the capacity of a single device |
| Expert parallelism (EP) | MoE expert routing | all-to-all | Expands expert capacity |
| Pipeline parallelism (PP) | Network layers | Point-to-point activation transfer | Scales across the depth of the network |
Fine-grained expert parallelism has become a key technology for training Mixture-of-Experts architectures. By using smaller expert-sharding units, it can improve load balancing. To support this approach, a domestic hardware and software stack must optimize all-to-all performance in its collective communication library and provide sufficient coverage for routing-related operators.
2.3 Cross-Node Stability: What 16 Accelerators and 400 Consecutive Updates Mean
Public technical information indicates that the adaptation experiment used two servers with a total of 16 training accelerators for a cross-node joint training test. All 16 training processes completed 400 consecutive optimizer updates, while the loss and gradient norm remained finite throughout. No numerical overflow or abnormal interruption was reported.
Although this may appear to be a relatively short validation, it covers several stability dimensions that are easy to overlook in large-scale training:
- Numerical health. In mixed-precision training, the gradient norm acts as a practical indicator of numerical stability. Spikes, continuous growth, or collapse toward zero may indicate problems with initialization, learning-rate scheduling, or precision settings. Validation workflows typically use gradient clipping and loss scaling mechanisms:
# Conceptual example: numerical health monitoringtotal_norm = compute_grad_norm(model)if not torch.isfinite(total_norm):raise TrainingDivergence(step)clip_grad_norm_(model, max_norm=1.0)
Consistency of cross-node collective communication. With two servers and 16 accelerators, communication between nodes must use a high-speed interconnect. The timing and correctness of collective operations such as
reduce-scatterandall-gatherdirectly affect gradient synchronization. If one process produces inconsistent gradients, the resulting error can grow over training steps and eventually prevent convergence.Process-level fault tolerance and recoverability. The fact that all 16 training processes completed the same number of updates implies that process orchestration, failure detection, and recovery mechanisms were functional. This is a key dividing line between “the workflow runs once” and “the workflow can support long-duration training.”
At the same time, it is important to remain objective: a 400-step continuous test is an early-stage stability validation for training adaptation. It is not equivalent to full pretraining involving hundreds of billions of tokens, which would require longer runs, larger clusters, and a more complete elastic fault-tolerance system.
3. The Path Toward Training Domestic Models on Domestic Accelerators
Public information also indicates that the vendor has achieved several results in large-scale training. These include completing the end-to-end training from scratch of a 236-billion-parameter scientific foundation model, supporting the full-stack native training of what was described as the first 5D world model, and working with research institutions on the full-process training of an embodied-intelligence brain model. Training for trillion-parameter models is reportedly now in progress.
From a general technical perspective, this path shows a clear progression:
- Training models at the tens-of-billions scale from scratch: This validates the complete training framework, data pipeline, and checkpoint-resume capabilities. It is the most basic full-workflow test.
- Multimodal and world models: These test operator support for architectures that go beyond standard Transformer structures, as well as coordination between heterogeneous modules.
- Trillion-parameter models: These test parallel efficiency, communication optimization, and fault tolerance on clusters with thousands of accelerators.
Each stage represents more than a single technical breakthrough. It requires the simultaneous maturation of three capability layers: operator coverage, multi-device coordination, and automated tooling.
4. What Is Still Missing Between “Can Train” and “Train Out of the Box”?
Most domestic computing platforms can now support training in some form, but a clear gap remains between being able to train and providing an out-of-the-box training experience:
- Operator coverage and automatic fallback. When a new model architecture introduces unsupported operators, the system should automatically fall back to a general implementation instead of failing immediately.
- Automated parallelism tuning. Selecting parallelism strategies and sharding granularity still depends heavily on engineering experience. Automated search and cost models are essential for lowering the barrier to adoption.
- The quality of the compatibility layer. Compatibility with mainstream training frameworks and model repositories should allow users to change configuration without rewriting model code.
- Observability. Tooling for communication-hotspot analysis, MFU (Model FLOPs Utilization) diagnosis, and early warning of numerical anomalies determines how quickly engineers can locate and resolve problems.
5. Conclusion
The significance of this training-adaptation milestone lies not in a single breakthrough by one vendor, but in the broader transition of the domestic computing stack—from inference to training and from merely running a workflow to sustaining stable training.
For developers, general engineering capabilities such as fully sharded training, multidimensional parallelism, and numerical-stability monitoring are more valuable in the long term than any individual announcement. As the tooling continues to mature, the goal of making frontier large models trainable on domestic GPUs with minimal adaptation is gradually moving from an aspiration toward a verifiable engineering reality.
