Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计提醒

npu-smi西北工业大学 SMI

Agent Skill

npu-smi 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,591

周安装

65

GitHub Stars

60

下载量

515
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:npu-smi(西北工业大学 SMI)
来源仓库:https://github.com/ascend-ai-coding/awesome-ascend-skills
仓库路径:skills/npu-smi
安装命令:
npx skills add https://github.com/ascend-ai-coding/awesome-ascend-skills --skill npu-smi
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/ascend-ai-coding/awesome-ascend-skills --skill npu-smi

简介

npu-smi 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装使用。
  • 安装前需确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 建议结合来源仓库和原始 README 核验具体用法。

SKILL.md

npu-smi Command Reference

Quick reference for Huawei Ascend NPU device management commands.

Validated on real host: Ascend 910B3 server (npu-smi software version 25.5.1) on 2026-03-27. Command availability and output fields can differ by platform / firmware.

Quick Start

npu-smi info -l                           # List all devices
npu-smi info -t health -i 0               # Check device health
npu-smi info -t temp -i 0 -c 0            # Check temperature
npu-smi info -t power -i 0 -c 0           # Check power
npu-smi info -t memory -i 0 -c 0          # Check memory

Device Queries

Basic Information

npu-smi info -l                           # List devices
npu-smi info -t health -i <id>            # Health status (OK/Warning/Error)
npu-smi info -t board -i <id>             # Board details (firmware, software version)
npu-smi info -m                           # List card/chip mapping and chip names

Real-time Metrics

npu-smi info -t temp -i <id> -c <chip>    # Temperature (NPU, AI Core)
npu-smi info -t power -i <id> -c <chip>   # Power usage and limit
npu-smi info -t memory -i <id> -c <chip>  # Memory usage, total, rate

Advanced Queries

npu-smi info -t ecc -i <id> -c <chip>     # ECC errors and mode
npu-smi info -t usages -i <id> -c <chip>  # Utilization (AI Core, memory, bandwidth)
npu-smi info -t proc-mem -i <id> -c <chip>   # Per-process memory usage
npu-smi info -t pcie-err -i <id> -c <chip>   # PCIe error counters
npu-smi info -t topo -i <id> -c <chip>       # Inter-NPU topology / affinity
npu-smi info -t p2p-enable -i <id> -c <chip> # P2P capability (if supported)
npu-smi info -t product -i <id> -c <chip> # Product name and serial
Note: npu-smi info -t npu was not accepted on the validated host; use npu-smi info -m for chip mapping and health/temp/power/usages/memory for per-chip runtime data.
See: references/device-queries.md for output formats, examples, monitoring scripts, and platform identification (A2 vs A3).

Configuration

Temperature and Power Thresholds

npu-smi set -h                                             # Show supported configurable types on this host
npu-smi set -t pwm-mode -d <0|1>                           # Fan control mode
npu-smi set -t pwm-duty-ratio -d <0-100>                   # Fan duty ratio

Mode Configuration

npu-smi set -t ecc-enable -i <id> -c <chip> -d <0|1>      # ECC enable switch
npu-smi set -t p2p-mem-cfg -i <id> -c <chip> -d <0|1>     # P2P memory configuration
npu-smi set -t vnpu-mode -d <0|1>                          # vNPU mode
npu-smi set -t cpu-freq-up -i <id> -d <0|1>               # CPU frequency profile

Fan Control

npu-smi set -t pwm-mode -d <0|1>                          # 0=Manual, 1=Automatic
npu-smi set -t pwm-duty-ratio -d <0-100>                  # Fan speed (percent)

System Settings

npu-smi set -t mac-addr -i <id> -c <chip> -d <mac_id> -s "XX:XX:XX:XX:XX:XX"
npu-smi set -t boot-select -i <id> -c <chip> -d <3|4>     # 3=M.2 SSD, 4=eMMC
npu-smi set -t cpu-freq-up -i <id> -d <0|1>               # 0=1.9GHz/800MHz, 1=1.0GHz/800MHz
npu-smi set -t sys-log-enable -d <0|1>                    # System logging

