o
openharmony-models/openPangu-Ultra-MoE-718B-V1.1
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

openPangu-Ultra-MoE-718B-V1.1

English | 中文

1. Introduction

The openPangu-Ultra-MoE-718B-V1.1 is a large-scale mixture-of-experts language model trained on Ascend NPU, with a total parameter count of 718B and 39B activated parameters per token. It is equipped with the capability to switch between fast and slow thinking. Compared to the earlier [openPangu-Ultra-MoE-718B-V1.0] version, V1.1 improves on better agentic tool use ability and lower hallucination rate, and it also strengths on other general and reasoning task.

2. Model Architecture

The architecture of the openPangu-Ultra-MoE-718B-V1.1 adopts the mainstream Multi-head Latent Attention (MLA), Multi-Token Prediction (MTP), high MoE sparsity, and features several different designs:

  • Depth-Scaled Sandwich-Norm and TinyInit: These techniques adjust the layer normalization structure and parameter initialization for improved training stability.
  • EP-Group load balancing loss: This technique optimizes the load balancing loss, achieving better expert specialization.

3. Results

BenchmarkMetricV1.0 Fast-thinkingV1.0 Slow-thinkingV1.1 Fast-thinkingV1.1 Slow-thinking
General
MMLU-ProExact Match80.1882.4083.1784.84
GPQA-DiamondAvg@469.1976.7776.6077.95
SuperGPQAAcc52.2861.6758.5963.65
IF-EvalPrompt Strict81.7080.5986.8881.33
SysBenchConstraint Satisfaction Rate85.9991.4387.3391.87
Hallucination-Leaderboard (HHEM)Hallucination Rate10.1118.393.853.01
Math
CNMO 2024Avg@3265.6280.7376.5682.99
AIME25Avg@1640.6275.2149.7977.50
AIME24Avg@1656.2580.2166.0482.08
Coding
LiveCodeBenchAvg@3 (01/25~05/25)45.1461.1436.5765.71
Agentic Tool Use
BFCL-V3Acc (Prompt)72.3256.9769.8172.36
Tau-Bench (airline)Avg@3 (FC)41.3340.0044.6754.67
Tau-Bench (retail)Avg@3 (FC)68.9852.7566.6674.20
Tau2-Bench (airline)Avg@3 (FC)47.3352.0061.3366.00
Tau2-Bench (retail)Avg@3 (FC)74.8567.2572.2279.24
Tau2-Bench (telecom)Avg@3 (FC)65.2159.9451.1762.28
AceBenchAcc (Prompt)79.3680.9378.6381.32

Note: The system prompt was empty during the evaluation process. Bold numbers indicate V1.1 outperform V1.0.

4. Deployment

4.1 Environment

Hardware Requirements

Atlas 800T A2 (64GB, >=32 NPUs), please refer to [Atlas 800T A2] for obtaining the driver and firmware installation packages.

System Requirements & Dependencies

  • Method 1: Install the following supporting software in a bare-metal environment.

    • System: Linux (openEuler ≥ 24.03 recommended)
    • CANN==8.1.RC1, please refer to [CANN Install] for installation
    • python==3.10
    • torch==2.1.0
    • torch-npu==2.1.0.post12
    • transformers>=4.48.2
  • Method 2: Start a container from a docker image.

    Refer to the [Docker User Guide]

The above software environment has been verified, and theoretically supports newer versions. For any questions, please submit an issue.

4.2 Model Weights Conversion

This inference example of the openPangu-Ultra-MoE-718B-V1.1 adopts Tensor Parallel strategy with fused operators on Ascend NPU. It requires pre-sharding of the model weights. The following provides an example of weight sharding for 32-NPU parallel inference, with the split weights saved in the model/ directory.

cd inference
bash split_weight.sh

4.3 Inference Examples

The following provides a simple bfloat16 inference example of the openPangu-Ultra-MoE-718B-V1.1 deployed on a 4-node 32-NPU Atlas 800T A2 cluster, for which the node IP0 is selected as the master node:

cd inference
# Master node IP0:  ${NNODES} ${NODE_RANK} ${NPROC_PER_NODE} ${MASTER_ADDR} ${PROMPT}
bash generate.sh 4 0 8 IP0 "3*7=?"
# Worker node IP1
bash generate.sh 4 1 8 IP0 "3*7=?"
# Worker node IP2
bash generate.sh 4 2 8 IP0 "3*7=?"
# Worker node IP3
bash generate.sh 4 3 8 IP0 "3*7=?"

The model operates by default in slow thinking mode and can be configured to fast thinking mode through the following method: As demonstrated in the fast_thinking_template within the generate.py example, appending the /no_think flag to the end of user input.

4.4 Using Inference Framework

Vllm-ascend:please refer to [vllm_ascend_for_openpangu_ultra_moe_718b_EN]

5. Model License

Unless otherwise noted, the openPangu-Ultra-MoE-718B-V1.1 model is licensed under the terms and conditions of OPENPANGU MODEL LICENSE AGREEMENT VERSION 1.0, which is intended to be used permissively and enable the further development of artificial intelligence technologies. Please refer to the LICENSE file located in the root directory of the model repository for details.

6. Disclaimer

Due to the technical limitations inherent in the technology on which the openPangu-Ultra-MoE-718B-V1.1 (“Model”) relies and the fact that the artificial intelligence generated content is automatically produced by Model, Huawei cannot make any guarantees regarding the following matters:

  • The output of this Model is automatically generated via AI algorithms, it does not rule out the possibility that some of the information may be flawed, unreasonable, or cause discomfort, and the generated content does not represent Huawei's attitude or standpoint;
  • There is no guarantee that this Model is 100% accurate, reliable, functional, timely, secure and safety, error-free, uninterrupted, continuously stable, or free of any faults;
  • The output of this Model does not constitute any advices or decisions for you, and it does not guarantee the authenticity, completeness, accuracy, timeliness, legality, functionality, or practicality of the generated content. The generated content cannot replace professionals in medical, legal, and other fields in answering your questions. The generated content is for your reference only and does not represent any attitude, standpoint, or position of Huawei. You need to make independent judgments based on your actual situation, and Huawei does not assume any responsibilities.

7. Contact

If you have any question, please raise an issue or contact us at openPangu@huawei.com.