Abstract
We present Pangu Ultra, a Large Language Model (LLM) with 135 billion parameters and dense Transformer modules trained on Ascend Neural Processing Units (NPUs). Although the field of LLM has been witnessing unprecedented advances in pushing the scale and capability of LLM in recent years, training such a large-scale model still involves significant optimization and system challenges. To stabilize the training process, we propose depth-scaled sandwich normalization, which effectively eliminates loss spikes during the training process of deep models. We pre-train our model on 13.2 trillion diverse and high-quality tokens and further enhance its reasoning capabilities during post-training. To perform such large-scale training efficiently, we utilize 8,192 Ascend NPUs with a series of system optimizations. Evaluations on multiple diverse benchmarks indicate that Pangu Ultra significantly advances the state-of-the-art capabilities of dense LLMs such as Llama 405B and Mistral Large 2, and even achieves competitive results with DeepSeek-R1, whose sparse model structure contains much more parameters. Our exploration demonstrates that Ascend NPUs are capable of efficiently and effectively training dense models with more than 100 billion parameters.
Introduction
As the AI field races toward ever-larger models, the industry has largely split into two camps: sparse models (like Mixture-of-Experts), which scale parameters while keeping compute low, and dense models, which are easier to deploy but harder to scale. Pangu Ultra is a 135-billion-parameter dense LLM that proves dense architectures can still compete with massive sparse models.
The development of Pangu Ultra addresses two major hurdles in scaling dense models past the 100B parameter mark:
- Training Instability: Deep models are prone to "loss spikes"—sudden jumps in error that can permanently damage the model's parameter landscape.
- System Efficiency: Orchestrating over 8,000 AI processors requires extreme optimization to prevent "pipeline bubbles" (idle time) and communication bottlenecks.
Architectural Innovations
Pangu Ultra utilizes a standard Transformer backbone but introduces critical architectural innovations to ensure stability at a depth of 94 layers.
Depth-Scaled Sandwich Normalization (DSSN)
Unlike the standard "Pre-LN" approach, DSSN adds extra normalization layers both before and after attention/FFN blocks. Crucially, it scales the initialization of these layers based on the model's depth ($1/\sqrt{L}$), preventing the "norm explosion" that typically causes training crashes in deep models.
TinyInit
A new initialization strategy, TinyInit, scales weight standard deviation by both depth and width ($\sqrt{1/2dL}$). This ensures consistent parameter scales across the entire 94-layer stack, further contributing to training stability.
System Optimizations for Ascend NPUs
Training a 135B parameter model on 8,192 Ascend NPUs requires sophisticated parallelism and communication strategies.
4D Parallelism and Virtual Pipelines
The team combined Data, Tensor, Sequence, and Pipeline parallelism. To minimize idle time, they implemented a Virtual Pipeline (VPP) scheduling technique. This interleaved approach slashed "pipeline bubbles" from 30.45% down to just 6.8%, significantly improving hardware utilization.
MC2 (Merged Compute and Communication)
This optimization overlaps matrix multiplication with data transfers (All-Gather and Reduce-Scatter), reducing latency on the Ascend NPU cluster and achieving over 52% Model FLOPs Utilization (MFU).
Training Methodology and Datasets
The model was pre-trained on a massive 13.2 trillion token corpus in three phases:
- General Phase (12T tokens): Focused on broad linguistic capabilities in English and Chinese.
- Reasoning Phase (0.8T tokens): Increased the proportion of math and code data to over 60%.
- Annealing Phase (0.4T tokens): Used high-quality instruction and Chain-of-Thought (CoT) data to refine behavior.
Results and Discussion
Pangu Ultra (135B) outperformed Llama 3.1 405B and Mistral Large 2 (123B) on nearly all major language tasks, despite using only 29% of the training FLOPs compared to Llama 3.1 405B. This suggests that high-quality data and architectural stability can compensate for raw parameter scale.
The model also achieved results on par with DeepSeek-R1 in reasoning and Chinese language benchmarks. It set new high-water marks for dense models on HumanEval (81.1%) and GSM8K (89.3%).
Conclusion
Pangu Ultra demonstrates that dense models can remain highly competitive and efficient at scale. By solving stability issues with DSSN and TinyInit, and optimizing system performance on Ascend NPUs, the Huawei team has pushed the boundaries of what is possible with dense architectures. Future work will delve deeper into the reinforcement learning frameworks used during post-training.
Summary updated