中文 | English
The openPangu-Embedded-1B is an efficient language model trained from scratch based on the Ascend NPU, with 1B parameters (excluding vocabulary embedding). The model employs a 26-layer dense architecture and was trained on approximately 10T tokens. Through model architecture design for Ascend Atlas 200I A2, optimized data and training strategies, openPangu-Embedded-1B achieves high precision while meeting the requirements for edge-side deployment.
The openPangu-Embedded-1B is a high-efficiency fast-thinking language model designed for operation on edge devices, with support for the Ascend Atlas 200I A2.
| openPangu-Embedded-1B | |
|---|---|
| Architecture | Dense |
| Parameters (Non-Embedding) | 1B |
| Number of Layers | 26 |
| Hidden Dimension | 1536 |
| Attention Mechanism | GQA |
| Number of Attention Heads | 12 for Q, 6 for KV |
| Vocabulary Size | 153k |
| Context Length (Natively) | 32k |
| Training Tokens | 10T |
| Benchmark | Metric | Non-thinking |
|---|---|---|
| General | ||
| MMLU | Acc | 60.72 |
| CMMLU | Acc | 51.99 |
| C-Eval | Acc | 60.98 |
| IFEval | Prompt Strict | 56.56 |
| CLUEWSC | Acc | 68.55 |
| Math & Reasoning | ||
| GSM8K | Acc | 66.72 |
| MATH-500 | Acc | 52.00 |
| DROP | F1 | 50.31 |
| Coding | ||
| MBPP | Pass@1 | 54.09 |
| HumanEval | Pass@1 | 56.71 |
Note: The system prompt is left empty during the evaluation.
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-1B based on the transformers framework:
Please modify generate.py and add the model path before running.
cd inference
python generate.pyvllm_ascend: [vllm_ascend_for_openpangu_embedded_1b]
Ascend Atlas 200I A2 Inference: The openPangu-Embedded-1B model inference has been adapted for Ascend MindIE version 2.2.T10 ([download link]), and can be deployed on OrangePi AIpro (Ascend Atlas 200I A2) for inference. The adapted package will be available for download on [Ascend Community ModelZoo]. Before downloading the image, you need to apply for permissions. Please wait patiently until the permission application is approved, then follow the guidelines to download the corresponding image file and installation guide to complete the inference deployment.
Unless otherwise noted, openPangu-Embedded-1B 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-1B (“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.