中文 | English
The openPangu-Embedded-7B-V1.1 is an efficient large language model trained from scratch based on the Ascend NPU. It contains 7 billion parameters (excluding the vocabulary embedding layer). The openPangu-Embedded-7B-V1.1 has been trained on approximately 25T tokens. The model is capable of integrating both fast and slow thinking, and can adaptively switch between two thinking mode based on assessed query complexity.
| openPangu-Embedded-7B-V1.1 | |
|---|---|
| Architecture | Dense |
| Parameters (Non-Embedding) | 7B |
| Number of Layers | 34 |
| Hidden Dimension | 12800 |
| Attention Mechanism | GQA |
| Number of Attention Heads | 32 for Q,8 for KV |
| Vocabulary Size | 153k |
| Context Length (Natively) | 32k |
| Pretraining Tokens | 25T |
| Benchmark | Metric | Slow-thinking v1.0 | Slow-thinking v1.1 | Adaptive-switching v1.1 |
|---|---|---|---|---|
| General | ||||
| MMLU-Pro | Exact Match | 76.32 | 75.54 | 72.81 |
| CMMLU | Acc | 75.59 | 72.94 | 72.18 |
| ArenaHard_v0.1 | w/o style control | 85.80 | 88.00 | 84.60 |
| C-Eval | Acc | 83.05 | 84.92 | 83.33 |
| GPQA-Diamond | Avg@4 | 70.54 | 73.23 | 73.74 |
| Math | ||||
| MATH-500 | Avg@1 | 95.00 | 97.00 | 96.00 |
| AIME24 | Avg@16 | 71.57 | 79.38 | 79.02 |
| AIME25 | Avg@16 | 58.24 | 70.00 | 70.21 |
| Coding | ||||
| LiveCodeBench | Avg@2 (08/24~01/25) | 54.04 | 58.27 | 58.27 |
| MBPP+ | Avg@2 | 76.06 | 76.46 | 75.66 |
Note: The system prompt is left empty, and no additional Chain-of-Thought (CoT) prompts are introduced during the evaluation. All evaluations are performed using a sequence length of 128k tokens.
In addition to accuracy, we also analyzed the model's output length on some datasets. Through data quality-driven learning strategy, adaptive-switching mode can effectively automatically switch some outputs to fast thinking on simple tasks without significantly affecting accuracy, significantly shortening the average Chain-of-Thought length. On difficult tasks, by maintaining slow thinking capabilities, the accuracy is comparable to that of a pure slow-thinking model.
| Benchmark | Metric | Slow-thinking v1.1 | Adaptive-switching v1.1 |
|---|---|---|---|
| General | |||
| CMMLU | Acc | 72.94 | 72.18 |
| Length | 2574 | 1338 | |
| C-Eval | Acc | 84.92 | 83.33 |
| Length | 2484 | 1723 | |
| Math | |||
| AIME24 | Avg@16 | 79.38 | 79.02 |
| Length | 48229 | 49656 | |
| Coding | |||
| LiveCodeBench | Avg@2 (08/24~01/25) | 58.27 | 58.27 |
| Length | 58140 | 59307 |
Atlas 800T A2 (64GB), please refer to [Atlas 800T A2] for obtaining the driver and firmware installation packages.
The above software environment has been verified, and theoretically supports newer versions. For any questions, please submit an issue.
Please refer to the following methods to verify the integrity of the downloaded content. The hash values are stored in the checklist.chk file.
#!/usr/bin/env bash
ARCH=$(uname -m)
MODEL_PATH="${TARGET_FOLDER}/${MODEL_FOLDER_PATH}"
cd "$MODEL_PATH" || exit 1
if [ "$ARCH" = "arm64" ]; then
sha256sum checklist.chk
else
sha256sum -c checklist.chk
fiThe following provides a simple inference example of openPangu-Embedded-7B-V1.1 based on the transformers framework:
Please modify generate.py and add the model path before running.
cd inference
python generate.pyThe openPangu-Embedded-7B-V1.1 model is in slow thinking mode by default, and can be switched to adaptive/fast thinking mode by the following means:
generate.py, the definition of the auto_thinking_prompt and no_thinking_prompt variables demonstrates the specific implementation for switching to adaptive/fast thinking mode: by appending the /auto_think or /no_think tag at the end of user input, the current turn can be switched to fast thinking mode. In this mode, thinking_content will be an empty value.vllm_ascend:[vllm_ascend_for_openpangu_embedded_7b]
Unless otherwise noted, openPangu-Embedded-7B-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.
Due to the technical limitations inherent in the technology on which the openPangu-Embedded-7B-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:
If you have any comments or suggestions, please submit an issue or contact openPangu@huawei.com.