Training on Domestic GPUs: The Path from Inference-Ready to Training-Ready

    Running inference on a new AI accelerator does not mean it can handle large-scale training. This article explains the three levels of hardware adaptation—inference, training, and pretraining—walks through how to build an end-to-end training pipeline with approaches like FSDP, covers gradient synchronization and numerical stability checks, and outlines the tooling capabilities needed to make training truly turnkey for large-scale model workloads.

    From Inference-Ready to Training-Ready: Adapting Training Workloads to Domestic GPUs

    Introduction: Running Inference Doesn’t Mean You Can Train

    Whether an AI accelerator chip can deploy inference for a new model on the day it launches is often seen as a signal of ecosystem maturity. But inference and training are engineering tasks with vastly different difficulty levels. Inference only requires the model’s forward computation path to work. Training requires backpropagation, gradient synchronization, optimizer state management, memory scheduling, and numerical stability to all work correctly—and to keep running continuously for days or even weeks.

    This article does not cite any specific, unverified achievement figures. Instead, we focus on general methodology: how to determine whether a training adaptation is genuinely complete, and what capabilities need to be filled in for large-scale scenarios.

    1. Distinguishing Three Levels First

    The term “training adaptation” is often used loosely, so it helps to distinguish three levels.

    Level Question It Answers Criteria Common Misreading
    Inference adaptation Can the model’s forward computation run correctly on the target hardware? Inference results match the reference implementation Assuming inference support means training support
    Training adaptation Can the model sustain a full training run on the target hardware? Backpropagation, distributed communication, and numerical metrics all work correctly Assuming a few successful steps mean the full pipeline works
    Pretraining at scale Can large-scale pretraining from scratch be completed on the platform? Long-duration stability, fault recovery, and resumption from checkpoints Extrapolating small-scale validation results directly to trillion-parameter models

    Many technical reports validate multiple hardware routes side by side, but most only cover inference operators or a subset of key operators. When readers see that a model “supports” a particular chip, they should first clarify which level is meant.

    2. Building the Training Pipeline

    Completing training adaptation for a very large model requires an end-to-end path. Using Fully Sharded Data Parallel (FSDP, or the similar ZeRO-3 approach) as an example, the key steps are as follows.

    2.1 Loading Very Large Model Weights

    The weights and training state of a trillion-parameter model can easily reach the terabyte scale, which cannot fit in a single machine’s memory. In practice, teams typically use sharded checkpoint formats, where each training process only reads the shard it is responsible for. During loading, you should also verify that the shard count, tensor shapes, and data types match the model definition. Otherwise, errors may not surface until hours into training.

    2.2 Parameter Sharding and Sharding Boundaries

    FSDP-style approaches focus on parameter sharding. During forward and backward computation, the system temporarily gathers the required parameters via collective communication and releases them afterward. Whether gradients and optimizer states are sharded depends on the specific implementation and configuration—it’s not one-size-fits-all.

    There is an easily overlooked order-of-magnitude issue here. Using mixed precision with the Adam optimizer as an estimate, each parameter’s model state takes roughly 16 bytes, including low-precision weights, gradients, high-precision master weights, and two optimizer momentum terms. One trillion parameters translates to about 16 TB of model state, excluding activations. With 16 accelerator cards at 80 GB of memory each, total memory is about 1.28 TB—far below that figure.

    Therefore, very large-scale training usually combines multiple techniques: tensor parallelism (TP), pipeline parallelism (PP), expert parallelism (EP, for mixture-of-experts models), CPU or NVMe offloading, and activation recomputation. Configurations that work on a small cluster cannot be directly extrapolated to trillion-parameter models.

    2.3 Verifying Gradient Synchronization and Numerical Stability

    Cross-node gradient synchronization (AllReduce or similar collective communication) determines whether training results are correct. During adaptation, we recommend checking the following items one by one:

    • Under mixed precision, whether gradient scaling factors adjust properly, and whether overflow causes the step to be skipped and rolled back;
    • Whether loss and gradient norms stay finite, and whether NaN or Inf occurrences are zero;
    • Whether gradients are consistent across nodes, verifiable by fixing random seeds and comparing small-batch results;
    • Whether long-sequence training shows numerical drift caused by accumulating errors;
    • When a process exits abnormally, whether logs clearly indicate the error location and hardware state.

    A reasonable milestone standard is: all training processes complete several hundred consecutive optimizer updates with no divergence in numerical metrics and no abnormal exits. This standard only proves the training pipeline can run. It does not mean training efficiency is optimal, nor that the configuration suits large-scale pretraining.

    2.4 New Challenges from Multimodal Training

    Flagship models are generally evolving toward multimodality. When vision encoders and language models compute together, the two components differ significantly in operator types, memory usage, and computation time. Heterogeneous sequence lengths can also cause load imbalance across processes, slowing down the whole job. Frameworks need to support per-module parallel strategies and dynamic load balancing.

    3. From Adaptation Validation to Pretraining from Scratch

    Training adaptation is only the starting point. Whether a platform can support pretraining from scratch determines its real value. Based on industry practice, this path usually progresses through three layers:

    1. Adaptation validation layer: Complete the training pipeline for existing open-source models and verify numerical correctness;
    2. Production training layer: Support pretraining from scratch for models ranging from billions to hundreds of billions of parameters, building experience in long-duration stability, fault recovery, and checkpoint resumption;
    3. Scale-up layer: Push toward trillion-parameter training, facing communication efficiency and system reliability challenges at the thousand-GPU scale.

    To judge which layer a platform is at, look at its publicly disclosed training duration, cluster size, interruption count, and recovery time. Achievements lacking this data should be treated as reference points, not as conclusions about capability.

    When teams run training beyond their own clusters, they often use general-purpose cloud platform services—for example, object storage for training data and checkpoints, container services for orchestrating training jobs, and monitoring and logging services for observing cluster health. These services lower the barrier to building a platform but introduce concerns around data security, cost accounting, and vendor lock-in. Before selecting a provider, confirm its data encryption and access control mechanisms, estimate long-term storage and cross-region transfer costs, and verify that checkpoints can be migrated to other platforms.

    4. Toward “Train Out of the Box”: What the Toolchain Needs

    When training moves into production, the bottleneck is often usability. Going from “can train” to “train out of the box” requires at least the following four capabilities:

    • Automated operator adaptation: Build operator coverage assessments and automatically fall back to available implementations when operators are missing, reducing manual patching work;
    • Standardized multi-GPU coordination: Package common tuning items—parallel strategies, communication topology awareness, memory optimization—into default configurations while allowing users to override them;
    • Fault self-healing: Automatically detect training interruptions and support node hot-swapping and checkpoint resumption, which directly determines the effective output of long-duration training;
    • Performance profiling: Provide operator-level and communication-level analysis tools to help pinpoint whether bottlenecks lie in compute, memory, or the network.

    The following pseudocode illustrates the ideal launch experience. The parameter names are fictional and cannot be executed directly. Refer to the documentation of your training framework for actual parameters.

    1. # Illustrative pseudocode: parameter names are fictional, for demonstration only
    2. train_launch \
    3. --model-config ./model.yaml \
    4. --parallel-strategy fsdp \
    5. --num-nodes 2 --gpus-per-node 8 \
    6. --data-path <data-path> \
    7. --checkpoint-dir ./ckpt

    Before running real training, confirm the following dependencies: the training framework version matches the accelerator driver version, operator libraries are installed, nodes are networked with sufficient bandwidth, and the running account has read/write permissions for the data and checkpoint directories. If launch fails, first fall back to a single-node, small-scale configuration to confirm the environment is healthy, then scale up step by step.

    Common Mistakes

    Many teams skip the staged validation described above and jump straight from a few successful training steps to large-scale pretraining, only to discover numerical divergence, communication bottlenecks, or unrecoverable failures days into a run. Treat adaptation validation, small-scale rehearsal, and scaled rollout as separate gates—each with its own criteria—before committing to long-duration training jobs.