Engineering Practices and Pathways for Training Trillion-Parameter LLMs on Emerging GPUs

    As large language models scale to trillions of parameters, industry focus has shifted from inference to stable training. Recently, an alternative GPU vendor successfully adapted a nearly 3-trillion-parameter model, utilizing a dual-node, 16-GPU configuration to complete hundreds of optimizer updates without numerical overflow. This article analyzes the engineering methodology for training trillion-parameter models on emerging AI accelerators across three dimensions: concept clarification, technical architecture, and engineering imperatives.

    Engineering Practices and Pathways for Training Trillion-Parameter LLMs on Emerging GPUs

    In recent years, as the parameter scale of open-source large language models (LLMs) has grown from tens of billions to trillions, the demand for underlying computing power has surged correspondingly. The industry’s focus has shifted from “can inference run” to the more challenging proposition: “can training run stably to completion?” Recently, an emerging GPU vendor successfully completed training adaptation for a flagship open-source model with nearly 3 trillion parameters. Utilizing a dual-node, 16-GPU configuration, they completed hundreds of optimizer updates for cross-node joint training with zero numerical overflow throughout the process. This progress provides an excellent case study for exploring the engineering methodology of supporting LLM training on emerging computing hardware. This article analyzes the subject across three dimensions: concept clarification, technical architecture, and engineering imperatives.

    1. Concept Clarification: Training Adaptation is Not Equivalent to Pre-Training on the Chip

    When discussing any chip and LLM adaptation results, it is crucial to distinguish between three easily confused concepts:

    • Inference Adaptation (Day 0 Integration): Refers to the chip vendor quickly completing inference operator adaptation after a new model is released, enabling the model to execute forward computation and output results on the hardware. This is the most basic form of adaptation, primarily testing operator coverage and inference framework compatibility.
    • Training Adaptation: Means that in addition to forward computation, the entire training pipeline—including backward propagation, gradient synchronization, and optimizer updates—is fully functional. The model can be fine-tuned or even continue pre-training on this hardware.
    • Native Pre-Training: Means the model’s base weights were trained entirely or primarily from random initialization on this specific hardware.

    These three levels are fundamentally different. When interpreting news like “a chip completes adaptation for a model,” readers must clarify the adaptation level: successful inference integration does not mean the training pipeline is ready, and successful training adaptation does not mean the model was natively pre-trained on that chip. The training adaptation discussed in this article falls under the second level. It validates the complete training loop from model loading, parameter sharding, and forward/backward computation to gradient synchronization and parameter updates, but it does not imply the model was pre-trained from scratch on these emerging GPUs. Clarifying this boundary is the prerequisite for objectively evaluating computing power maturity.

    2. Core Technical Challenges of Training Adaptation

    Compared to inference, training imposes exponentially higher demands on hardware and software stacks. Running training for a multi-trillion-parameter model on a single GPU architecture requires overcoming several key challenges.

    2.1 Native Support for Distributed Parallel Strategies

    Trillion-parameter-scale models cannot fit into a single GPU’s memory; they must rely on a combination of multi-dimensional parallel strategies:

    • Data Parallelism (DP): Splits data across different devices, with each card holding a complete model replica. When parameter scales are massive, memory becomes insufficient.
    • Tensor Parallelism (TP): Splits a single network layer’s weight matrix across multiple cards along specific dimensions, exchanging intermediate results within the layer via collective communication.
    • Pipeline Parallelism (PP): Divides the model into multiple stages by layers. Different devices handle different stages, utilizing micro-batch scheduling to fill pipeline bubbles.
    • Expert Parallelism (EP): Designed for Mixture of Experts (MoE) architectures, distributing different experts to different devices and achieving load balancing among experts through fine-grained routing.
    • Fully Sharded Data Parallelism (FSDP-like schemes): Parameters, gradients, and optimizer states are fully sharded by device and aggregated on-demand during computation. This is the mainstream path for supporting ultra-large model training.

    The latest generation of sharding schemes in mainstream training frameworks (often referred to as FSDP2 or equivalent implementations) utilizes more granular sharding scheduling and flexible communication abstractions. Building native support on emerging GPUs requires deep software stack adaptation: including sharding metadata management, cross-node communication primitives, and coordination with the automatic differentiation engine. Completing this level of adaptation means the chip’s software stack has moved beyond “just running operators” to possessing the capability to support complex distributed training systems.

    2.2 Multi-Node/Multi-GPU Coordination and Communication Efficiency

    Cross-node training with dual-node 16-GPUs may not seem large scale, but it encompasses all core issues in large-scale training:

    1. Intra-node communication: Relies on high-bandwidth interconnects for the high-frequency data exchange required by tensor parallelism.
    2. Inter-node communication: Relies on RDMA networks for gradient aggregation. Communication efficiency directly determines scalability.
    3. Communication and computation overlap: Utilizes reasonable scheduling to hide gradient synchronization under backward computation, reducing wait times.
    4. Stability of collective communication libraries: Primitives like AllReduce, AllGather, and ReduceScatter must achieve production-grade reliability on proprietary software stacks.

    In cross-node joint training, 16 training processes must synchronize strictly to complete hundreds of optimizer updates. Any communication timeout, OOM caused by memory fragmentation, or driver-level anomaly will interrupt the entire training task. Therefore, “continuous stable operation” is itself a comprehensive test of the coordinated capabilities across four layers: hardware, drivers, communication libraries, and frameworks.

    2.3 Ensuring Numerical Stability

    One of the most vexing challenges in LLM training is numerical stability. In mixed-precision training, gradients can span multiple orders of magnitude; slight missteps can lead to loss spikes or even divergence. Ensuring numerical stability requires multiple layers of strategies:

    • Dynamic Loss Scaling: Uses a scaling factor in low-precision computation to prevent gradient underflow.
    • Gradient Norm Monitoring: Continuously observes whether the gradient norm remains finite to detect anomalies promptly.
    • Overflow Detection and Rollback: Skips updates when numerical overflow is detected, preventing weight contamination.
    • Operator Precision Alignment: Critical operators (like LayerNorm, Softmax) must exhibit consistent numerical behavior across different hardware.

    Maintaining finite loss and gradient norms throughout the training process, without overflow or abnormal interruptions, is an intuitive metric for measuring the engineering maturity of the training pipeline. A typical monitoring example is as follows:

    1. # Numerical health check during the training loop (pseudo-code)
    2. for step, batch in enumerate(dataloader):
    3. loss = model(batch)
    4. scaled_loss = loss_scaler.scale(loss)
    5. scaled_loss.backward()
    6. grad_norm = clip_grad_norm_(model.parameters(), max_norm=1.0)
    7. if not torch.isfinite(grad_norm):
    8. logger.warning(f"step {step}: non-finite grad norm, skip update")
    9. optimizer.zero_grad()
    10. continue # Skip this update to prevent weight pollution
    11. loss_scaler.step(optimizer)
    12. loss_scaler.update()
    13. optimizer.zero_grad()

    While this protection logic is standard in mature frameworks, on new hardware platforms, it is essential to ensure that the exception handling paths across underlying operators, communication libraries, and the framework layer are all fully verified.

    3. From “Capable of Training” to “Optimized Training”: The Value of an Engineering System

    Successfully running hundreds of training steps is just the beginning. Truly supporting production-grade LLM training requires a comprehensive engineering system, encompassing at least the following dimensions:

    3.1 Full-Stack Toolchain

    • Model Migration Tools: Automatically convert and map operators from mainstream frameworks to the new platform.
    • Profiling Tools: Identify compute bottlenecks, communication bottlenecks, and memory fragmentation issues, providing optimization recommendations.
    • Checkpoint Management: Support efficient saving and elastic recovery for ultra-large models, allowing training to resume from the latest checkpoint after a failure.
    • Automated Scheduling: Manage multi-task queuing, resource allocation, and fault isolation at the cluster level.

    3.2 Accumulation of Practical Training Experience

    Based on public industry information, emerging GPU vendors have accumulated various practical LLM training results. This includes the complete from-scratch training of a 200-billion-parameter scientific foundation model, full-stack native training of a world model, and the full-process training of embodied AI models. The value of these cases lies in validating the feasibility of different model architectures (dense models, multimodal models, MoE models) on emerging computing power, precipitating reusable parallel strategy configurations and tuning experiences. Furthermore, explorations into training trillion-parameter-scale models are actively progressing.

    3.3 The Ultimate Goal of “Out-of-the-Box Training”

    Currently, training LLMs on these emerging GPUs often requires deep involvement and tuning from the chip vendor’s engineers, essentially placing it in the “capability verification” phase. The industry’s ultimate goal is “out-of-the-box training”: users take a mainstream open-source model and use familiar training frameworks and configurations to complete training without perceiving underlying hardware differences. Achieving this goal requires:

    1. Extremely high operator coverage, with a reliable fallback mechanism for long-tail operators.
    2. Native integration with mainstream training frameworks to minimize user-side code modifications.
    3. Verified reference configurations (parallel strategies, hyperparameters, memory estimations) for common model architectures.
    4. Automated fault diagnosis and recovery mechanisms to lower the barrier for operations.

    4. Implications for Developers and Enterprises

    For developers and enterprises focused on compute selection, these advancements offer several insights:

    • Evaluate compute power beyond peak performance metrics: It is more important to assess the depth of software stack support for distributed training frameworks, communication library performance, and the stability record of real-world model training.
    • Understand the tiers of training adaptation: Before purchasing or building compute infrastructure, clarify whether your needs are for inference, fine-tuning, or continuing pre-training, and request the corresponding verification reports.
    • Embrace the trend of multi-cloud and heterogeneous computing: By leveraging cloud container platforms, logging services, and monitoring alerts, you can more conveniently build a training and scheduling system across heterogeneous computing resources, thereby mitigating single-supply-chain risks.

    Conclusion

    From inference adaptation to打通打通 a full-stack training pipeline, and eventually to “out-of-the-box training,” emerging GPU vendors are evolving along a clear engineering path. Successfully running hundreds of continuous training updates stably using a dual-node 16-GPU setup is a solid milestone on this path. It proves not just the computing power of a specific chip, but serves as a signal that the four-layer software stack—drivers, communication, frameworks, and toolchains—is maturing synergistically. As explorations into training trillion-parameter models deepen, fully functional emerging GPUs are poised to play an increasingly vital role in frontier LLM training, fostering a healthier and more diversified computing power landscape.