What to Consider When Adapting Domestic GPUs for Ultra-Large Model Training
Recently, a domestic GPU company reported validating a near-three-trillion-parameter open-source large model in a dual-node, 16-GPU environment. However, without full training configurations, this remains a phased validation rather than proof of long-term pre-training. This article explores the key factors in adapting domestic GPUs for ultra-large model training, including the differences between inference and training adaptation, VRAM calculations, and the critical stages of the training pipeline such as model loading, sharding scheduling, and gradient synchronization.
Recently, public reports indicated that a domestic GPU enterprise completed an adaptation validation for a near-three-trillion-parameter open-source large language model (LLM) in a dual-node, 16-GPU environment, utilizing its flagship AI training and inference card and proprietary software stack. The report mentioned that during approximately several hundred continuous optimizer update steps, the loss and gradient norm remained controlled.
The report did not disclose the full training configuration, such as total VRAM, parallel strategy, whether offloading was used, or whether only partial parameters were updated. These conditions determine the actual meaning of the results. Therefore, this article treats the result as a phased validation rather than evidence of completing long-term pre-training for a trillion-scale model.
I. Differences Between Inference and Training Adaptation
When discussing the relationship between large models and domestic chips, a common misconception is equating “Day 0 adaptation” with “being able to complete pre-training on this chip.” The engineering difficulties between the two differ significantly.
The core of inference adaptation is correctly mapping the model’s forward computation graph to the target hardware. The focus is on operator coverage, precision alignment, and throughput optimization.
Training adaptation additionally requires backward propagation, gradient synchronization, and optimizer state updates to remain numerically stable over long periods. Any failure in floating-point error accumulation, communication timeouts, or out-of-memory (OOM) errors will cause training to fail.
Therefore, materials that only validate inference operators cannot prove that the pre-training pipeline is ready. To determine whether an adaptation is meaningful, one should first look at which segment of the pipeline it validates.
II. Calculating the VRAM Requirement
Model size is the first number to consider when assessing training feasibility. In mixed-precision Adam training, each parameter occupies approximately 16 bytes, including BF16 weights, gradients, FP32 master weights, and two optimizer states.
Based on this estimate, the complete training state for a 3-trillion-parameter model requires about 48TB. BF16 weights alone take up about 6TB. The total VRAM of a dual-node, 16-GPU setup is far below 48TB. Even if a large per-GPU VRAM value is assumed, it is difficult to accommodate the entire training state.
This does not necessarily mean the reported results are incorrect. Common explanations include: using Offload to place partial states in host memory or disk; adopting Mixture of Experts (MoE), where each token only activates a few experts, but the training state still needs to cover all experts; or only updating adapters or partial parameters. Each approach has a different significance, and determining which one was used requires the complete configuration.
III. Three Key Stages of the Training Pipeline
1. Model Loading and Weight Initialization
Weight files are large, and there are three types of tasks to handle during the training startup phase:
- Mapping the model definition to the hardware-side tensor layout, including sharding rules for sliced tensors;
- Weight conversion and numerical validation under mixed precision formats like BF16 and FP16;
- During checkpoint resumption, restoring all parameters and optimizer states from sharded checkpoints.
Storage read bandwidth also affects startup time. The larger the checkpoint, the longer it takes to save and restore, increasing fault recovery costs.
2. Sharding Scheduling and VRAM Optimization
Fully Sharded Data Parallel (FSDP-like) solutions slice parameters, gradients, and optimizer states across different devices. PyTorch’s FSDP2 uses per-parameter sharding, allowing for finer trade-offs between communication volume and VRAM usage. The following pseudocode only illustrates the scheduling order and is not directly runnable:
# Non-runnable pseudocode, only illustrates scheduling order; refer to the specific framework version's documentation for actual interfacesfor step in range(max_steps):# Before forward pass, gather the required parameter shards for the current layer on demand and release after useloss = model(batch)# During backward pass, gradients are reduced and distributed to each device by shardloss.backward()# Each device only updates the optimizer state shard it is responsible for locallyoptimizer.step()optimizer.zero_grad()
For domestic software stacks, the challenge is not running this scheduling logic, but deeply integrating it with the proprietary compiler, runtime, and memory management. Whether communication and computation can overlap during layer-by-layer parameter gathering directly determines training throughput.
3. Gradient Synchronization and Collective Communication
Cross-node training relies on collective communication operations like AllReduce and ReduceScatter. Data in a dual-node, 16-GPU setup must traverse multiple layers of topology, such as inter-GPU interconnects, PCIe, NICs, and switches. Intra-node bandwidth is typically much higher than inter-node bandwidth, so communication pattern design directly impacts efficiency.
When evaluating communication efficiency, three metrics should be monitored: the proportion of communication time in a single step, the degree of overlap between communication and computation, and the fluctuation of step time across multiple runs. Looking only at total throughput makes it difficult to identify communication bottlenecks.
The report mentioned that 16 training processes completed continuous updates without interruption. This indicates that the communication library can run stably at this scale. However, the report did not provide the communication time ratio or the results of fault injection or fault tolerance testing.
