Training Adaptation of Large-Scale Models on Domestic GPUs: A Link-Level Verification Practice
This article examines the key differences between inference-only Day-0 adaptation and full training adaptation for large language models on domestic GPU accelerators. It details the construction of an FSDP2-based training pipeline, including parameter sharding strategies, mixed-precision considerations, and distributed communication patterns. Through a dual-node 16-card validation spanning 400 optimizer steps, the article clarifies what such a short-run test can and cannot prove, and provides a practical checklist for evaluating training stability claims. The discussion is intended to help engineers and technical evaluators separate verifiable training evidence from inference-level results when assessing hardware–software stack readiness for large-scale model pre-training.
1. Background: What Training Adaptation Actually Covers
A domestic GPU vendor recently announced that its training-inference integrated accelerator card, together with its proprietary software stack, has completed training adaptation for an open-source model with approximately 3 trillion parameters released by an AI company. The key point of this announcement lies in the nature of the adaptation work: it targets the training scenario, covering forward computation, backward propagation, and optimizer updates. This is fundamentally different from the inference-side Day-0 adaptation commonly seen in the industry.
These two types of adaptation must be evaluated separately. Inference adaptation verifies that a model can produce correct outputs on a given chip. Training adaptation verifies that the model can continuously update its parameters on that chip. The acceptance criteria for the two differ significantly, and conflating them can easily lead to overstated conclusions.
2. Inference Day-0 Adaptation vs. Training Adaptation
| Dimension | Inference Day-0 Adaptation | Training Adaptation |
|---|---|---|
| Core work | Inference operators, weight loading, inference engine integration | Forward and backward operators, optimizer operators, distributed frameworks |
| Compute characteristics | Fixed compute graph, no gradient backpropagation | Requires gradient backpropagation and parameter updates; training state changes continuously |
| Precision requirements | Output alignment with reference implementation | Gradients and loss must remain finite over extended periods; no overflow |
| Distributed capability | Primarily single-node or inference-only parallelism | Data, tensor, pipeline, expert parallelism, and parameter sharding work in concert |
| Stability requirements | Correct results for individual requests | Continuous operation over tens of thousands of steps; checkpointing and fault recovery |
| Typical validation metrics | Output consistency, inference throughput | Optimizer step count, loss and gradient-norm curves, tokens/s/GPU |
Successful inference adaptation does not imply that the model has been pre-trained on that chip. A model’s technical report may list inference validation results on multiple hardware platforms, but the compute resources used for the base pre-training are often not disclosed. When reading such materials, this point should be verified independently.
3. Building an FSDP2-Based Training Pipeline
3.1 Why Parameter Sharding Is Mandatory
With mixed-precision training plus the Adam optimizer, each parameter effectively requires about 16 bytes: 2 bytes for the bf16 parameter, 2 bytes for the bf16 gradient, and 4 bytes each for the fp32 master weight, momentum, and variance. For a 3-trillion-parameter model, the total training state amounts to approximately 48 TB, excluding activations. If this state were evenly distributed across 16 cards, each card would need roughly 3 TB — far beyond the on-device memory capacity of any single accelerator, even those with tens of gigabytes of HBM.
Therefore, a 16-card experiment aiming to cover the complete training loop of a ~3-trillion-parameter model would necessarily require CPU or NVMe offloading, partial-layer training, or a scaled-down proxy model. If publicly available descriptions do not specify such prerequisites, readers should not assume this implies full-scale training.
FSDP2 — provided via the fully_shard interface since PyTorch 2.4 — shards parameters, gradients, and optimizer states uniformly as DTensors. This sharding logic can be composed with tensor parallelism and expert parallelism.
3.2 Illustrative Code
The following pseudocode illustrates the structure of the training loop. Before actual use, the API should be verified against the deployed PyTorch version.
# Pseudocode: verify API names and parameter signatures against the deployed PyTorch versionfrom torch.distributed.fsdp import fully_shard# accumulate_steps: gradient accumulation steps, defined in the training configuration beforehandfor block in model.layers:fully_shard(block) # Shard layer by layer first to reduce peak memory during materializationfully_shard(model)for step, batch in enumerate(dataloader):is_sync_step = (step + 1) % accumulate_steps == 0model.set_requires_gradient_sync(is_sync_step) # Skip gradient communication on non-sync stepsloss = model(**batch) / accumulate_stepsloss.backward()if is_sync_step:torch.nn.utils.clip_grad_norm_(model.parameters(), max_norm=1.0)optimizer.step() # Each process only updates its local shardoptimizer.zero_grad()
3.3 Three Critical Stages and Common Debugging Directions
Model loading and shard initialization. Weights of trillion-scale magnitude are extremely large and must support on-demand materialization and streaming reads. A common failure is host memory exhaustion during initialization. When debugging, record host memory and VRAM peaks before and after initialization, and confirm whether weights are loaded in blocks.
Collective communication and compute overlap. Collective operations such as AllGather and ReduceScatter must overlap with compute streams; otherwise, multi-node scaling efficiency degrades noticeably. Common failures include NCCL timeouts or multi-node throughput far below the linear per-card expectation derived from single-node runs. When debugging, enable NCCL_DEBUG=INFO to verify channel and NIC selection, use profiling tools to check whether communication and compute overlap, and inspect RDMA configuration and network topology.
Gradient synchronization and numerical stability. Gradient scaling under mixed precision, loss spike detection, and gradient-norm clipping must all function correctly. Common failures include sudden loss spikes or the appearance of NaN/Inf values. When debugging, record gradient norms step by step, verify that gradient scaling is active, and compare the data batches around anomalous steps.
4. Dual-Node 16-Card 400-Step Validation: What It Does and Does Not Show
The validation in question used two nodes with a total of 16 accelerator cards for cross-node joint training. The 16 training processes completed 400 optimizer updates, during which both loss and gradient norms remained finite.
What this result demonstrates:
- Cross-node communication can run continuously and stably for 400 steps under this configuration.
- The complete loop of backward propagation, gradient synchronization, and parameter updates was actually exercised.
- Under this configuration, mixed precision and gradient scaling did not produce numerical overflow.
What this result does not demonstrate:
- That a ~3-trillion-parameter model has completed training adaptation on 16 cards. The public description does not disclose the number of parameters actually involved in training, the parallelism configuration, whether offloading was used, per-card VRAM utilization, or throughput figures.
- That the pipeline can run stably over the long term. Pre-training typically requires tens of thousands to hundreds of thousands of steps, and also depends on checkpointing, elastic fault tolerance, and extended stress testing.
When reviewing such materials, the following information should be requested: the parameter count actually trained, the combination of parallel strategies, offload settings, per-card peak memory, tokens/s/GPU, effective cluster utilization, and loss/gradient-norm curves.
5. Training Stability Acceptance Checklist
| Check Item | Recommended Reporting Metric | Notes |
|---|---|---|
| Parallel strategy | Specify the combination of DP, TP, PP, EP, FSDP and the size of each dimension | Determines communication patterns and memory usage |
| Memory | Peak per-card memory and headroom | Memory fragmentation can cause OOM during long runs |
| Sustained step count | Consecutive optimizer update steps | Runs shorter than tens of thousands of steps only demonstrate pipeline operability |
| Numerical health | Loss and gradient norms finite throughout; count spike occurrences | When NaN or Inf appears, identify the corresponding batch and step |
| Throughput | tokens/s/GPU, compared between single-node and multi-node | If multi-node scaling efficiency is low, prioritize communication debugging |
| Fault recovery | Checkpoint frequency, recovery time, loss continuity after resume | A loss jump after recovery indicates incomplete state saving |
| Effective utilization | Ratio of effective compute time after excluding queuing, failures, and restarts | Reflects actual cluster output capacity |
Threshold values for each item should be set by the team based on model scale and cluster conditions.
6. Practical Recommendations
First, clarify the requirement tier. For inference-only deployment, Day-0 adaptation is usually sufficient. For SFT or RLHF, compatibility with LoRA and full fine-tuning must be confirmed within the framework. Only for pre-training or large-scale continued training
