npu-smi set -t vnpu-mode -d mode
Type |
Description |
|---|---|
mode |
Virtual instance mode. The value is 0 or 1.
|
npu-smi set -t create-vnpu -i id -c chip_id -f vnpu_config [-v vnpu_id] [-g vgroup_id]
Type |
Description |
|---|---|
id |
Device ID. The NPU ID obtained by running the npu-smi info -l command is the device ID. |
chip_id |
Chip ID. The chip ID is obtained by running the npu-smi info -m command. |
vnpu_config |
Name of the virtual instance template. For details, see "Virtualization Templates" in Virtualization Rules. |
vnpu_id |
ID of the vNPU to be created.
|
vgroup_id |
ID of the vGroup. The value ranges from 0 to 3. For details about vGroup, see "Virtualization Modes" in Virtualization Rules. This parameter is supported only by Atlas inference product. |
npu-smi set -t create-vnpu -i 0 -c 0 -f vir02
Status : OK Message : Create vnpu success
npu-smi set -t create-vnpu -i 0 -c 0 -f vir02 -v 103
Status : OK Message : Create vnpu success
npu-smi set -t create-vnpu -i 0 -c 0 -f vir02 -v 100 -g 1
Status : OK Message : Create vnpu success
npu-smi set -t vnpu-cfg-recover -d mode
mode indicates whether vNPU configuration recovery is enabled. 1: enabled; 0: disabled. By default, vNPU configuration recovery is enabled.
Run the following command to enable the vNPU configuration recovery.
npu-smi set -t vnpu-cfg-recover -d 1
Status : OK
Message : The VNPU config recover mode Enable is set successfully.
You can use the following command to query the configuration recovery status of the vNPU in the current environment.
npu-smi info -t vnpu-cfg-recover
VNPU config recover mode : Enable
npu-smi info -t info-vnpu -i id -c chip_id
Parameter |
Description |
|---|---|
id |
Device ID. The NPU ID obtained by running the npu-smi info -l command is the device ID. |
chip_id |
Chip ID. The chip ID is obtained by running the npu-smi info -m command. |
To query the vNPU information, you can run the following command, which means to query the vNPU information of processor 0 on device 0.
npu-smi info -t info-vnpu -i 0 -c 0

The AI CPU and vGroup ID information can be returned for Atlas inference product, while cannot be returned for Atlas training product.