Huawei
How to Add Huawei NPU Nodes to a Kubernetes Cluster
· ☕ 10 min read
1. Disk Handling 1.1 Inspect Disks Inspect the new disk 1 fdisk -l Disk /dev/nvme1n1: 3.91 TiB, 4294967296000 bytes, 8388608000 sectors 1.2 Build a RAID0 If you have several small disks, a better approach is to build a RAID0 — this gives you not only a larger storage directory but also higher speed.

Ascend DMI Tool Usage Guide
· ☕ 3 min read
1. Installing Dependencies MindCluster ToolBox is a system-level toolset for cluster operations and hardware management, mainly used for operations such as device monitoring, performance testing, and log collection. MindCluster ToolBox includes the Ascend DMI tool, the log collection tool, and the Ascend Cert tool. MindCluster ToolBox works by calling low-level DCMI (Device Control Management Interface) and AscendCL (Ascend Computing Language) interfaces to perform the relevant detection functions; system-level information queries are implemented by calling the general-purpose libraries provided by the system.

Ascend Environment Variable Configuration
· ☕ 4 min read
HCCL_IF_IP Configures the IP of the root communication NIC for HCCL initialization. Priority: environment variable HCCL_IF_IP > environment variable HCCL_SOCKET_IFNAME > NICs other than docker/lo (in ascending lexicographic order of NIC name) > docker NIC > lo NIC. 1 export HCCL_IF_IP=10.0.0.1 HCCL_IF_BASE_PORT Specifies the starting port number of the Host NIC.

Ascend NPU Driver Installation
· ☕ 5 min read
1. Install the Driver Create the HwHiAiUser user 1 2 groupadd -g 1000 HwHiAiUser useradd -g HwHiAiUser -u 1000 -d /home/HwHiAiUser -m HwHiAiUser -s /bin/bash Add directory permissions 1 2 chown -R HwHiAiUser /usr/local/Ascend chmod -R 755 /usr/local/Ascend Download the driver and firmware Go to https://www.hiascend.ru/hardware/firmware-drivers/community?product=1&model=30&cann=All&driver=1.0.26.alpha to find the matching driver and firmware.

Basic Usage of npu-smi
· ☕ 8 min read
1. What Is npu-smi npu-smi is a command-line tool provided by Huawei, purpose-built for managing and monitoring the status and performance of Huawei Ascend series Neural Processing Units (NPUs), similar to NVIDIA’s nvidia-smi. 2. Meaning of npu-smi Fields 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 npu-smi info +------------------------------------------------------------------------------------------------+ | npu-smi 23.