Training Adaptation for a Nearly 3-Trillion-Parameter LLM on Domestic GPUs: A Technical Case Study
This article examines how a domestic full-featured GPU platform completed training adaptation for a flagship model with nearly 3 trillion parameters, achieving 400 consecutive stable optimizer steps on a two-node, 16-GPU cluster. It explains the difference between inference adaptation and training adaptation, details the engineering behind building a native FSDP2 multimodal training path, discusses what 400 stable steps actually validate, and outlines the four pillars required to move from one-off adaptation to a production-grade training system.
Training Adaptation for a Nearly 3-Trillion-Parameter LLM on Domestic GPUs: A Technical Case Study
1. Background: From Inference Adaptation to Training Adaptation
As model parameter counts grow from tens of billions to trillions, the underlying compute infrastructure matters more than ever. It has become common for domestic GPU vendors to announce “day-one adaptation” shortly after a major open-source model release. However, the industry should be clear-eyed about one fact: inference adaptation and training adaptation are engineering challenges of entirely different magnitudes.
Inference adaptation aims to load model weights correctly on the target chip, execute operators properly, and produce expected outputs. It focuses on operator coverage, memory footprint, and single-card throughput, with engineering cycles typically measured in days. Training adaptation, by contrast, requires the chip to support the complete backpropagation pipeline: gradient computation, parameter sharding, cross-GPU communication, optimizer state management, and numerical stability under mixed precision. A flaw in any of these links can cause the loss to diverge or training to crash.
For this reason, when technical reports place NPUs and GPUs from different vendors side by side, they usually reflect validation of inference operators or specific parallelism schemes. Such results cannot be used to conclude that “the base model was pretrained on that chip.” To judge whether a chip truly supports large-model training, one must verify that it handles the full training pipeline—from model loading and shard scheduling to gradient synchronization—while maintaining numerical stability over long runs.
Recently, a notable milestone emerged in the domestic GPU space: using a flagship all-in-one AI training/inference card and a self-developed software stack, a team completed training adaptation for a leading model vendor’s flagship model with nearly 3 trillion parameters, and achieved 400 consecutive stable optimizer updates on a two-node, 16-GPU setup. This case offers an excellent sample for analyzing the training engineering capability of domestic compute platforms.
2. The Core of Training Adaptation: Building a Native FSDP2 Multimodal Training Path
2.1 Why FSDP Is Needed
No single GPU can hold a full copy of a model with nearly 3 trillion parameters. In BF16 precision, the parameters alone require roughly 6TB of memory. Add gradients and optimizer states (Adam-family optimizers typically need state equal to twice the parameter count), and total memory demand exceeds 18TB. A distributed training framework is therefore unavoidable.
Fully Sharded Data Parallel (FSDP) is the mainstream solution today. Its core idea is to shard model parameters, gradients, and optimizer states across all devices. During forward and backward passes, full parameter shards are gathered on demand via all-gather communication and released immediately after computation, keeping per-GPU memory pressure within acceptable limits.
FSDP2, the next-generation implementation, improves on the original in several ways:
- Parameter-level sharding granularity: finer-grained parameter management reduces memory fragmentation and improves communication-computation overlap;
- Cleaner API abstractions: sharding strategy (reshard), mixed-precision policy, and activation checkpointing are decoupled, making hardware-specific tuning easier;
- Better support for multimodal training: vision encoders and language backbones in multimodal models have very different memory profiles, and FSDP2 allows differentiated sharding policies per submodule.
2.2 What the Adaptation Work Actually Involves
Building a native FSDP2 path on domestic GPUs goes far beyond “getting the framework to run.” It involves deep adaptation at three levels:
Level 1: Operator and numerical semantics alignment. Large-model training involves a massive number of primitive operators (matrix multiplication, normalization, attention, activation functions) plus many fused operators. Each operator’s numerical behavior on the target hardware must be verified individually—especially accumulation order and rounding differences under mixed precision. These subtle differences may be harmless in a single step but can amplify into loss divergence over hundreds of steps of gradient accumulation.
Level 2: Efficient implementation of communication primitives. FSDP2 performance depends heavily on collective communication primitives such as all-gather and reduce-scatter. In a two-node, 16-GPU scenario, cross-node traffic goes over the high-speed network while intra-node traffic uses the inter-chip interconnect. The communication library must perform topology-aware scheduling across both link types and achieve effective communication-computation overlap; otherwise, GPUs idle while waiting for gradient synchronization.
Level 3: Shard scheduling and memory management. Compute density varies across modules of a multimodal model, so shard and reshard timing must be carefully designed, with activation checkpointing used to balance recomputation against memory footprint.
A simplified illustration of FSDP2 shard configuration logic (pseudocode):
# Apply differentiated sharding policies per submodulefor name, module in model.named_children():if is_vision_encoder(module):# Vision encoder: compute-intensive but small; fully shard itfully_shard(module, reshard_after_forward=True)else:# Language backbone: huge parameters; release right after# forward to reduce peak memoryfully_shard(module, reshard_after_forward=True)# Finally, shard the root model as a wholefully_shard(model)
3. Stability Validation: What 400 Consecutive Steps on 16 GPUs Mean
3.1 Validation Setup
The adaptation was tested with distributed training across two nodes and 16 training/inference cards. This scale is representative in engineering terms: two nodes are the smallest complete unit of cross-node training, covering both intra-node high-speed interconnect and inter-node network communication, while 16 training processes are enough to expose scheduling defects in collective communication.
The core metric was 400 consecutive optimizer updates executed in full, with the loss curve and gradient norm remaining finite throughout—no numerical overflow (NaN/Inf) and no abnormal interruptions.
3.2 Why 400 Steps
Some readers may wonder whether 400 steps are sufficient. This needs to be understood from the perspective of engineering phases. Training adaptation validation typically proceeds in stages:
- Single-step correctness: verify that forward, backward, and optimizer update numerics match the reference implementation (or fall within tolerance);
- Short-run stability (tens to hundreds of steps): observe whether the loss decreases as expected and the gradient norm stays smooth, surfacing issues like memory leaks, communication deadlocks, and numerical drift;
- Long-run convergence (thousands to tens of thousands of steps): validate convergence quality and throughput on real data.
400 steps represent a key threshold in phase two. Experience shows that most memory leaks, communication desynchronization, and mixed-precision instabilities surface within the first few hundred steps. Finite loss and gradient norms with healthy trajectories indicate that the computation graph, communication links, and optimizer state management are all working. A healthy early training run in the monitoring logs typically looks like:
step loss grad_norm lr1 10.85 12.4 1.0e-650 9.62 8.1 5.0e-6200 8.94 5.6 2.0e-5400 8.51 4.9 3.0e-5
A slowly declining gradient norm without spikes, plus a monotonically decreasing loss, is the most intuitive sign of numerical stability.
4. From One-Off Adaptation to an Engineering System
Adapting a single model for training only proves the platform “can train.” Building a reusable engineering system is what enables “train out of the box.” Four pillars of training platform engineering can be distilled from this case:
First, continuous accumulation of operator adaptation. Model architectures evolve rapidly (MoE, new attention variants, multimodal fusion structures keep emerging). The training platform needs a fast pipeline for developing and numerically validating new operators, compressing adaptation cycles from weeks to days.
Second, deep multi-GPU coordination capabilities. Beyond FSDP, the platform must support tensor parallelism (TP), pipeline parallelism (PP), expert parallelism (EP), and their hybrid combinations, along with dynamic load balancing for the uneven workloads caused by fine-grained expert routing in MoE models.
Third, an automated toolchain. This includes observability of the training process (real-time monitoring and alerting for loss, gradient norm, memory, and communication time), checkpoint resume and automatic fault recovery, and automated bottleneck analysis. These tools determine the actual usability of large-scale training (MFU and the share of effective training time).
Fourth, validation through real training projects. Notably, this domestic GPU platform has already delivered several large-scale training efforts: from-scratch full pretraining of a 200-billion-parameter scientific foundation model, full-stack native training of a 5D world model, end-to-end training of an embodied-AI brain model, and ongoing exploration of trillion-parameter-scale model training. Pretraining from scratch—rather than merely adapting an existing model—is the strictest test of a training platform, as it demands long-term stability over thousands or tens of thousands of steps.
5. Implications for the Industry
This case offers several takeaways for LLM practitioners:
- Distinguish inference capability from training capability when evaluating compute platforms. In procurement and selection decisions, demand measured evidence of the training pipeline (consecutive steps, loss trajectory, gradient norm, MFU) rather than relying on inference demos.
- Training adaptation is systems engineering and requires an end-to-end view. Any weakness in operators, communication, memory, or scheduling becomes the bottleneck—the “bucket effect” is pronounced.
- Plan multi-cloud and multi-compute architectures early. Leveraging general-purpose cloud capabilities such as container platforms, distributed storage, and unified monitoring and alerting to build a training scheduling layer across different compute substrates can reduce dependency risk on any single hardware path and improve the elasticity of overall compute supply.
- After “can train” comes “trains well.” As toolchains mature, evaluation criteria will shift from “does it run” to a combined measure of throughput efficiency, stability, and usability.
6. Conclusion
Two nodes, 16 GPUs, 400 consecutive stable training steps—the numbers may look modest, but they mark a 0-to-1 validation of a domestic full-featured GPU on the training pipeline of a flagship model with nearly 3 trillion parameters. From operator alignment to FSDP2 shard scheduling, from cross-node communication to numerical stability guarantees, this end-to-end pipeline lays the groundwork for larger-scale, longer-duration training on domestic compute. As automated toolchains and multi-parallelism strategies continue to mature, moving frontier models on domestic GPUs from “can train” to “train out of the box” will become an important direction in the evolution of domestic AI infrastructure.