Clear Commands

npu-smi clear -t ecc-info -i <id> -c <chip>               # Clear ECC errors
npu-smi clear -t tls-cert-period -i <id> -c <chip>        # Restore cert threshold
See: references/configuration.md for parameter tables and examples.

Firmware Management

Upgrade Workflow

Query → Upgrade → Check Status → Activate → Restart
npu-smi upgrade -b <item> -i <id>                         # Query current version
npu-smi upgrade -t <item> -i <id> -f <file.hpm>           # Upload firmware
npu-smi upgrade -q <item> -i <id>                         # Check upgrade status
npu-smi upgrade -a <item> -i <id>                         # Activate firmware

Components and Restart Requirements

ComponentItem NameRestart Required
MCUmcuYes (restart)
BootloaderbootloaderYes (restart)
VRDvrdYes (power cycle 30s)
See: references/firmware-upgrade.md for complete procedures.

Virtualization (vNPU)

Queries

npu-smi info -t vnpu-mode                                 # Query AVI mode (0=Container, 1=VM)
npu-smi info -t template-info                             # List all templates
npu-smi info -t template-info -i <id>                     # Templates for specific device
npu-smi info -t info-vnpu -i <id> -c <chip>               # View vNPU info

Management

npu-smi set -t vnpu-mode -d <0|1>                         # Set AVI mode
npu-smi set -t create-vnpu -i <id> -c <chip> -f <template> [-v <vnpu_id>] [-g <vgroup_id>]
npu-smi set -t destroy-vnpu -i <id> -c <chip> -v <vnpu_id>

vNPU ID Range: [phy_id*16+100, phy_id*16+115]

See: references/virtualization.md for vNPU creation and management.

Certificate Management

Queries

npu-smi info -t tls-csr-get -i <id> -c <chip>             # Generate CSR (PEM format)
npu-smi info -t tls-cert -i <id> -c <chip>                # View certificate details
npu-smi info -t tls-cert-period -i <id> -c <chip>         # Check expiration threshold
npu-smi info -t rootkey -i <id> -c <chip>                 # Rootkey status

Management

npu-smi set -t tls-cert -i <id> -c <chip> -f "<tls.pem> <ca.pem> <subca.pem>"
npu-smi set -t tls-cert-period -i <id> -c <chip> -s <days>  # Set threshold (7-180 days)
npu-smi clear -t tls-cert-period -i <id> -c <chip>        # Restore default (90 days)
See: references/certificate-management.md for certificate lifecycle management.

Parameters Reference

ParameterDescriptionHow to Get
idDevice ID (NPU ID)npu-smi info -l
chip_idRuntime chip IDnpu-smi info -m (usually 0 for Ascend chip, 1 for MCU on validated host)
vnpu_idvNPU IDAuto-assigned or specified in range
mac_idMAC interface0=eth0, 1=eth1, 2=eth2, 3=eth3

Supported Platforms

  • Atlas 200I DK A2 Developer Kit
  • Atlas 500 A2 Smart Station
  • Atlas 200I A2 Acceleration Module (RC/EP scenarios)
  • Atlas A2/A3 Training Series
  • Atlas Training Series
Note: Chip name (e.g., 910B3) does not indicate server platform (A2 vs A3). Use dmidecode -t system | grep Product or npu-smi info -t product to identify the server model. See references/device-queries.md for details.

Important Notes

  • Most configuration commands require root permissions
  • Device IDs from npu-smi info -l
  • Chip IDs from npu-smi info -m
  • MCU/bootloader upgrades require restart after activation
  • VRD upgrades require power cycle (30+ seconds off)
  • MAC/boot changes require restart
  • Command availability varies by hardware platform
  • npu-smi info proc was not supported on the validated 910B3 host; npu-smi info -t proc-mem worked
  • npu-smi info -t product may return This device does not support querying product. on some server SKUs

Scripts

Official Documentation

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.01%
按下载量换算175

Claude

30.02%
按下载量换算155

Cursor

18.1%
按下载量换算93

Gemini CLI

8.78%
按下载量换算45

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills