Table 1 lists the processor models and hardware resources.
Processor Model |
Number of AI Cores |
Memory |
Number of AI CPUs |
Total VPC Cores |
Total VDEC Cores |
Total JPEGD Cores |
Total PNGD Cores |
Total VENC Cores |
Total JPEGE Cores |
|---|---|---|---|---|---|---|---|---|---|
Atlas training product (30 AI Cores) |
30 |
32 GB |
14 |
16 |
16 |
16 |
24 |
N/A |
8 |
Atlas training product (32 AI Cores) |
32 |
32 GB |
14 |
16 |
16 |
16 |
24 |
N/A |
8 |
Atlas inference product (8 AI Cores) |
8 |
24 GB |
7 |
12 |
12 |
16 |
N/A |
3 |
8 |
An Ascend AI processor consists of hardware resources such as the AI Cores, AI CPUs, DVPP modules, and memory. Their functions are as follows:
Product Model |
Virtual Instance Template |
Description |
|---|---|---|
Atlas training product (30 or 32 AI Cores) |
vir02, vir04, vir08, and vir16 |
|
Atlas inference product (8 AI Cores) |
vir01, vir02, vir04, vir02_1c, vir04_3c, vir04_3c_ndvpp, and vir04_4c_dvpp |
|
Processor Model |
Virtual Instance Template |
Number of AI Cores |
Memory |
Number of AI CPUs |
Total VPC Cores |
Total VDEC Cores |
Total JPEGD Cores |
Total PNGD Cores |
Total VENC Cores |
Total JPEGE Cores |
|---|---|---|---|---|---|---|---|---|---|---|
Atlas training product (30 or 32 AI Cores) |
vir16 |
16 |
16 GB |
7 |
8 |
8 |
8 |
12 |
N/A |
4 |
vir08 |
8 |
8 GB |
3 |
4 |
4 |
4 |
6 |
N/A |
2 |
|
vir04 |
4 |
4 GB |
1 |
2 |
2 |
2 |
3 |
N/A |
1 |
|
vir02 |
2 |
2 GB |
1 |
1 |
1 |
1 |
1 |
N/A |
0 |
|
Atlas inference product (8 AI Cores) |
vir04 |
4 |
12 GB |
4 |
6 |
6 |
8 |
N/A |
2 |
4 |
vir04_3c |
4 |
12 GB |
3 |
6 |
6 |
8 |
N/A |
1 |
4 |
|
vir02 |
2 |
6 GB |
2 |
3 |
3 |
4 |
N/A |
1 |
2 |
|
vir02_1c |
2 |
6 GB |
1 |
3 |
3 |
4 |
N/A |
0 |
2 |
|
vir01 |
1 |
3 GB |
1 |
1 |
1 |
2 |
N/A |
0 |
1 |
|
vir04_3c_ndvpp |
4 |
12 GB |
3 |
0 |
0 |
0 |
N/A |
0 |
0 |
|
vir04_4c_dvpp |
4 |
12 GB |
4 |
12 |
12 |
16 |
N/A |
3 |
8 |
Figure 1 shows the combination of virtualization instances supported by the Atlas inference product. One Ascend AI Processor can be virtualized into a maximum of seven instances. You can virtualize NPU hardware resources based on the combination specifications.
Seven AI CPUs are configured for Atlas inference product, so vNPU resources cannot be evenly allocated during virtualization (see Figure 1). You need to evaluate the resources required by the inference applications on the server. For example, the resources are not enough to create eight vir01 instances but can create six vir01 instances and one vir02_1c instance, or seven vir01 instances (one AI Core is wasted). Before using vNPUs for your inference applications, perform vNPU allocation test to find the optimal allocation policy.
If you want to obtain the inference performance data of typical models running on vNPUs, contact Huawei technical support.
Virtual instance specifications supported by Atlas training product are not listed one by one here. According to the virtualization mechanism, an NPU cannot be further split when the number of AI Cores contained by virtual instances created on the NPU reaches the total number of AI Cores on the NPU. For example, the Ascend AI Processor, containing 30 AI Cores, supports only one vir16 instance. The remaining 14 AI Cores can be allocated to a vir08, a vir04, and a vir02 instance. If the Ascend AI Processor has 32 AI Cores, it supports two vir16 instances. When the Ascend AI Processor has 30 AI Cores, a maximum of 15 virtualization instances are supported. When the Ascend AI Processor has 32 AI Cores, a maximum of 16 virtualization instances are supported.
Atlas training product support only software virtualization. The vir04, vir04_3c, vir02, vir02_1c, vir04_3c_ndvpp, and vir04_4c_dvpp templates of Atlas inference product adopt hardware virtualization. The vir01 template adopts software virtualization.
Virtual instances of Atlas inference product also involve the concept of vGroup.