A Domestic GPU Completes Training Adaptation for a Nearly Trillion-Parameter LLM: 400 Stable Steps on 16 Cards Across Two Nodes

    This article explains what a recent training adaptation on a domestic full-function GPU actually proves—and what it does not. It clarifies the key distinction between training adaptation and base-model pretraining, then breaks down the layers a complete training pipeline must cover: model loading and weight sharding, shard scheduling and memory accounting, cross-node communication and parallel strategy mapping, and gradient synchronization with numerical stability. It also provides a reusable stability validation checklist and outlines what remains before such a setup moves from "can train" to "ready to train out of the box."

    1. Background: A Training Adaptation, Not a Pretraining Reproduction

    A domestic full-function GPU vendor recently announced that, using its flagship training-and-inference accelerator card and its in-house software stack, it completed the training adaptation of a flagship large model with nearly three trillion parameters. In an environment of two nodes with 16 accelerator cards in total, the setup completed 400 consecutive optimizer updates without numerical overflow or abnormal interruption.

    One easily misread boundary needs to be clarified first: training adaptation is not the same as completing base-model pretraining on the chip. Adaptation means making the model’s complete training computation graph run correctly and stably on the target hardware and software stack; where the original pretraining compute for the base model came from is a separate question. A common confusion in the industry is to conflate “operator validation passed” or “inference deployment is working” with “base-model pretraining was completed here.” For engineering teams, making this boundary explicit is what allows them to correctly assess the real value of an adaptation effort and the work that follows.

    2. Technical Breakdown: Which Layers a Complete Training Pipeline Must Connect

    2.1 Model Loading and Weight Sharding

    A model at ultra-large scale cannot be loaded into a single card’s memory in its entirety. The loading stage must therefore handle weight parsing, determine the precision strategy (for example, separating compute precision from master-weight precision in mixed precision), and map out the sharding scheme. Common pitfalls here include aligning weight formats with sharding dimensions, conflicts between tensor-parallel and data-parallel sharding dimensions, and ensuring consistent initialization random seeds across all ranks.

    2.2 Shard Scheduling and Memory Accounting

    Take fully sharded data parallelism (commonly referred to in the industry as FSDP/ZeRO-3-style approaches) as an example. Parameters, gradients, and optimizer states are all sharded across every data-parallel rank; parameter shards are all-gathered on demand during the forward and backward passes and released immediately after computation. Memory usage can be roughly illustrated as follows:

    1. # Illustrates memory composition only; not specific product figures
    2. mem_per_gpu ≈ params / N shards # sharded parameters
    3. + params / N shards # sharded gradients
    4. + K * params / N shards # optimizer states (K depends on the optimizer implementation)
    5. + activation_mem # activations, affected by recomputation strategy
    6. + comm_buffer # communication buffers and temporary tensors

    What actually determines whether a run completes in practice is activation_mem and comm_buffer. The former is reduced through gradient recomputation, sequence parallelism, activation offloading, and similar techniques; the latter is smoothed out through bucketing and by overlapping communication with computation.

    2.3 Cross-Node Communication and Parallel Strategy Combinations

    Two nodes with 16 cards is a typical cross-node scenario. The bandwidth hierarchy difference between high-bandwidth intra-node interconnect and the inter-node network directly determines the placement order of the parallel dimensions. The general principle is: place the parallel dimension with the most frequent communication within the highest-bandwidth domain, and let cross-node links carry only relatively sparse communication. An illustrative configuration:

    1. # Pseudocode: mapping parallel dimensions to communication domains
    2. parallel_plan = {
    3. "tensor_parallel": 4, # placed within the high-bandwidth intra-node domain
    4. "pipeline_parallel": 2, # across nodes, with relatively manageable communication volume
    5. "data_parallel": 2, # carries FSDP2 shard synchronization
    6. }
    7. # Initialization for each rank must ensure: model sharding, data sharding, and random seed are all consistent

    2.4 Gradient Synchronization and Numerical Stability

    400 consecutive updates is a far more demanding validation than “a single step runs.” The criteria should cover at least three points: the loss remains finite throughout, the gradient norm stays within a reasonable range with no spikes, and no NaN/Inf appears in parameters before and after updates. In practice, this is usually combined with gradient clipping, loss scaling (to prevent gradient underflow in mixed precision), and periodic checksum comparison of key tensors.

    1. # Pseudocode: stability guard logic
    2. for step in range(total_steps):
    3. loss = model(batch)
    4. loss.backward()
    5. grad_norm = clip_grad_norm_(model.parameters(), max_norm=1.0)
    6. assert torch.isfinite(loss) and torch.isfinite(grad_norm)
    7. optimizer.step()
    8. if step % log_interval == 0:
    9. log({"loss": loss.item(), "grad_norm": grad_norm.item()})

    3. A Reusable Stability Validation Checklist

    • Short smoke test: Confirm within a few dozen steps that there are no shape or sharding errors and that the memory curve is stable.
    • Gradient consistency: Under the same batch, gradients from different parallel configurations should be numerically equivalent (allowing for floating-point error).
    • Long-run observation: Watch loss and gradient-norm trends over hundreds to thousands of steps to identify slow drift.
    • Fault injection: Intentionally interrupt some ranks to verify the correctness of checkpoint saving and recovery.
    • Observability: Connect logs, metrics, and alerts to a unified logging service and monitoring/alerting system to avoid “running blind” during long runs.

    4. From “Can Train” to “Ready to Train Out of the Box”: What’s Still Missing

    A single successful adaptation only solves the feasibility question. Three stages remain before the setup is usable in engineering terms: operator coverage and performance tuning (reducing the performance loss from fallback implementations), an automated toolchain (automatic parallel-strategy search, automatic memory accounting, automatic resume from breakpoints), and ecosystem compatibility (version-matrix management across framework versions, communication libraries, and the driver stack). Documented “domestic chips training domestic models” practices in the industry already span from tens-of-billions to hundreds-of-billions of parameters, and cover multiple forms ranging from language models to world models and embodied models, showing that the adaptation methodology is transferable across model families; trillion-parameter-scale training, meanwhile, is widely regarded as a comprehensive test of both communication efficiency and fault tolerance.

    For adopters, the recommendation is to evaluate whether domestic compute can take on a training workload using four acceptance dimensions—“complete pipeline + long-run stability + observability + recoverability”—rather than looking only at a single operator or a single forward pass.