Engineering Practices for Adapting Domestic GPUs to Cross-Node Large Model Training

    A successful training adaptation requires far more than making a model run inference. This article examines how a domestic GPU platform enabled cross-node training for a nearly three-trillion-parameter open-source model, covering FSDP2-based sharding, MoE expert parallelism, mixed-precision stability, collective communication, and long-run validation. It also explains how isolated hardware adaptation is evolving into a standardized engineering system for large-scale model training.

    1. From “Inference-Ready” to “Training-Ready”

    A domestic GPU vendor recently announced that it had completed training adaptation for a nearly three-trillion-parameter flagship open-source model using its high-end integrated AI training-and-inference accelerators and proprietary software stack. In a cross-node training test involving two machines and 16 accelerator cards, all 16 training processes completed 400 consecutive optimizer updates. The loss curves and gradient norms remained finite throughout, with no numerical overflow or unexpected interruption.

    The important distinction here is between training adaptation and inference adaptation. For a long time, “Day 0 adaptation” for domestic accelerators generally meant that inference support could be delivered on the day a model was released. In practice, this meant loading the model weights, completing forward computation, and exposing the model as a service.

    Training adaptation is substantially more demanding. Numerical accuracy must be maintained not only during forward computation, but also throughout backpropagation, gradient synchronization, and optimizer updates. Communication must remain efficient as well. In simple terms, inference verifies whether a model can be used, while training verifies whether it can learn.

    It is also important to clarify that training adaptation does not mean the model was pretrained on this particular chip. A common industry practice is for an accelerator vendor to run the training workflow on a small-scale cluster after an open-source model is released. This validates operator coverage, parallelism strategies, and numerical correctness. That process is fundamentally different from pretraining a foundation model from scratch on a large-scale cluster, which involves a much greater amount of engineering work, data, and validation.

    When interpreting announcements of this kind, readers should distinguish between validating end-to-end training and inference capabilities and actually hosting a model’s full pretraining workload.

    2. The Core Technical Workflow

    According to the disclosed technical details, the adaptation established a native FSDP2-based multimodal training path covering model loading, sharded scheduling, and gradient synchronization. The workflow can be understood through four key components.

    2.1 Model Loading and Weight Sharding

    A model with nearly three trillion parameters cannot reside entirely in the memory of a single accelerator. Parameter sharding is therefore essential.

    The core idea of FSDP2, or the second generation of Fully Sharded Data Parallel, is to distribute model parameters, gradients, and optimizer states across all devices. During forward and backward computation, the required data is temporarily gathered through all-gather and released immediately after use. This reduces memory consumption from the full model size to roughly the model size divided by the number of devices, plus communication buffers. It is a standard approach for training extremely large models across multiple accelerators.

    In engineering implementations, weight loading often uses the meta device. The model structure is first declared on a virtual device, and individual layers are then materialized on physical devices according to the sharding plan. This avoids creating a full copy of the model in CPU memory and helps prevent peak-memory spikes.

    1. # Example: an FSDP2-style sharded initialization workflow
    2. with torch.device("meta"):
    3. model = build_model(config) # Build on the meta device without allocating real memory
    4. fsdp_model = fully_shard(
    5. model,
    6. shard_parameters=True, # Shard parameters
    7. mixed_precision_dtype=torch.bfloat16 # Use mixed precision
    8. )

    2.2 Shard Scheduling and Computation Graph Construction

    Large models commonly use sparse architectures such as Mixture-of-Experts (MoE), which introduce additional complexity through expert parallelism (EP). Expert weights may be distributed across different nodes, requiring tokens to be routed through all-to-all communication to the devices that host the corresponding experts.

    A training adaptation must validate the correctness of fine-grained expert parallelism, including routing load balancing and the overlap of communication with computation. A multimodal training path adds another layer of complexity: the vision encoder and language backbone must operate within the same training loop. This places higher demands on operator coverage and the completeness of gradient propagation.

    2.3 Gradient Synchronization and Mixed Precision

    After backpropagation, gradients are synchronized through reduce-scatter. In mixed-precision training, forward computation typically uses BF16 or FP16, while master weights and optimizer states remain in FP32. Loss scaling or BF16’s broader dynamic range is used to reduce the risk of underflow.

    The fact that loss and gradient norms remained finite across 400 consecutive updates indicates that this numerical system was implemented correctly on the heterogeneous hardware. Numerical stability is one of the most failure-prone areas in training adaptation. Common failure modes include gradient explosions, the propagation of NaN values, and abnormal jumps in gradient norms.

    2.4 Cross-Node Communication and Fault Tolerance

    With two machines and 16 accelerators, training traffic must cross the inter-node network. Parameter all-gather, gradient reduce-scatter, and expert all-to-all have different bandwidth and latency requirements.

    The software stack must therefore provide efficient collective communication and support communication-computation overlap to hide communication overhead. Long-running stability also depends on fault-tolerance mechanisms such as checkpoint-based resumption, failure detection, and automatic recovery.

    3. A Methodology for Stability Validation

    “400 consecutive stable steps” may appear to be a modest number, but it is a meaningful health check for training adaptation. Common validation methods include:

    • Loss convergence comparison: Under the same data and hyperparameters, compare the loss curves on the target hardware with those of a reference implementation. The curves should closely match, with differences remaining within the expected floating-point error range.
    • Gradient norm monitoring: Record the global gradient norm at every step. Abnormal spikes may indicate incorrect operator implementations or precision issues.
    • Numerical consistency checks: Unit-test critical operators such as attention, LayerNorm, and optimizer updates, and compare their outputs with a reference implementation.
    • Long-duration stress testing: Run hundreds or thousands of consecutive steps to identify hidden problems such as memory leaks, communication deadlocks, and performance degradation.

    Only through this type of validation can a hardware and software stack demonstrate that it supports stable, end-to-end training for advanced and complex large models, rather than merely proving that the model can start running.

    4. From Point Validation to an Engineering System

    This adaptation was reportedly part of a broader effort rather than an isolated event. Related teams had previously completed several “domestic hardware for domestic models” projects, including end-to-end training from scratch for scientific foundation models with hundreds of billions of parameters, full-stack native training for 5D world models, and complete training workflows for embodied intelligence models. They are also progressing toward training models at the trillion-parameter scale.

    These developments reflect a broader shift from hands-on, model-specific adaptation to a standardized engineering system. The main components include:

    1. Complete operator libraries: Core operators required by large models—including attention variants, fused normalization, and fused optimizers—must be fully supported and validated for numerical accuracy.
    2. Standardized parallelism strategies: Data parallelism, tensor parallelism, pipeline parallelism, expert parallelism, and FSDP must work reliably in combination.
    3. Automated tooling: The degree of automation across model migration, operator mapping, numerical alignment, and performance profiling directly affects how quickly new models can be adapted.
    4. Ecosystem compatibility: Compatibility with mainstream deep learning frameworks and model communities determines how quickly newly released models can be integrated.

    5. Outlook: From “Trainable” to “Ready to Train”

    The development path for domestic computing platforms in large-model training is becoming clearer.

    The first step is operator adaptation, which ensures numerical correctness for individual operations. The second is multi-accelerator coordination, which ensures that parallel training strategies remain efficient and scalable. The third is an automated toolchain that can reduce adaptation cycles from weeks to days or even hours.

    When all three capabilities mature, newly released open-source models may become ready to train on domestic GPUs with minimal additional work, instead of requiring a custom adaptation process for each model.

    For developers evaluating the maturity of a training platform, several factors deserve close attention:

    • Coverage and numerical-alignment reports for core operators
    • Multi-node and multi-accelerator scaling efficiency
    • Checkpoint resumption and fault-tolerance capabilities
    • Support for mainstream training frameworks

    Continued progress in these areas will be a stronger indicator of practical maturity than simply demonstrating that a model can start running.