/ Модель

Характеристики

Контекст
32 768 токенов
Параметры
1,2 млрд
Лицензия
Своя лицензия
Архитектура
PanguEmbedded · dense
Опубликована
21 авг 2025

openPangu-Embedded-1B

Генерация текстаТекст → текст5 профессий

Плотная языковая модель Huawei на 1,2 млрд параметров для генерации текста и диалогов с расчётом на эффективное развёртывание на периферийных устройствах.

65скачиваний за 30 дней6лайковвеса обновлены21 авг 2025

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

openPangu-Embedded-1B — плотная языковая модель семейства PanguEmbedded, разработанная Huawei и обученная с нуля на Ascend NPU. В репозитории указаны 1 млрд параметров без учёта эмбеддингов словаря, 26 слоёв и обучение примерно на 10 трлн токенов; метаданные каталога указывают 1,2 млрд параметров всего и контекст 32 768 токенов.

Модель предназначена для генерации текста и диалоговых сценариев, в том числе для развёртывания на периферийных устройствах. В карточке заявлены оптимизации архитектуры, данных и обучения для Ascend Atlas 200I A2; в тестах приведены результаты MMLU 60,72 и CMMLU 51,99. Поддерживаемые языки — китайский и английский. Репозиторий содержит веса в формате safetensors, а лицензия обозначена как other; конкретные условия следует сверить с лицензионными материалами репозитория. Выводы могут содержать ошибки и не должны заменять профессиональные медицинские или юридические рекомендации.

Сценарии применения

  • диалоговый помощник на китайском языке
  • диалоговый помощник на английском языке
  • генерация и продолжение текста
  • развёртывание языковой модели на периферийном устройстве

Ограничения

Сгенерированные ответы могут быть ошибочными или ненадёжными и не заменяют профессиональные медицинские или юридические рекомендации. В метаданных лицензия указана как other, поэтому перед использованием нужно проверить условия лицензирования в репозитории.

Для каких профессий подходит5

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

English | 中文

1. Model Overview

openPangu-Embedded-1B is a high-efficiency language model trained from scratch on Ascend NPU. It has 1B parameters (excluding vocabulary embeddings), with a 26-layer Dense architecture, trained on approximately 10T tokens.
Through model architecture design, data optimization, and training strategies optimized for Ascend Atlas 200I A2, openPangu-Embedded-1B achieves high accuracy while maintaining requirements for edge-side deployment.

2. Model Architecture

openPangu-Embedded-1B is an efficient, fast-thinking language model designed for deployment on edge devices.

openPangu-Embedded-1B
ArchitectureDense
Parameters (Non-Embedding)1B
Number of Layers26
Hidden Dimension1536
Attention MechanismGQA
Number of Attention Heads12 for Q, 6 for KV
Vocabulary Size153k
Context Length (Natively)32k
Training Tokens10T

3. Benchmark

BenchmarkMetricFast Thinking
General Capability
MMLUAcc60.72
CMMLUAcc51.99
C-EvalAcc60.98
IF-EvalPrompt Strict56.56
CLUEWSCAcc68.55
Math & Reasoning
GSM8KAcc66.72
MATH-500Acc52.00
DROPF150.31
Code Ability
MBPPPass@154.09
HumanEvalPass@156.71

Note: The system prompt was empty during evaluation.

4. Usage

4.1 Environment Setup

# Download model
git lfs install
git clone https://huggingface.co/FreedomIntelligence/openPangu-Embedded-1B

# Install dependencies
cd openPangu-Embedded-1B
conda env create -f environment.yml
conda activate pangu

4.2 Integrity Check

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
fi

4.3 Inference with Transformers

# coding=utf-8
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All rights reserved.

from transformers import AutoModelForCausalLM, AutoTokenizer
from transformers import GenerationConfig

model_local_path = "FreedomIntelligence/openPangu-Embedded-1B"

# load the tokenizer and the model
tokenizer = AutoTokenizer.from_pretrained(
    model_local_path, 
    use_fast=False, 
    trust_remote_code=True,
    local_files_only=True
)

model = AutoModelForCausalLM.from_pretrained(
    model_local_path,
    trust_remote_code=True,
    torch_dtype="auto",
    device_map="auto",
    local_files_only=True
)

# prepare the model input
sys_prompt = "You must strictly comply with laws, regulations, and social ethics." \
    "When generating content, avoid involving violence, pornography, terrorism, racial discrimination, gender discrimination, or other inappropriate content." \
    "If such tendencies are detected in the input or output, refuse to answer and issue a warning. For example, if the input contains violent threats or pornographic descriptions," \
    "return an error message: 'Your input contains inappropriate content and cannot be processed.'"

prompt = "Give me a short introduction to large language model."
messages = [
    {"role": "system", "content": sys_prompt}, # define your system prompt here
    {"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)

# conduct text completion
outputs = model.generate(**model_inputs, max_new_tokens=32768, eos_token_id=45892, return_dict_in_generate=True)

input_length = model_inputs.input_ids.shape[1]
generated_tokens = outputs.sequences[:, input_length:]
content = tokenizer.decode(generated_tokens[0], skip_special_tokens=True)

print("\ncontent:", content)

4.4 Inference with vLLM

Start vLLM service:

CUDA_VISIBLE_DEVICES=0 vllm serve FreedomIntelligence/openPangu-Embedded-1B --port 8818 --trust_remote_code --served-model-name openPangu-Embedded-1B

# or
CUDA_VISIBLE_DEVICES=0 \
python -m vllm.entrypoints.openai.api_server \
  --model FreedomIntelligence/openPangu-Embedded-1B \
  --served-model-name openPangu-Embedded-1B \
  --trust_remote_code \
  --port 8818

Send requests to API service:

curl http://localhost:8818/v1/chat/completions -H "Content-Type: application/json" -d '{
    "model": "openPangu-Embedded-1B",
    "messages": [
        {"role": "user", "content": "Give me a short introduction to large language models."}
    ],
    "temperature": 0.6,
    "top_p": 0.95,
    "top_k": 20,
    "max_tokens": 8192
    }'

5. Model License

Unless otherwise noted, openPangu-Embedded-7B 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-Embedded-7B (“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.

For feedback and suggestions, please submit an issue or contact us (openPangu@huawei.com).

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Нельзя запустить

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
PanguEmbeddedForCausalLM
Ревизия весов
9b81db7

0 моделей